|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
graph.LoadMessage
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 |
Graph2D g2d
java.lang.String message
java.lang.String newmessage
long visible
long invisible
java.awt.Color foreground
java.awt.Graphics lg
java.awt.Font f
| Constructor Detail |
public LoadMessage(Graph2D g2d)
g2d - The Graph2D canvas to draw message on
public LoadMessage(Graph2D g2d,
java.lang.String s)
g2d - The Graph2D canvas to draw message ons - The string to flash on the canvas
public LoadMessage(Graph2D g,
java.lang.String s,
long visible,
long invisible)
s - The string to flash on the canvasvisible - Number of milliseconds the message is visibleinvisible - Number of milliseconds the message is invisible| Method Detail |
public void begin()
public void end()
public void run()
public void setFont(java.awt.Font f)
f - the fontpublic void setForeground(java.awt.Color c)
c - the foreground colorpublic void setMessage(java.lang.String s)
s - the message
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||