public class OrbitViewCenterAnimator extends MoveToPositionAnimator
positionMinEpsilon, smoothing, useSmoothing
begin, end, propertyAccessor
interpolator
Constructor and Description |
---|
OrbitViewCenterAnimator(BasicOrbitView orbitView,
Position startPosition,
Position endPosition,
double smoothing,
PropertyAccessor.PositionAccessor propertyAccessor,
boolean endCenterOnSurface) |
Modifier and Type | Method and Description |
---|---|
Position |
nextPosition(double interpolant) |
protected void |
setImpl(double interpolant)
No-op intended to be overrided by deriving classes.
|
void |
stop()
Stops the
Animator , hasNext will now return false |
next
getBegin, getEnd, getPropertyAccessor, setBegin, setEnd
flagLastStateInvalid, hasNext, isLastStateValid, isStopOnInvalidState, set, setStopOnInvalidState, start
public OrbitViewCenterAnimator(BasicOrbitView orbitView, Position startPosition, Position endPosition, double smoothing, PropertyAccessor.PositionAccessor propertyAccessor, boolean endCenterOnSurface)
public Position nextPosition(double interpolant)
nextPosition
in class MoveToPositionAnimator
protected void setImpl(double interpolant)
BasicAnimator
setImpl
in class PositionAnimator
interpolant
- A value between 0 and 1.public void stop()
BasicAnimator
Animator
, hasNext
will now return false
stop
in interface Animator
stop
in class BasicAnimator