Class 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>
    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

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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
      • Methods inherited from class java.util.HashMap

        clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        equals, hashCode
    • Constructor Detail

      • AnimationController

        public AnimationController()
    • Method Detail

      • startAnimations

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

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

        public void startAnimation​(java.lang.Object animationName)
        Starts the animation associated with animationName
        Parameters:
        animationName - the name of the animation to be started.
      • stopAnimation

        public void stopAnimation​(java.lang.Object animationName)
        Stops the Animator associated with animationName
        Parameters:
        animationName - the name of the animation to be stopped
      • stepAnimators

        public boolean stepAnimators()
        Stops all Animators in the map.
        Returns:
        true if any Animator was started, false otherwise
      • hasActiveAnimation

        public boolean hasActiveAnimation()
        Returns true if the controller has any active Animations
        Returns:
        true if there are any active animations in this CompountAnimation