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>
TheAnimationController
class 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 boolean
hasActiveAnimation()
Returnstrue
if the controller has any activeAnimations
void
startAnimation(java.lang.Object animationName)
Starts the animation associated withanimationName
void
startAnimations()
Starts all of theAnimator
s in the mapboolean
stepAnimators()
Stops allAnimator
s in the map.void
stopAnimation(java.lang.Object animationName)
Stops theAnimator
associated withanimationName
void
stopAnimations()
Stops all of theAnimator
s in the map
-
-
-
Method Detail
-
startAnimations
public void startAnimations()
Starts all of theAnimator
s in the map
-
stopAnimations
public void stopAnimations()
Stops all of theAnimator
s 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 theAnimator
associated withanimationName
- Parameters:
animationName
- the name of the animation to be stopped
-
stepAnimators
public boolean stepAnimators()
Stops allAnimator
s in the map.- Returns:
- true if any
Animator
was started, false otherwise
-
hasActiveAnimation
public boolean hasActiveAnimation()
Returnstrue
if the controller has any activeAnimations
- Returns:
- true if there are any active animations in this
CompountAnimation
-
-