public class CompoundAnimator extends BasicAnimator
Animator
s. 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 Animator s. |
Modifier and Type | Method and Description |
---|---|
Iterable<Animator> |
getAnimators()
|
void |
setAnimators(Animator... animators)
Set the
Animator s to be driven by this CompoundAnimator |
protected void |
setImpl(double interpolant)
Set the values attached to each of the
Animator s using the given interpolant. |
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, next, set, setStopOnInvalidState, start, stop
protected Animator[] animators
public CompoundAnimator(Interpolator interpolator)
Interpolator
interpolator
- the Interpolator
to use to drive the animation.public CompoundAnimator(Interpolator interpolator, Animator... animators)
Interpolator
, and the given Animator
s.interpolator
- The Interpolator
to use to drive the Animator
sanimators
- The Animator
s that will be driven by this CompoundAnimator
public void setAnimators(Animator... animators)
Animator
s to be driven by this CompoundAnimator
animators
- the Animator
s to be driven by this CompoundAnimator
protected void setImpl(double interpolant)
Animator
s using the given interpolant.setImpl
in class BasicAnimator
interpolant
- A value between 0 and 1.