|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--time.TimeManager
Class providing functions to manage this timing thread.
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
TimeManager(int d)
Creates a new TimeManager instance. |
|
| Method Summary | |
void |
addTimed(Timed el)
Method to add an object to the timer |
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
A method to change the timers delay. |
void |
changeDelay(int d)
A method to change the timers delay. |
boolean |
isPaused()
|
void |
removeTimed(Timed el)
Describe removeTimed method here. |
void |
run()
The run() method for the timer thread. |
void |
setPaused(boolean p)
Stops the timer from generating events. |
| 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 |
| Constructor Detail |
public TimeManager(int d)
TimeManager instance.
d - a int that specifies the delay in millisecond between each clock tick of this timer.| Method Detail |
public void addTimed(Timed el)
el - a object implementing the Timed interface.public void removeTimed(Timed el)
removeTimed method here.
el - a Timed valuepublic boolean isPaused()
public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged in interface java.awt.event.AdjustmentListenere - an AdjustmentEventpublic void setPaused(boolean p)
p - a boolean valuepublic void changeDelay(int d)
d - a int that specifies the delay in millisecond between each clock tick of this timer.public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||