|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
net.lucidviews.util.gui.RepaintThread
A Thread that causes a GUI component to refresh by periodically
calling the repaint method.
| Field Summary | |
protected Component |
_component
The UI component to be refreshed. |
protected boolean |
_keepRepainting
A flag used to elegantly stop the thread. |
protected long |
_repaintPeriod
The number of milli-seconds between each call to the repaint method. |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
RepaintThread(Component component,
long period)
Create a thread that periodically calls repaint on a given component. |
|
| Method Summary | |
void |
doStop()
Terminate this thead. |
void |
run()
|
| 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 |
protected long _repaintPeriod
protected Component _component
protected boolean _keepRepainting
| Constructor Detail |
public RepaintThread(Component component,
long period)
component - the GUI component to be periodically repaintedperiod - the time between each render, in milli-seconds| Method Detail |
public void run()
public void doStop()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||