public class LinearTimeBasedByteValueAnimator extends TimeBasedValueAnimator<Byte>
TimeBasedValueAnimator
that linearly animates a byte value between two
values over a given time.endValue, startValue
Constructor and Description |
---|
LinearTimeBasedByteValueAnimator(byte start,
byte finish,
long duration)
Construct a
LinearTimeBasedByteValueAnimator with the given
start and finish values, and the given duration in millseconds. |
Modifier and Type | Method and Description |
---|---|
Byte |
calculateValue(double pc)
Calculates the value of the byte based on the start, end and current
percentage.
|
hasFinished, isComplete, nextValue, reset
public LinearTimeBasedByteValueAnimator(byte start, byte finish, long duration)
LinearTimeBasedByteValueAnimator
with the given
start and finish values, and the given duration in millseconds.
The animation starts on the first call to makeNextValue()
and completes once duration ticks have been reached.start
- start valuefinish
- stop valueduration
- in millisecondspublic Byte calculateValue(double pc)
calculateValue
in class TimeBasedValueAnimator<Byte>
pc
- The percentagepc
along between start and finish