Package gov.nasa.worldwind.animation
Class AngleAnimator
- java.lang.Object
-
- gov.nasa.worldwind.animation.BasicAnimator
-
- gov.nasa.worldwind.animation.AngleAnimator
-
- All Implemented Interfaces:
Animator
- Direct Known Subclasses:
RotateToAngleAnimator
public class AngleAnimator extends BasicAnimator
-
-
Field Summary
Fields Modifier and Type Field Description protected AnglebeginThe angle the animation begins at.protected AngleendThe angle the animation ends at.protected PropertyAccessor.AngleAccessorpropertyAccessorThe @link gov.nasa.worldwind.util.PropertyAccessor used to modify the data value being animated.-
Fields inherited from class gov.nasa.worldwind.animation.BasicAnimator
interpolator
-
-
Constructor Summary
Constructors Constructor Description AngleAnimator(Interpolator interpolator, Angle begin, Angle end, PropertyAccessor.AngleAccessor propertyAccessor)Construct an AngleAnimator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnglegetBegin()Get the currentbeginvalue.AnglegetEnd()Get the currentendvalue.PropertyAccessor.AngleAccessorgetPropertyAccessor()Get thePropertyAccessorin use by this animationvoidsetBegin(Angle begin)Set thebeginvalue.voidsetEnd(Angle end)Set theendvalue.protected voidsetImpl(double interpolant)Set the value being animated via thePropertyAccessorusing the passed interpolant.-
Methods inherited from class gov.nasa.worldwind.animation.BasicAnimator
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, next, set, setStopOnInvalidState, start, stop
-
-
-
-
Field Detail
-
begin
protected Angle begin
The angle the animation begins at.
-
end
protected Angle end
The angle the animation ends at.
-
propertyAccessor
protected final PropertyAccessor.AngleAccessor propertyAccessor
The @link gov.nasa.worldwind.util.PropertyAccessor used to modify the data value being animated.
-
-
Constructor Detail
-
AngleAnimator
public AngleAnimator(Interpolator interpolator, Angle begin, Angle end, PropertyAccessor.AngleAccessor propertyAccessor)
Construct an AngleAnimator- Parameters:
interpolator- theInterpolatorbegin- angle the animation begins atend- The angle the animation ends at.propertyAccessor- ThePropertyAccessorused to modify the data value being animated.
-
-
Method Detail
-
setBegin
public void setBegin(Angle begin)
Set thebeginvalue.- Parameters:
begin- the newbeginvalue.
-
getPropertyAccessor
public PropertyAccessor.AngleAccessor getPropertyAccessor()
Get thePropertyAccessorin use by this animation- Returns:
- the
PropertyAccessorin use by this animation
-
setImpl
protected void setImpl(double interpolant)
Set the value being animated via thePropertyAccessorusing the passed interpolant. This implementation just does a straight liner interpolation between thebeginandendvalues.- Overrides:
setImplin classBasicAnimator- Parameters:
interpolant- the interpolant used to generate the next value that will be set by thePropertyAccessor
-
-