|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectViewPlots.Timer
Timer supporting class for ViewPlots This class is a substitue class for the javax.swing.Timer class. This was to accomidate the re-write from swing code to 1.1 for browser support.
| Field Summary | |
private ViewPlots.TimerThread |
itsThread
Independant thread used for timing purposes |
| Constructor Summary | |
ViewPlots.Timer(long theInterval,
java.awt.event.ActionListener theListener)
Basic constructor for Timer Allows the initial delay between 'ticks' to be set, as well as setting which object will be the consumer of these ticks. |
|
| Method Summary | |
long |
getDelay()
Fetches the current timer delay period |
boolean |
isRunning()
Check for timer thread running Returns true if there is a timer thread currently executing, otherwise returns false. |
void |
setDelay(long theInterval)
Sets the timer delay period to a new setting. |
void |
start()
Starts a timer thread executing. |
void |
stop()
Halts any executing timer thread. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private ViewPlots.TimerThread itsThread
| Constructor Detail |
public ViewPlots.Timer(long theInterval,
java.awt.event.ActionListener theListener)
theInterval - Delay between ticks in microsecondstheListener - ActionListener that consumes timer ticks.| Method Detail |
public long getDelay()
public void setDelay(long theInterval)
theInterval - Delay between timer ticks in microsecondspublic boolean isRunning()
public void stop()
public void start()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||