public class TimeAnimationImpl extends Thread implements TimeAnimation
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
TimeAnimationImpl() |
Modifier and Type | Method and Description |
---|---|
TimeAnimationDataModel |
getDataModel()
Gets the data model for time animation.
|
void |
pauseAnimation()
Pauses the animation
|
void |
run() |
void |
setAnimateClient(AnimateClient client)
Sets the client which receives events from the animation
|
void |
startAnimation()
Starts the animation
|
void |
stopAnimation()
Stops the animation
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isAlive
public void setAnimateClient(AnimateClient client)
TimeAnimation
setAnimateClient
in interface TimeAnimation
client
- Interface with the functions to call when the animation increase a step, ends
or an iteration endspublic TimeAnimationDataModel getDataModel()
TimeAnimation
getDataModel
in interface TimeAnimation
TimeAnimationDataModel
public void stopAnimation()
stopAnimation
in interface TimeAnimation
public void pauseAnimation()
pauseAnimation
in interface TimeAnimation
public void startAnimation()
startAnimation
in interface TimeAnimation