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, setName
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public boolean setTime(PsTimeEvent time)
setTime
in interface PsTimeListenerIf
time
- Time event issued by an animationpublic PsAnimation getAnimation()
setAnimation(PsAnimation)
.getAnimation
in interface PsTimeListenerIf
hasAnimation()
,
setAnimation(PsAnimation)
public boolean hasAnimation()
hasAnimation
in interface PsTimeListenerIf
getAnimation()
,
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 PsTimeListenerIf
getAnimation()
,
hasAnimation()
"