Package gov.nasa.worldwind.animation
Class AnimationController
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<java.lang.Object,Animator>
-
- gov.nasa.worldwind.animation.AnimationController
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<java.lang.Object,Animator>
public class AnimationController extends java.util.HashMap<java.lang.Object,Animator>
TheAnimationControllerclass is a convenience class for managing a group ofAnimators.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AnimationController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasActiveAnimation()Returnstrueif the controller has any activeAnimationsvoidstartAnimation(java.lang.Object animationName)Starts the animation associated withanimationNamevoidstartAnimations()Starts all of theAnimators in the mapbooleanstepAnimators()Stops allAnimators in the map.voidstopAnimation(java.lang.Object animationName)Stops theAnimatorassociated withanimationNamevoidstopAnimations()Stops all of theAnimators in the map
-
-
-
Method Detail
-
startAnimations
public void startAnimations()
Starts all of theAnimators in the map
-
stopAnimations
public void stopAnimations()
Stops all of theAnimators in the map
-
startAnimation
public void startAnimation(java.lang.Object animationName)
Starts the animation associated withanimationName- Parameters:
animationName- the name of the animation to be started.
-
stopAnimation
public void stopAnimation(java.lang.Object animationName)
Stops theAnimatorassociated withanimationName- Parameters:
animationName- the name of the animation to be stopped
-
stepAnimators
public boolean stepAnimators()
Stops allAnimators in the map.- Returns:
- true if any
Animatorwas started, false otherwise
-
hasActiveAnimation
public boolean hasActiveAnimation()
Returnstrueif the controller has any activeAnimations- Returns:
- true if there are any active animations in this
CompountAnimation
-
-