Class AnimatorImpl

java.lang.Object
com.spinyowl.legui.animation.AnimatorImpl
All Implemented Interfaces:
Animator

public class AnimatorImpl extends Object implements Animator
  • Constructor Details

    • AnimatorImpl

      public AnimatorImpl()
  • Method Details

    • runAnimations

      public void runAnimations()
      This method used to process animations.
      Specified by:
      runAnimations in interface Animator
    • pushAnimation

      public void pushAnimation(Animation animation)
      Used to add animation to animator.
      Specified by:
      pushAnimation in interface Animator
      Parameters:
      animation - animation to add.
    • removeAnimation

      public void removeAnimation(Animation animation)
      Used to remove animation from animator. In case if animation is not finished animation still should be removed and terminated.
      Specified by:
      removeAnimation in interface Animator
      Parameters:
      animation - animation to remove.