Class AnimationState<T>
- java.lang.Object
-
- at.wirecube.additiveanimations.additive_animator.animation_set.AnimationState<T>
-
- All Implemented Interfaces:
AnimationAction<T>
- Direct Known Subclasses:
ViewAnimationState,ViewVisibilityAnimation
public abstract class AnimationState<T> extends Object implements AnimationAction<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAnimationState.AnimationEndAction<T>static interfaceAnimationState.AnimationStartAction<T>static classAnimationState.Builder<T>-
Nested classes/interfaces inherited from interface at.wirecube.additiveanimations.additive_animator.animation_set.AnimationAction
AnimationAction.Animation<T>
-
-
Constructor Summary
Constructors Constructor Description AnimationState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnimationState.AnimationEndAction<T>getAnimationEndAction()AnimationState.AnimationStartAction<T>getAnimationStartAction()booleanshouldRun(AnimationState<T> currentState)The animations are only allowed to run if the current state of the animated object matches this state.booleanshouldRunEndListener(AnimationState<T> currentState)The animationEndListener is only allowed to run if the current state of the animated object matches this state.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface at.wirecube.additiveanimations.additive_animator.animation_set.AnimationAction
getAnimations
-
-
-
-
Method Detail
-
shouldRun
public final boolean shouldRun(AnimationState<T> currentState)
The animations are only allowed to run if the current state of the animated object matches this state.
-
shouldRunEndListener
public final boolean shouldRunEndListener(AnimationState<T> currentState)
The animationEndListener is only allowed to run if the current state of the animated object matches this state.
-
getAnimationEndAction
public AnimationState.AnimationEndAction<T> getAnimationEndAction()
-
getAnimationStartAction
public AnimationState.AnimationStartAction<T> getAnimationStartAction()
-
-