public class AnimationController extends java.util.HashMap<java.lang.Object,Animator>
AnimationController class is a convenience class for managing a
group of Animators.| Constructor and Description |
|---|
AnimationController() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasActiveAnimation()
Returns
true if the controller has any active Animations |
void |
startAnimation(java.lang.Object animationName)
Starts the animation associated with
animationName |
void |
startAnimations()
Starts all of the
Animators in the map |
boolean |
stepAnimators()
Stops all
Animators in the map. |
void |
stopAnimation(java.lang.Object animationName)
Stops the
Animator associated with animationName |
void |
stopAnimations()
Stops all of the
Animators in the map |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic boolean hasActiveAnimation()
true if the controller has any active AnimationsCompountAnimationpublic void startAnimation(java.lang.Object animationName)
animationNameanimationName - the name of the animation to be started.public void startAnimations()
Animators in the mappublic boolean stepAnimators()
Animators in the map.Animator was started, false otherwisepublic void stopAnimation(java.lang.Object animationName)
Animator associated with animationNameanimationName - the name of the animation to be stoppedpublic void stopAnimations()
Animators in the map