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 Animator
TheAnimator
interface provides a way to iterate through a series of values. It can be used with a simple interpolation function, or something more elaborate. ThePropertyAccessor
class 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 boolean
hasNext()
Returnstrue
if theAnimator
has more elements.void
next()
Iterates to the next value.void
set(double interpolant)
Set the value of the attached property to the value associated with this interpolant value.void
start()
Starts theAnimator
.void
stop()
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 returntrue
fromhasNext
-
stop
void stop()
Stops theAnimator
. The implmenentation should returnfalse
fromhasNext
-
hasNext
boolean hasNext()
Returnstrue
if theAnimator
has more elements.- Returns:
true
if theAnimator
has 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.
-
-