NASA World Wind

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, OrbitViewMoveToZoomAnimator, PositionAnimator, RotateToAngleAnimator, ViewElevationAnimator

public interface Animator

The Animator interface provides a way to iterate through a series of values. It can be used with a simple interpolation function, or something more elaborate. The PropertyAccessor class and its interfaces can be used to agnostically attach to data members of any class.


Method Summary
 boolean hasNext()
          Returns true if the Animator 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 the Animator.
 void stop()
          Stops the Animator.
 

Method Detail

hasNext

boolean hasNext()
Returns true if the Animator has more elements.

Returns:
true if the Animator has more elements.

next

void next()
Iterates to the next value. The implementation is expected to apply that next value to the property it is attached to.


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.

start

void start()
Starts the Animator. The implemenation should return true from hasNext


stop

void stop()
Stops the Animator. The implmenentation should return false from hasNext


NASA World Wind