java.lang.Object
org.monte.media.player.DefaultAnimator
DefaultAnimator.
- Author:
- Werner Randelshofer @version $Id$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangeListener(ChangeListener listener) voidvoiddispatch(Interpolator interpolator) Dispatches an interpolator for the animation thread.protected voidNotify all listeners that have registered interest for notification on this event type.booleanisActive()booleanvoidremoveChangeListener(ChangeListener listener) voidrun()voidSet the lock object, on which the animator synchronizes while animating the interpolators.voidstart()voidstop()
-
Field Details
-
listenerList
-
changeEvent
-
-
Constructor Details
-
DefaultAnimator
public DefaultAnimator()Creates a new instance.
-
-
Method Details
-
setLock
Set the lock object, on which the animator synchronizes while animating the interpolators. -
isActive
public boolean isActive() -
start
public void start() -
stop
public void stop() -
dispatch
Dispatches an interpolator for the animation thread. This will launch the animation thread if it is not already active. -
animateStep
public void animateStep()- Specified by:
animateStepin interfaceAnimator
-
run
public void run() -
addChangeListener
- Specified by:
addChangeListenerin interfaceAnimator
-
removeChangeListener
- Specified by:
removeChangeListenerin interfaceAnimator
-
fireStateChanged
protected void fireStateChanged()Notify all listeners that have registered interest for notification on this event type. -
isSynchronous
public boolean isSynchronous()- Specified by:
isSynchronousin interfaceAnimator
-