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.


Constructor Index

 o 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.

Method Index

 o getThread()
Used to get the thread in TimeCalc object (usually to stop() it).
 o run()
Main loop of thread running for this object, called indirectly by the constructors call to start().

Constructors

 o 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.

Methods

 o getThread
 public Thread getThread()
Used to get the thread in TimeCalc object (usually to stop() it).

 o 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.