jvx.math
Class MathTimerListener
- java.lang.Object
-
- jvx.math.MathListener
-
- jvx.math.MathTimerListener
-
- All Implemented Interfaces:
- PsTimeListenerIf
public class MathTimerListener extends MathListener implements PsTimeListenerIf
Listener to receive time events of a ticker to invoke Mathematica commands. This listener invokes a Mathematica method which has been registered under the name "update".- See Also:
PsTimeListenerIf- Author:
- Konrad Polthier
- Version:
- 21.02.01, 1.20 revised (kp) Adjusted to new methods in PsTimeListenerIf.
16.09.00, 1.10 revised (kp) Adjusted to renaming of interface PsDynamicIf to PsTimeListenerIf.
30.07.00, 1.00 created (kp)
-
-
Constructor Summary
Constructors Constructor and Description MathTimerListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description PsAnimationgetAnimation()Get the animation object of the project which handles the projects animations.booleanhasAnimation()Check whether this project is registered as listener of an animation object.voidsetAnimation(PsAnimation anAnimation)Assign the animation object where this listener is registered.booleansetTime(PsTimeEvent time)Animation updates the dynamic object through this method whenever time has changed.-
Methods inherited from class jvx.math.MathListener
getHandler, getName, setHandler, setName
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jv.anim.PsTimeListenerIf
getName
-
-
-
-
Method Detail
-
setTime
public boolean setTime(PsTimeEvent time)
Animation updates the dynamic object through this method whenever time has changed.- Specified by:
setTimein interfacePsTimeListenerIf- Parameters:
time- Time event issued by an animation
-
getAnimation
public PsAnimation getAnimation()
Get the animation object of the project which handles the projects animations. This listener may only have a single animation object which is assigned by the animation object when this listener is registered usingsetAnimation(PsAnimation).- Specified by:
getAnimationin interfacePsTimeListenerIf- See Also:
hasAnimation(),setAnimation(PsAnimation)
-
hasAnimation
public boolean hasAnimation()
Check whether this project is registered as listener of an animation object.- Specified by:
hasAnimationin interfacePsTimeListenerIf- See Also:
getAnimation(),setAnimation(PsAnimation)
-
setAnimation
public void setAnimation(PsAnimation anAnimation)
Assign the animation object where this listener is registered. This method is invoked by the animation object during registration of this listener, and usually is not required to be called by a user. If this listener has an assigned animation object, then its animation panel may be shown to change the current time of this listener.Only one animation object may be assigned to this listener. Subsequent assignments will replace the previous assignment.
- Specified by:
setAnimationin interfacePsTimeListenerIf- See Also:
getAnimation(),hasAnimation()
-
-
"