Package arc.util
Class Timer.TimerThread
java.lang.Object
arc.util.Timer.TimerThread
- All Implemented Interfaces:
ApplicationListener,Runnable
- Enclosing class:
- Timer
Manages a single thread for updating timers. Uses application events to pause, resume, and dispose the thread.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Called when theApplicationis destroyed.voidpause()Called when theApplicationis paused, usually when it's not active or visible on screen.voidresume()Called when theApplicationis resumed from a paused state, usually when it regains focus.voidrun()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface arc.ApplicationListener
exit, fileDropped, init, resize, update
-
Constructor Details
-
TimerThread
public TimerThread()
-
-
Method Details
-
run
public void run() -
resume
public void resume()Description copied from interface:ApplicationListenerCalled when theApplicationis resumed from a paused state, usually when it regains focus.- Specified by:
resumein interfaceApplicationListener
-
pause
public void pause()Description copied from interface:ApplicationListenerCalled when theApplicationis paused, usually when it's not active or visible on screen. An Application is also paused before it is destroyed.- Specified by:
pausein interfaceApplicationListener
-
dispose
public void dispose()Description copied from interface:ApplicationListenerCalled when theApplicationis destroyed. Preceded by a call toApplicationListener.pause().- Specified by:
disposein interfaceApplicationListener
-