public class AnimationController extends HashMap<Object,Animator>
AnimationController
class is a convenience class for managing a
group of Animators
.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
AnimationController() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasActiveAnimation()
Returns
true if the controller has any active Animations |
void |
startAnimation(Object animationName)
Starts the animation associated with
animationName |
void |
startAnimations()
Starts all of the
Animator s in the map |
boolean |
stepAnimators()
Stops all
Animator s in the map. |
void |
stopAnimation(Object animationName)
Stops the
Animator associated with animationName |
void |
stopAnimations()
Stops all of the
Animator s 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, values
equals, hashCode, toString
public boolean hasActiveAnimation()
true
if the controller has any active Animations
CompountAnimation
public void startAnimation(Object animationName)
animationName
animationName
- the name of the animation to be started.public void startAnimations()
Animator
s in the mappublic boolean stepAnimators()
Animator
s in the map.Animator
was started, false otherwisepublic void stopAnimation(Object animationName)
Animator
associated with animationName
animationName
- the name of the animation to be stoppedpublic void stopAnimations()
Animator
s in the map