|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.visual.animator.Animator
public abstract class Animator
Represents an animator. An animator is registed to a scene animator and could be started. From that moment the scene animator automatically calls Animator.tick method for a solid period of time set by the scene animator. In the tick method the animation has to implemented. The animation should be independent on time-duration.
Since 2.2, it is possible to listener on important events of the animator using AnimatorListener
interface.
Constructor Summary | |
---|---|
protected |
Animator(SceneAnimator sceneAnimator)
Creates an animator and assigns a scene animator. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Animator(SceneAnimator sceneAnimator)
sceneAnimator
- the scene animatorMethod Detail |
---|
protected 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 listener
|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |