org.monte.media
Class SynchronousAnimator
java.lang.Object
org.monte.media.SynchronousAnimator
- All Implemented Interfaces:
- java.lang.Runnable, Animator
public class SynchronousAnimator
- extends java.lang.Object
- implements Animator
SynchronousAnimator.
- Author:
- Werner Randelshofer
@version 1.0 Apr 28, 2008 Created.
|
Field Summary |
protected javax.swing.event.ChangeEvent |
changeEvent
|
protected javax.swing.event.EventListenerList |
listenerList
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listenerList
protected javax.swing.event.EventListenerList listenerList
changeEvent
protected javax.swing.event.ChangeEvent changeEvent
SynchronousAnimator
public SynchronousAnimator()
setLock
public void setLock(java.lang.Object lock)
- Description copied from interface:
Animator
- Set the lock object, on which the animator synchronizes while
animating the interpolators.
- Specified by:
setLock in interface Animator
isActive
public boolean isActive()
- Specified by:
isActive in interface Animator
start
public void start()
- Specified by:
start in interface Animator
stop
public void stop()
- Specified by:
stop in interface Animator
setTime
public void setTime(long currentTimeMillis)
dispatch
public void dispatch(Interpolator interpolator)
- Description copied from interface:
Animator
- Dispatches an interpolator for the animation thread.
This will launch the animation thread if it is not already active.
- Specified by:
dispatch in interface Animator
animateStep
public void animateStep()
- Specified by:
animateStep in interface Animator
run
public void run()
- Specified by:
run in interface java.lang.Runnable- Specified by:
run in interface Animator
addChangeListener
public void addChangeListener(javax.swing.event.ChangeListener listener)
- Specified by:
addChangeListener in interface Animator
removeChangeListener
public void removeChangeListener(javax.swing.event.ChangeListener listener)
- Specified by:
removeChangeListener in interface Animator
fireStateChanged
protected void fireStateChanged()
- Notify all listeners that have registered interest for
notification on this event type.
isSynchronous
public boolean isSynchronous()
- Specified by:
isSynchronous in interface Animator