public final class AnimationManager
extends java.lang.Object
Animation instances, and dispatches
any updates in the (global) time to these animations.| Modifier and Type | Class and Description |
|---|---|
static class |
AnimationManager.AnimationPolicy
A policy describing how the animations should be executed
|
| Constructor and Description |
|---|
AnimationManager(AnimationManager.AnimationPolicy animationPolicy)
Creates a new, empty animation manager
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAnimation(Animation animation)
Add the given
Animation to this manager. |
void |
addAnimationManagerListener(AnimationManagerListener listener)
Add the given
AnimationManagerListener to be informed about
changes in this manager |
void |
addAnimations(java.lang.Iterable<? extends Animation> animations)
Add all
Animations of the given sequence to this manager |
java.util.List<Animation> |
getAnimations()
Returns an unmodifiable view on the animations that are stored
in this manager
|
void |
removeAnimation(Animation animation)
Remove the given
Animation from this manager |
void |
removeAnimationManagerListener(AnimationManagerListener listener)
Remove the given
AnimationManagerListener |
void |
removeAnimations(java.lang.Iterable<? extends Animation> animations)
Remove all
Animations of the given sequence from this manager |
void |
reset()
Reset this manager to its initial state.
|
public AnimationManager(AnimationManager.AnimationPolicy animationPolicy)
animationPolicy - The AnimationManager.AnimationPolicypublic void reset()
Animations with a time of 0.0.public void addAnimation(Animation animation)
Animation to this manager.animation - The Animation to addpublic void addAnimations(java.lang.Iterable<? extends Animation> animations)
Animations of the given sequence to this manageranimations - The Animations to addpublic void removeAnimation(Animation animation)
Animation from this manageranimation - The Animation to removepublic void removeAnimations(java.lang.Iterable<? extends Animation> animations)
Animations of the given sequence from this manageranimations - The Animations to removepublic java.util.List<Animation> getAnimations()
public void addAnimationManagerListener(AnimationManagerListener listener)
AnimationManagerListener to be informed about
changes in this managerlistener - The listener to addpublic void removeAnimationManagerListener(AnimationManagerListener listener)
AnimationManagerListenerlistener - The listener to removeCopyright © 2022. All Rights Reserved.