Package com.spinyowl.legui.animation
Class AnimatorImpl
java.lang.Object
com.spinyowl.legui.animation.AnimatorImpl
- All Implemented Interfaces:
Animator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpushAnimation(Animation animation) Used to add animation to animator.voidremoveAnimation(Animation animation) Used to remove animation from animator.voidThis method used to process animations.
-
Constructor Details
-
AnimatorImpl
public AnimatorImpl()
-
-
Method Details
-
runAnimations
public void runAnimations()This method used to process animations.- Specified by:
runAnimationsin interfaceAnimator
-
pushAnimation
Used to add animation to animator.- Specified by:
pushAnimationin interfaceAnimator- Parameters:
animation- animation to add.
-
removeAnimation
Used to remove animation from animator. In case if animation is not finished animation still should be removed and terminated.- Specified by:
removeAnimationin interfaceAnimator- Parameters:
animation- animation to remove.
-