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
AnAnimator
implentation for animating values of type Double.
-
-
Field Summary
Fields Modifier and Type Field Description protected double
begin
protected double
end
protected PropertyAccessor.DoubleAccessor
propertyAccessor
-
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.Double
getBegin()
java.lang.Double
getEnd()
PropertyAccessor.DoubleAccessor
getPropertyAccessor()
java.lang.Double
nextDouble(double interpolant)
void
setBegin(java.lang.Double begin)
void
setEnd(java.lang.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
-
-
-
-
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: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 classBasicAnimator
- Parameters:
interpolant
- A value between 0 and 1.
-
nextDouble
public java.lang.Double nextDouble(double interpolant)
-
-