public abstract class ForwardAndBackwardAnimation extends ForwardAnimation
ForwardAnimation.AnimationState
Modifier and Type | Field and Description |
---|---|
protected SimulationAnimationCycle |
m_endCycle |
protected JulianDate |
m_endTime |
protected SimulationAnimationCycle |
m_startCycle |
protected JulianDate |
m_startTime |
m_time
Modifier and Type | Method and Description |
---|---|
SimulationAnimationCycle |
getEndCycle()
Gets the end
cycle . |
JulianDate |
getEndTime()
Gets the end time of the animation.
|
SimulationAnimationCycle |
getStartCycle()
Gets the start
cycle . |
JulianDate |
getStartTime()
Gets the start time of the animation.
|
void |
nextFrame()
Advances to the next frame.
|
protected void |
onLooping(JulianDate newTime) |
void |
playBackward()
Starts animation backward.
|
protected void |
resetTime()
Resets the current animation time.
|
void |
setEndCycle(SimulationAnimationCycle value)
Sets the end
cycle . |
void |
setEndTime(JulianDate value)
Sets the end time of the animation.
|
void |
setStartCycle(SimulationAnimationCycle value)
Sets the start
cycle . |
void |
setStartTime(JulianDate value)
Sets the start time of the animation.
|
void |
stepBackward()
Steps animation backward.
|
protected abstract void |
stepBackwardTime() |
protected abstract void |
stepForwardTime() |
protected void |
validateAnimation()
Validates that animation can occur, throwing an exception if it cannot.
|
addHasReset, addPaused, addStarted, addStopped, animate, dispose, getAnimatingForward, getIsAnimating, getIsPaused, getIsReset, getIsStopped, getMessageLoopType, getNextTime, getRefreshRate, getState, getTargetedFramesPerSecond, getTime, onHasReset, onPaused, onStarted, onTimeUpdate, pause, playForward, removeHasReset, removePaused, removeStarted, removeStopped, reset, setAnimatingForward, setMessageLoopType, setRefreshRate, setState, setTargetedFramesPerSecond, setTime, startAnimationPump, stepForward, stopAnimationPump
animate, dispose, getResourceTimerEnabled, resourceTimerCallback, setResourceTimerEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
@Nonnull protected JulianDate m_startTime
@Nonnull protected JulianDate m_endTime
protected SimulationAnimationCycle m_startCycle
protected SimulationAnimationCycle m_endCycle
public void nextFrame()
nextFrame
in class ForwardAnimation
@Nonnull public final JulianDate getStartTime()
public final void setStartTime(@Nonnull JulianDate value)
@Nonnull public final JulianDate getEndTime()
public final void setEndTime(@Nonnull JulianDate value)
public final SimulationAnimationCycle getStartCycle()
cycle
.public final void setStartCycle(SimulationAnimationCycle value)
cycle
.public final SimulationAnimationCycle getEndCycle()
cycle
.public final void setEndCycle(SimulationAnimationCycle value)
cycle
.public final void playBackward()
public final void stepBackward()
protected void validateAnimation()
ForwardAnimation
validateAnimation
in class ForwardAnimation
protected abstract void stepForwardTime()
protected abstract void stepBackwardTime()
protected void resetTime()
ForwardAnimation
resetTime
in class ForwardAnimation
protected void onLooping(JulianDate newTime)