public class MathTimerListener extends MathListener implements PsTimeListenerIf
PsTimeListenerIf| Constructor and Description |
|---|
MathTimerListener() |
| Modifier and Type | Method and Description |
|---|---|
PsAnimation |
getAnimation()
Get the animation object of the project which handles the projects animations.
|
boolean |
hasAnimation()
Check whether this project is registered as listener of an animation object.
|
void |
setAnimation(PsAnimation anAnimation)
Assign the animation object where this listener is registered.
|
boolean |
setTime(PsTimeEvent time)
Animation updates the dynamic object through this method whenever time
has changed.
|
getHandler, getName, setHandler, setNameequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamepublic boolean setTime(PsTimeEvent time)
setTime in interface PsTimeListenerIftime - Time event issued by an animationpublic PsAnimation getAnimation()
setAnimation(PsAnimation).getAnimation in interface PsTimeListenerIfhasAnimation(),
setAnimation(PsAnimation)public boolean hasAnimation()
hasAnimation in interface PsTimeListenerIfgetAnimation(),
setAnimation(PsAnimation)public void setAnimation(PsAnimation anAnimation)
Only one animation object may be assigned to this listener. Subsequent assignments will replace the previous assignment.
setAnimation in interface PsTimeListenerIfgetAnimation(),
hasAnimation()"