edu.umd.cs.piccolox.swt
Class SWTTimerQueue
java.lang.Object
edu.umd.cs.piccolox.swt.SWTTimerQueue
- All Implemented Interfaces:
- java.lang.Runnable
public class SWTTimerQueue
- extends java.lang.Object
- implements java.lang.Runnable
- Author:
- Lance Good
Constructor Summary |
SWTTimerQueue(org.eclipse.swt.widgets.Display display)
Constructor for TimerQueue. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 java.lang.Runnable
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 1995-2009 Piccolo2D. All Rights Reserved.