public static class ComponentAnimation.UIMutation extends ComponentAnimation
ComponentAnimation.UIMutation
Constructor and Description |
---|
UIMutation(Container cnt,
ComponentAnimation anim)
Creates a new UIMutation which mutates the given container with the provided
animation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Container cnt,
ComponentAnimation anim)
Tries to add another mutation to this UIMutation.
|
void |
flush()
Flushes the animation immediately, this will be called if the form is de-initialized
|
int |
getMaxSteps()
The total number of steps in this animation.
|
boolean |
isInProgress()
Indicates if the animation is in progress
|
boolean |
isLocked()
Checks if this mutation is locked.
|
void |
setStep(int step)
Sets the current animation step to a value between 0 and maxSteps
|
protected void |
updateState()
Updates the animation state
|
addOnCompleteCall, compoundAnimation, getStep, isStepModeSupported, sequentialAnimation, setNotifyLock, setOnCompletion, updateAnimationState
public UIMutation(Container cnt, ComponentAnimation anim)
cnt
- The container that is being mutated.anim
- The animation.public boolean add(Container cnt, ComponentAnimation anim)
cnt
- The container that is being mutated.anim
- The animationisLocked()
returns true (i.e. the animation has already stared), or if the mutation
is incompatible with any of the existing mutations in this mutation.public boolean isLocked()
protected void updateState()
ComponentAnimation
public boolean isInProgress()
ComponentAnimation
isInProgress
in class ComponentAnimation
public void flush()
ComponentAnimation
flush
in class ComponentAnimation
public int getMaxSteps()
ComponentAnimation
getMaxSteps
in class ComponentAnimation
public void setStep(int step)
ComponentAnimation
setStep
in class ComponentAnimation
step
- the current step