Package gov.nasa.worldwind.animation
Class DoubleAnimator
- java.lang.Object
-
- gov.nasa.worldwind.animation.BasicAnimator
-
- gov.nasa.worldwind.animation.DoubleAnimator
-
- All Implemented Interfaces:
Animator
- Direct Known Subclasses:
MoveToDoubleAnimator,ViewElevationAnimator
public class DoubleAnimator extends BasicAnimator
AnAnimatorimplentation for animating values of type Double.
-
-
Field Summary
Fields Modifier and Type Field Description protected doublebeginprotected doubleendprotected PropertyAccessor.DoubleAccessorpropertyAccessor-
Fields inherited from class gov.nasa.worldwind.animation.BasicAnimator
interpolator
-
-
Constructor Summary
Constructors Constructor Description DoubleAnimator(Interpolator interpolator, double begin, double end, PropertyAccessor.DoubleAccessor propertyAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.DoublegetBegin()java.lang.DoublegetEnd()PropertyAccessor.DoubleAccessorgetPropertyAccessor()java.lang.DoublenextDouble(double interpolant)voidsetBegin(java.lang.Double begin)voidsetEnd(java.lang.Double end)protected voidsetImpl(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
-
-
-
-
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
-
setBegin
public void setBegin(java.lang.Double begin)
-
setEnd
public void setEnd(java.lang.Double end)
-
getBegin
public final java.lang.Double getBegin()
-
getEnd
public final java.lang.Double getEnd()
-
getPropertyAccessor
public final PropertyAccessor.DoubleAccessor getPropertyAccessor()
-
setImpl
protected void setImpl(double interpolant)
Description copied from class:BasicAnimatorNo-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:
setImplin classBasicAnimator- Parameters:
interpolant- A value between 0 and 1.
-
nextDouble
public java.lang.Double nextDouble(double interpolant)
-
-