public class CompoundAnimator extends BasicAnimator
Animators. Can be used to animate more than one value at a time, driven by a
single Interpolator.| Modifier and Type | Field and Description |
|---|---|
protected Animator[] |
animators |
interpolator| Constructor and Description |
|---|
CompoundAnimator(Interpolator interpolator)
Construct a CompoundAnimator with the given
Interpolator |
CompoundAnimator(Interpolator interpolator,
Animator... animators)
Construct a CompoundAnimator with the given
Interpolator, and the given Animators. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<Animator> |
getAnimators()
Get an
Iterable list of the Animator |
void |
setAnimators(Animator... animators)
Set the
Animators to be driven by this CompoundAnimator |
protected void |
setImpl(double interpolant)
Set the values attached to each of the
Animators using the given interpolant. |
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, next, set, setStopOnInvalidState, start, stopprotected Animator[] animators
public CompoundAnimator(Interpolator interpolator)
Interpolatorinterpolator - the Interpolator to use to drive the animation.public CompoundAnimator(Interpolator interpolator, Animator... animators)
Interpolator, and the given Animators.interpolator - The Interpolator to use to drive the Animatorsanimators - The Animators that will be driven by this CompoundAnimatorpublic final java.lang.Iterable<Animator> getAnimators()
Iterable list of the AnimatorAnimatorspublic void setAnimators(Animator... animators)
Animators to be driven by this CompoundAnimatoranimators - the Animators to be driven by this CompoundAnimatorprotected void setImpl(double interpolant)
Animators using the given interpolant.setImpl in class BasicAnimatorinterpolant - A value between 0 and 1.