public class LinearLongValueAnimator extends AbstractValueAnimator<Long> implements ReversableValueAnimator<Long>
ValueAnimator
that linearly animates a Long value between two values.Constructor and Description |
---|
LinearLongValueAnimator(int startWait,
int stopWait,
long start,
long finish,
int duration)
Construct a
LinearLongValueAnimator with the given
start and finish values, and the given duration in ticks
(number of calls to AbstractValueAnimator.nextValue() . |
LinearLongValueAnimator(long start,
long finish,
int duration)
Construct a
LinearLongValueAnimator 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() |
Long |
makeNextValue() |
protected void |
resetToInitial() |
ReversableValueAnimator<Long> |
reverseAnimator()
Reverse the animator and return it, or make a new animator
with the same state as this animator, but reversed direction.
|
hasFinished, nextValue, reset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasFinished, nextValue, reset
public LinearLongValueAnimator(long start, long finish, int duration)
LinearLongValueAnimator
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 LinearLongValueAnimator(int startWait, int stopWait, long start, long finish, int duration)
LinearLongValueAnimator
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 Long makeNextValue()
makeNextValue
in class AbstractValueAnimator<Long>
protected boolean complete()
complete
in class AbstractValueAnimator<Long>
protected void resetToInitial()
resetToInitial
in class AbstractValueAnimator<Long>
public ReversableValueAnimator<Long> reverseAnimator()
ReversableValueAnimator
reverseAnimator
in interface ReversableValueAnimator<Long>