public class LinearTimeBasedShortValueAnimator extends TimeBasedValueAnimator<Short>
TimeBasedValueAnimator
that linearly animates a short value between two
values over a given time.endValue, startValue
Constructor and Description |
---|
LinearTimeBasedShortValueAnimator(short start,
short finish,
long duration)
Construct a
LinearTimeBasedShortValueAnimator with the given
start and finish values, and the given duration in millseconds. |
Modifier and Type | Method and Description |
---|---|
Short |
calculateValue(double pc)
Calculates the value of the short based on the start, end and current
percentage.
|
hasFinished, isComplete, nextValue, reset
public LinearTimeBasedShortValueAnimator(short start, short finish, long duration)
LinearTimeBasedShortValueAnimator
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 Short calculateValue(double pc)
calculateValue
in class TimeBasedValueAnimator<Short>
pc
- The percentagepc
along between start and finish