|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
// This interface defines a callback for the Timer class
Purpose
Timer calls the tick method in the TimerCallback interface after
a fixed number of milliseconds (indicated by the
interval variable). It measures the amount of time spent
in the tick method and adjusts for it.
Implementation
Examples
To start up a timer with this class, create it with
a callback and the number of milliseconds in the interval
then call the start method:
Timer timer = new Timer(this, 2000); // 2 second interval timer.start();
$Source: /var/cvs/justobjects/toolkit/src/nl/justobjects/toolkit/sys/TimerCallback.java,v $
Timer
Method Summary | |
void |
tick()
|
Method Detail |
public void tick()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |