public class LinearIntegerValueAnimator extends AbstractValueAnimator<Integer> implements ReversableValueAnimator<Integer>
ValueAnimator that linearly animates a Integer value between two values.| Constructor and Description |
|---|
LinearIntegerValueAnimator(int start,
int finish,
int duration)
Construct a
LinearIntegerValueAnimator with the given
start and finish values, and the given duration in ticks
(number of calls to AbstractValueAnimator.nextValue(). |
LinearIntegerValueAnimator(int startWait,
int stopWait,
int start,
int finish,
int duration)
Construct a
LinearIntegerValueAnimator with the given
start and finish values, and the given duration in ticks
(number of calls to AbstractValueAnimator.nextValue(). |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
complete() |
Integer |
makeNextValue() |
protected void |
resetToInitial() |
ReversableValueAnimator<Integer> |
reverseAnimator()
Reverse the animator and return it, or make a new animator
with the same state as this animator, but reversed direction.
|
hasFinished, nextValue, resetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFinished, nextValue, resetpublic LinearIntegerValueAnimator(int start, int finish, int duration)
LinearIntegerValueAnimator with the given
start and finish values, and the given duration in ticks
(number of calls to AbstractValueAnimator.nextValue(). The animation
starts immediately and completes once duration ticks have been
reached.start - start valuefinish - stop valueduration - public LinearIntegerValueAnimator(int startWait, int stopWait, int start, int finish, int duration)
LinearIntegerValueAnimator with the given
start and finish values, and the given duration in ticks
(number of calls to AbstractValueAnimator.nextValue(). The animation will
start after startWait ticks, and finish stopWait ticks after
startWait+duration.startWait - amount of time in ticks to wait before starting animation.stopWait - amount of time in ticks to wait after finishing animation.start - start valuefinish - stop valueduration - public Integer makeNextValue()
makeNextValue in class AbstractValueAnimator<Integer>protected boolean complete()
complete in class AbstractValueAnimator<Integer>protected void resetToInitial()
resetToInitial in class AbstractValueAnimator<Integer>public ReversableValueAnimator<Integer> reverseAnimator()
ReversableValueAnimatorreverseAnimator in interface ReversableValueAnimator<Integer>