Class TimeCalc
java.lang.Object
|
+----TimeCalc
- public class TimeCalc
- extends Object
- implements Runnable
TimeCalc populates a TimeGrid object, passes it back to the observer,
and then sleeps for the specified time before repeating the process.
-
TimeCalc(long, long, DialClockFrame)
- Contructor that takes a starting time in milliseconds offset from
Jan 1, 1970, a delay in millis to wait before recalculating and
a DialClockFrame object to notify when new data is available.
-
getThread()
-
Used to get the thread in TimeCalc object (usually to stop() it).
-
run()
- Main loop of thread running for this object, called indirectly
by the constructors call to start().
TimeCalc
public TimeCalc(long startTime,
long delay,
DialClockFrame callbackObj)
- Contructor that takes a starting time in milliseconds offset from
Jan 1, 1970, a delay in millis to wait before recalculating and
a DialClockFrame object to notify when new data is available. A
thread is started in this object.
getThread
public Thread getThread()
- Used to get the thread in TimeCalc object (usually to stop() it).
run
public void run()
- Main loop of thread running for this object, called indirectly
by the constructors call to start(). Should not be called directly.