java.lang.Object
org.monte.media.player.SynchronousAnimator
SynchronousAnimator.
- 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.voidsetTime(long currentTimeMillis) voidstart()voidstop()
-
Field Details
-
listenerList
-
changeEvent
-
-
Constructor Details
-
SynchronousAnimator
public SynchronousAnimator()
-
-
Method Details
-
setLock
Description copied from interface:AnimatorSet the lock object, on which the animator synchronizes while animating the interpolators. -
isActive
public boolean isActive() -
start
public void start() -
stop
public void stop() -
setTime
public void setTime(long currentTimeMillis) -
dispatch
Description copied from interface:AnimatorDispatches 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
-