org.PingOO.DLAI.lib.graph
Class Graph2D.LoadMessage

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.PingOO.DLAI.lib.graph.Graph2D.LoadMessage

protected class Graph2D.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
contextClassLoader, daemon, eetop, group, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadQ, values
 
Constructor Summary
Graph2D.LoadMessage(Graph2D g2d)
          Instantiate the class
Graph2D.LoadMessage(Graph2D g2d, java.lang.String s)
          Instantiate the class
Graph2D.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)
          Sets the message to be displayed
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, 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

Graph2D.LoadMessage

public Graph2D.LoadMessage(Graph2D g2d)
Instantiate the class
Parameters:
g2d - The Graph2D canvas to draw message on

Graph2D.LoadMessage

public Graph2D.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

Graph2D.LoadMessage

public Graph2D.LoadMessage(Graph2D g,
                           java.lang.String s,
                           long visible,
                           long invisible)
Instantiate the class
Parameters:
g2d - The Graph2D canvas to draw message on
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.
Overrides:
run in class java.lang.Thread

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)
Sets the message to be displayed
Parameters:
s - the message