NASA World Wind

gov.nasa.worldwind.animation
Class DoubleAnimator

java.lang.Object
  extended by gov.nasa.worldwind.animation.BasicAnimator
      extended by gov.nasa.worldwind.animation.DoubleAnimator
All Implemented Interfaces:
Animator
Direct Known Subclasses:
MoveToDoubleAnimator, ViewElevationAnimator

public class DoubleAnimator
extends BasicAnimator

An Animator implentation for animating values of type Double.


Field Summary
protected  double begin
           
protected  double end
           
protected  PropertyAccessor.DoubleAccessor propertyAccessor
           
 
Fields inherited from class gov.nasa.worldwind.animation.BasicAnimator
interpolator
 
Constructor Summary
DoubleAnimator(Interpolator interpolator, double begin, double end, PropertyAccessor.DoubleAccessor propertyAccessor)
           
 
Method Summary
 Double getBegin()
           
 Double getEnd()
           
 PropertyAccessor.DoubleAccessor getPropertyAccessor()
           
 Double nextDouble(double interpolant)
           
 void setBegin(Double begin)
           
 void setEnd(Double end)
           
protected  void setImpl(double interpolant)
          No-op intended to be overrided by deriving classes.
 
Methods inherited from class gov.nasa.worldwind.animation.BasicAnimator
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, next, set, setStopOnInvalidState, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

begin

protected double begin

end

protected double end

propertyAccessor

protected final PropertyAccessor.DoubleAccessor propertyAccessor
Constructor Detail

DoubleAnimator

public DoubleAnimator(Interpolator interpolator,
                      double begin,
                      double end,
                      PropertyAccessor.DoubleAccessor propertyAccessor)
Method Detail

getBegin

public final Double getBegin()

getEnd

public final Double getEnd()

getPropertyAccessor

public final PropertyAccessor.DoubleAccessor getPropertyAccessor()

nextDouble

public Double nextDouble(double interpolant)

setBegin

public void setBegin(Double begin)

setEnd

public void setEnd(Double end)

setImpl

protected void setImpl(double interpolant)
Description copied from class: BasicAnimator
No-op intended to be overrided by deriving classes. Deriving classes are expected to implement the desired action of a set operation in this method.

Overrides:
setImpl in class BasicAnimator
Parameters:
interpolant - A value between 0 and 1.

NASA World Wind