Modifier and Type | Field and Description |
---|---|
protected javax.swing.event.ChangeEvent |
changeEvent |
protected javax.swing.event.EventListenerList |
listenerList |
Constructor and Description |
---|
DefaultAnimator()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener listener) |
void |
animateStep() |
void |
dispatch(Interpolator interpolator)
Dispatches an interpolator for the animation thread.
|
protected void |
fireStateChanged()
Notify all listeners that have registered interest for
notification on this event type.
|
boolean |
isActive() |
boolean |
isSynchronous() |
void |
removeChangeListener(javax.swing.event.ChangeListener listener) |
void |
run() |
void |
setLock(java.lang.Object lock)
Set the lock object, on which the animator synchronizes while
animating the interpolators.
|
void |
start() |
void |
stop() |
protected javax.swing.event.EventListenerList listenerList
protected javax.swing.event.ChangeEvent changeEvent
public void setLock(java.lang.Object lock)
public void dispatch(Interpolator interpolator)
public void animateStep()
animateStep
in interface Animator
public void run()
public void addChangeListener(javax.swing.event.ChangeListener listener)
addChangeListener
in interface Animator
public void removeChangeListener(javax.swing.event.ChangeListener listener)
removeChangeListener
in interface Animator
protected void fireStateChanged()
public boolean isSynchronous()
isSynchronous
in interface Animator