public class LinearByteValueAnimator extends AbstractValueAnimator<Byte> implements ReversableValueAnimator<Byte>
ValueAnimator
that linearly animates a Byte value between two values.Constructor and Description |
---|
LinearByteValueAnimator(byte start,
byte finish,
int duration)
Construct a
LinearByteValueAnimator with the given
start and finish values, and the given duration in ticks
(number of calls to AbstractValueAnimator.nextValue() . |
LinearByteValueAnimator(int startWait,
int stopWait,
byte start,
byte finish,
int duration)
Construct a
LinearByteValueAnimator 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() |
Byte |
makeNextValue() |
protected void |
resetToInitial() |
ReversableValueAnimator<Byte> |
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 LinearByteValueAnimator(byte start, byte finish, int duration)
LinearByteValueAnimator
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 LinearByteValueAnimator(int startWait, int stopWait, byte start, byte finish, int duration)
LinearByteValueAnimator
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 Byte makeNextValue()
makeNextValue
in class AbstractValueAnimator<Byte>
protected boolean complete()
complete
in class AbstractValueAnimator<Byte>
protected void resetToInitial()
resetToInitial
in class AbstractValueAnimator<Byte>
public ReversableValueAnimator<Byte> reverseAnimator()
ReversableValueAnimator
reverseAnimator
in interface ReversableValueAnimator<Byte>