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