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