public class AngleAnimator extends BasicAnimator
| Modifier and Type | Field and Description |
|---|---|
protected Angle |
begin
The angle the animation begins at.
|
protected Angle |
end
The angle the animation ends at.
|
protected PropertyAccessor.AngleAccessor |
propertyAccessor
The @link gov.nasa.worldwind.util.PropertyAccessor used to modify
the data value being animated.
|
interpolator| Constructor and Description |
|---|
AngleAnimator(Interpolator interpolator,
Angle begin,
Angle end,
PropertyAccessor.AngleAccessor propertyAccessor)
Construct an AngleAnimator
|
| Modifier and Type | Method and Description |
|---|---|
Angle |
getBegin()
Get the current
begin value. |
Angle |
getEnd()
Get the current
end value. |
PropertyAccessor.AngleAccessor |
getPropertyAccessor()
Get the
PropertyAccessor in use by this animation |
void |
setBegin(Angle begin)
Set the
begin value. |
void |
setEnd(Angle end)
Set the
end value. |
protected void |
setImpl(double interpolant)
Set the value being animated via the
PropertyAccessor
using the passed interpolant. |
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, next, set, setStopOnInvalidState, start, stopprotected Angle begin
protected Angle end
protected final PropertyAccessor.AngleAccessor propertyAccessor
public AngleAnimator(Interpolator interpolator, Angle begin, Angle end, PropertyAccessor.AngleAccessor propertyAccessor)
interpolator - the Interpolatorbegin - angle the animation begins atend - The angle the animation ends at.propertyAccessor - The PropertyAccessor used to modify
the data value being animated.public PropertyAccessor.AngleAccessor getPropertyAccessor()
PropertyAccessor in use by this animationPropertyAccessor in use by this animationpublic void setBegin(Angle begin)
begin value.begin - the new begin value.protected void setImpl(double interpolant)
PropertyAccessor
using the passed interpolant. This implementation just does a straight liner interpolation
between the begin and end values.setImpl in class BasicAnimatorinterpolant - the interpolant used to generate the next value that will be set by the
PropertyAccessor