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