graph
Class LoadMessage

java.lang.Object
  extended byjava.lang.Thread
      extended bygraph.LoadMessage
All Implemented Interfaces:
java.lang.Runnable

class LoadMessage
extends java.lang.Thread

This is a separate thread that flashes a message on the Graph2D canvas that data is loading


Field Summary
(package private)  java.awt.Font f
           
(package private)  java.awt.Color foreground
           
(package private)  Graph2D g2d
           
(package private)  long invisible
           
(package private)  java.awt.Graphics lg
           
(package private)  java.lang.String message
           
(package private)  java.lang.String newmessage
           
(package private)  long visible
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LoadMessage(Graph2D g2d)
          Instantiate the class
LoadMessage(Graph2D g2d, java.lang.String s)
          Instantiate the class
LoadMessage(Graph2D g, java.lang.String s, long visible, long invisible)
          Instantiate the class
 
Method Summary
 void begin()
          begin displaying the message
 void end()
          end displaying message and force a graph repaint
 void run()
          The method to call when the thread starts
 void setFont(java.awt.Font f)
          Set the font the message will be displayed in
 void setForeground(java.awt.Color c)
          The foreground color for the message
 void setMessage(java.lang.String s)
          Set the message to be displayed
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

g2d

Graph2D g2d

message

java.lang.String message

newmessage

java.lang.String newmessage

visible

long visible

invisible

long invisible

foreground

java.awt.Color foreground

lg

java.awt.Graphics lg

f

java.awt.Font f
Constructor Detail

LoadMessage

public LoadMessage(Graph2D g2d)
Instantiate the class

Parameters:
g2d - The Graph2D canvas to draw message on

LoadMessage

public LoadMessage(Graph2D g2d,
                   java.lang.String s)
Instantiate the class

Parameters:
g2d - The Graph2D canvas to draw message on
s - The string to flash on the canvas

LoadMessage

public LoadMessage(Graph2D g,
                   java.lang.String s,
                   long visible,
                   long invisible)
Instantiate the class

Parameters:
s - The string to flash on the canvas
visible - Number of milliseconds the message is visible
invisible - Number of milliseconds the message is invisible
Method Detail

begin

public void begin()
begin displaying the message


end

public void end()
end displaying message and force a graph repaint


run

public void run()
The method to call when the thread starts


setFont

public void setFont(java.awt.Font f)
Set the font the message will be displayed in

Parameters:
f - the font

setForeground

public void setForeground(java.awt.Color c)
The foreground color for the message

Parameters:
c - the foreground color

setMessage

public void setMessage(java.lang.String s)
Set the message to be displayed

Parameters:
s - the message