| java.lang.Object org.apache.harmony.awt.RelativeTimer
All known Subclasses: org.apache.harmony.awt.PeriodicTimer, org.apache.harmony.awt.SingleShotTimer,
RelativeTimer | abstract public class RelativeTimer (Code) | | Relative timer class. Basic class for PeriodicTimer and SingleShotTimer.
"Relative" means that there is no binding with absolute time.
All future events are planned relative to current time.
All timers live on one thread.
|
Method Summary | |
public Runnable | getHandler() Gets handler for this timer's events. | void | handle() | public boolean | isRunning() Returns true if this timer is ticking. | public void | start() Starts ticking of this timer. | public void | stop() Stops ticking of this timer. |
interval | final long interval(Code) | | |
getHandler | public Runnable getHandler()(Code) | | Gets handler for this timer's events.
this timer's handler. |
isRunning | public boolean isRunning()(Code) | | Returns true if this timer is ticking.
|
start | public void start()(Code) | | Starts ticking of this timer.
Time when timer's handler is invoked first time is following:
current_time + interval.
|
stop | public void stop()(Code) | | Stops ticking of this timer.
|
|
|