public class FloatArrayValueAnimator extends Object implements ValueAnimator<float[]>
ValueAnimator capable of producing float arrays from
a set of potentially independent underlying ValueAnimators.| Constructor and Description |
|---|
FloatArrayValueAnimator(ValueAnimator<Float>... animators)
Construct from an array of
ValueAnimators |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasFinished()
Has the animator finished animating the value.
|
static FloatArrayValueAnimator |
makeLinear(int duration,
float... maxs)
Construct a new FloatArrayValueAnimator from an array of
values using
LinearFloatValueAnimators with the
range -max to +max and the given duration. |
static FloatArrayValueAnimator |
makeLinear(int duration,
int count,
float start,
float finish)
Construct a new FloatArrayValueAnimator from count
LinearFloatValueAnimators with the given start
and finish values, and the given duration. |
static FloatArrayValueAnimator |
makeRandomLinear(int duration,
float... maxs)
Construct a new FloatArrayValueAnimator from an array of
values using
RandomLinearFloatValueAnimators with the
range -max to +max and the given duration. |
static FloatArrayValueAnimator |
makeRandomLinear(int duration,
int count,
float start,
float finish)
Construct a new FloatArrayValueAnimator from count
RandomLinearFloatValueAnimators with the given start
and finish values, and the given duration. |
float[] |
nextValue()
Get the next value.
|
void |
reset()
Reset the animator back to its initial condition.
|
@SafeVarargs public FloatArrayValueAnimator(ValueAnimator<Float>... animators)
ValueAnimatorsanimators - the animatorspublic static FloatArrayValueAnimator makeLinear(int duration, float... maxs)
LinearFloatValueAnimators with the
range -max to +max and the given duration.duration - the duration of the underlying animatorsmaxs - max distance from 0 (+/-)FloatArrayValueAnimatorpublic static FloatArrayValueAnimator makeLinear(int duration, int count, float start, float finish)
LinearFloatValueAnimators with the given start
and finish values, and the given duration.duration - the durationcount - the number of animatorsstart - the starting valuefinish - the finishing valueFloatArrayValueAnimatorpublic static FloatArrayValueAnimator makeRandomLinear(int duration, float... maxs)
RandomLinearFloatValueAnimators with the
range -max to +max and the given duration.duration - the duration of the underlying animatorsmaxs - max distance from 0 (+/-)FloatArrayValueAnimatorpublic static FloatArrayValueAnimator makeRandomLinear(int duration, int count, float start, float finish)
RandomLinearFloatValueAnimators with the given start
and finish values, and the given duration.duration - the durationcount - the number of animatorsstart - the starting valuefinish - the finishing valueFloatArrayValueAnimatorpublic float[] nextValue()
ValueAnimatornextValue in interface ValueAnimator<float[]>public boolean hasFinished()
ValueAnimatorhasFinished in interface ValueAnimator<float[]>public void reset()
ValueAnimatorreset in interface ValueAnimator<float[]>