NASA World Wind

gov.nasa.worldwind.animation
Class AnimationController

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<Object,Animator>
          extended by gov.nasa.worldwind.animation.AnimationController
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Animator>

public class AnimationController
extends HashMap<Object,Animator>

The AnimationController class is a convenience class for managing a group of Animators.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
AnimationController()
           
 
Method Summary
 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 Animators in the map
 boolean stepAnimators()
          Stops all Animators in the map.
 void stopAnimation(Object animationName)
          Stops the Animator associated with animationName
 void stopAnimations()
          Stops all of the Animators in the map
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

AnimationController

public AnimationController()
Method Detail

hasActiveAnimation

public boolean hasActiveAnimation()
Returns true if the controller has any active Animations

Returns:
true if there are any active animations in this CompountAnimation

startAnimation

public void startAnimation(Object animationName)
Starts the animation associated with animationName

Parameters:
animationName - the name of the animation to be started.

startAnimations

public void startAnimations()
Starts all of the Animators in the map


stepAnimators

public boolean stepAnimators()
Stops all Animators in the map.

Returns:
true if any Animator was started, false otherwise

stopAnimation

public void stopAnimation(Object animationName)
Stops the Animator associated with animationName

Parameters:
animationName - the name of the animation to be stopped

stopAnimations

public void stopAnimations()
Stops all of the Animators in the map


NASA World Wind