public class IntegerArrayValueAnimator extends Object implements ValueAnimator<int[]>
ValueAnimator
capable of producing int arrays from
a set of potentially independent underlying ValueAnimator
s.Constructor and Description |
---|
IntegerArrayValueAnimator(ValueAnimator<Integer>... animators)
Construct from an array of
ValueAnimator s |
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
LinearIntegerValueAnimator s 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
LinearIntegerValueAnimator s 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
RandomLinearIntegerValueAnimator s 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
RandomLinearIntegerValueAnimator s 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)
ValueAnimator
sanimators
- the animatorspublic static IntegerArrayValueAnimator makeLinear(int duration, int... maxs)
LinearIntegerValueAnimator
s with the
range -max to +max and the given duration.duration
- the duration of the underlying animatorsmaxs
- max distance from 0 (+/-)IntegerArrayValueAnimator
public static IntegerArrayValueAnimator makeLinear(int duration, int count, int start, int finish)
LinearIntegerValueAnimator
s with the given start
and finish values, and the given duration.duration
- the durationcount
- the number of animatorsstart
- the starting valuefinish
- the finishing valueIntegerArrayValueAnimator
public static IntegerArrayValueAnimator makeRandomLinear(int duration, int... maxs)
RandomLinearIntegerValueAnimator
s with the
range -max to +max and the given duration.duration
- the duration of the underlying animatorsmaxs
- max distance from 0 (+/-)IntegerArrayValueAnimator
public static IntegerArrayValueAnimator makeRandomLinear(int duration, int count, int start, int finish)
RandomLinearIntegerValueAnimator
s with the given start
and finish values, and the given duration.duration
- the durationcount
- the number of animatorsstart
- the starting valuefinish
- the finishing valueIntegerArrayValueAnimator
public int[] nextValue()
ValueAnimator
nextValue
in interface ValueAnimator<int[]>
public boolean hasFinished()
ValueAnimator
hasFinished
in interface ValueAnimator<int[]>
public void reset()
ValueAnimator
reset
in interface ValueAnimator<int[]>