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