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