public abstract class Animator extends Object
Since 2.2, it is possible to listener on important events of the animator using AnimatorListener interface.
| Modifier | Constructor and Description |
|---|---|
protected |
Animator(SceneAnimator sceneAnimator)
Creates an animator and assigns a scene animator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAnimatorListener(AnimatorListener listener)
Adds an animator listener to the animator.
|
protected Scene |
getScene()
Returns a scene that is related to the scene animator.
|
boolean |
isRunning()
Returns whether the animation is running.
|
void |
removeAnimatorListener(AnimatorListener listener)
Removes an animator listener from the animator.
|
protected void |
start()
Registers and starts the animation.
|
protected abstract void |
tick(double progress)
Called for performing the animation based on a progress value.
|
protected Animator(SceneAnimator sceneAnimator)
sceneAnimator - the scene animatorprotected final Scene getScene()
protected final void start()
public final boolean isRunning()
protected abstract void tick(double progress)
progress - the progresspublic void addAnimatorListener(AnimatorListener listener)
listener - the animator listenerpublic void removeAnimatorListener(AnimatorListener listener)
listener - the animator listenerBuilt on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.