edu.umd.cs.piccolox.swt
Class SWTTimerQueue
java.lang.Object
edu.umd.cs.piccolox.swt.SWTTimerQueue
- All Implemented Interfaces:
- Runnable
public class SWTTimerQueue
- extends Object
- implements Runnable
- Author:
- Lance Good
Constructor Summary |
SWTTimerQueue(org.eclipse.swt.widgets.Display display)
Constructor for TimerQueue. |
instance
static SWTTimerQueue instance
display
org.eclipse.swt.widgets.Display display
firstTimer
SWTTimer firstTimer
running
boolean running
SWTTimerQueue
public SWTTimerQueue(org.eclipse.swt.widgets.Display display)
- Constructor for TimerQueue.
sharedInstance
public static SWTTimerQueue sharedInstance(org.eclipse.swt.widgets.Display display)
start
void start()
stop
void stop()
addTimer
void addTimer(SWTTimer timer,
long expirationTime)
removeTimer
void removeTimer(SWTTimer timer)
containsTimer
boolean containsTimer(SWTTimer timer)
postExpiredTimers
long postExpiredTimers()
- If there are a ton of timers, this method may never return. It loops
checking to see if the head of the Timer list has expired. If it has, it
posts the Timer and reschedules it if necessary.
run
public void run()
- Specified by:
run
in interface Runnable
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 1995-2011 Piccolo2D. All Rights Reserved.