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