Package gov.nasa.worldwind.animation
Class CompoundAnimator
- java.lang.Object
-
- gov.nasa.worldwind.animation.BasicAnimator
-
- gov.nasa.worldwind.animation.CompoundAnimator
-
- All Implemented Interfaces:
Animator
- Direct Known Subclasses:
FlyToFlyViewAnimator,FlyToOrbitViewAnimator
public class CompoundAnimator extends BasicAnimator
A group of two or moreAnimators. Can be used to animate more than one value at a time, driven by a singleInterpolator.
-
-
Field Summary
Fields Modifier and Type Field Description protected Animator[]animators-
Fields inherited from class gov.nasa.worldwind.animation.BasicAnimator
interpolator
-
-
Constructor Summary
Constructors Constructor Description CompoundAnimator(Interpolator interpolator)Construct a CompoundAnimator with the givenInterpolatorCompoundAnimator(Interpolator interpolator, Animator... animators)Construct a CompoundAnimator with the givenInterpolator, and the givenAnimators.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<Animator>getAnimators()Get anIterablelist of theAnimatorvoidsetAnimators(Animator... animators)Set theAnimators to be driven by thisCompoundAnimatorprotected voidsetImpl(double interpolant)Set the values attached to each of theAnimators using the given interpolant.-
Methods inherited from class gov.nasa.worldwind.animation.BasicAnimator
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, next, set, setStopOnInvalidState, start, stop
-
-
-
-
Field Detail
-
animators
protected Animator[] animators
-
-
Constructor Detail
-
CompoundAnimator
public CompoundAnimator(Interpolator interpolator)
Construct a CompoundAnimator with the givenInterpolator- Parameters:
interpolator- theInterpolatorto use to drive the animation.
-
CompoundAnimator
public CompoundAnimator(Interpolator interpolator, Animator... animators)
Construct a CompoundAnimator with the givenInterpolator, and the givenAnimators.- Parameters:
interpolator- TheInterpolatorto use to drive theAnimatorsanimators- TheAnimators that will be driven by thisCompoundAnimator
-
-
Method Detail
-
setAnimators
public void setAnimators(Animator... animators)
Set theAnimators to be driven by thisCompoundAnimator- Parameters:
animators- theAnimators to be driven by thisCompoundAnimator
-
getAnimators
public final java.lang.Iterable<Animator> getAnimators()
Get anIterablelist of theAnimator- Returns:
- the list of
Animators
-
setImpl
protected void setImpl(double interpolant)
Set the values attached to each of theAnimators using the given interpolant.- Overrides:
setImplin classBasicAnimator- Parameters:
interpolant- A value between 0 and 1.
-
-