T
- Type of value producedpublic abstract class AbstractValueAnimator<T> extends Object implements ValueAnimator<T>
nextValue()
is
called, subject to some constraints.Constructor and Description |
---|
AbstractValueAnimator(T initial,
int startWait,
int stopWait)
Construct with initial value
|
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
complete() |
boolean |
hasFinished()
Has the animator finished animating the value.
|
protected abstract T |
makeNextValue() |
T |
nextValue()
Get the next value.
|
void |
reset()
Reset the animator back to its initial condition.
|
protected abstract void |
resetToInitial() |
public AbstractValueAnimator(T initial, int startWait, int stopWait)
initial
- initial valuestartWait
- amount of time in ticks to wait before starting animation.stopWait
- amount of time in ticks to wait after finishing animation.public T nextValue()
nextValue
in interface ValueAnimator<T>
protected abstract T makeNextValue()
protected abstract void resetToInitial()
public final void reset()
ValueAnimator
reset
in interface ValueAnimator<T>
protected abstract boolean complete()
public final boolean hasFinished()
ValueAnimator
hasFinished
in interface ValueAnimator<T>