public class TimerThread
extends java.lang.Thread
setDisplayTime() with the current system time at regular
intervals. The thread runs as a daemon.| Constructor and Description |
|---|
TimerThread(TimeDisplay timeDisplay)
Create a new TimerThread for the specified TimeDisplay
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Run the timer thread.
|
void |
setTimerInterval(long millis)
Set the interval between time signals.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic TimerThread(TimeDisplay timeDisplay)
timeDisplay - the TimeDisplay which will receive the time signalspublic void run()
setDisplayTime() on the TimeDisplay, using the current
system time as the display time. If the TimeDisplay is set to playback
mode, this thread will end.run in interface java.lang.Runnablerun in class java.lang.Threadpublic void setTimerInterval(long millis)
millis - The number of milliseconds between time signals