Package gov.nasa.worldwind.animation
Interface Animator
-
- All Known Implementing Classes:
AngleAnimator,BasicAnimator,CompoundAnimator,DoubleAnimator,FlyToFlyViewAnimator,FlyToFlyViewAnimator.FlyToElevationAnimator,FlyToFlyViewAnimator.OnSurfacePositionAnimator,FlyToOrbitViewAnimator,FlyToOrbitViewAnimator.OnSurfacePositionAnimator,KeepingObjectsInView.ViewAnimator,KMLFlyViewController.FlyToLookAtAnimator,KMLOrbitViewController.EyePositionAnimator,MoveToDoubleAnimator,MoveToPositionAnimator,OrbitViewCenterAnimator,OrbitViewEyePointAnimator,OrbitViewMoveToZoomAnimator,PositionAnimator,RotateToAngleAnimator,ViewElevationAnimator
public interface AnimatorTheAnimatorinterface provides a way to iterate through a series of values. It can be used with a simple interpolation function, or something more elaborate. ThePropertyAccessorclass and its interfaces can be used to agnostically attach to data members of any class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasNext()Returnstrueif theAnimatorhas more elements.voidnext()Iterates to the next value.voidset(double interpolant)Set the value of the attached property to the value associated with this interpolant value.voidstart()Starts theAnimator.voidstop()Stops theAnimator.
-
-
-
Method Detail
-
next
void next()
Iterates to the next value. The implementation is expected to apply that next value to the property it is attached to.
-
start
void start()
Starts theAnimator. The implemenation should returntruefromhasNext
-
stop
void stop()
Stops theAnimator. The implmenentation should returnfalsefromhasNext
-
hasNext
boolean hasNext()
Returnstrueif theAnimatorhas more elements.- Returns:
trueif theAnimatorhas more elements.
-
set
void set(double interpolant)
Set the value of the attached property to the value associated with this interpolant value.- Parameters:
interpolant- A value between 0 and 1.
-
-