public abstract class ForwardAnimation extends MinimalForwardAnimation
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ForwardAnimation.AnimationState |
| Modifier and Type | Field and Description |
|---|---|
protected JulianDate |
m_time |
| Modifier and Type | Method and Description |
|---|---|
void |
addHasReset(EventHandler<EventArgs> value)
Adds a handler for an event that occurs if animation has reset.
|
void |
addPaused(EventHandler<EventArgs> value)
Adds a handler for an event that occurs if animation has paused.
|
void |
addStarted(EventHandler<StartedEventArgs> value)
Adds a handler for an event that occurs if animation has started.
|
void |
addStopped(EventHandler<EventArgs> value)
Adds a handler for an event that occurs if animation has stopped.
|
protected void |
animate()
Animates to the next time.
|
protected void |
dispose(boolean disposing) |
protected boolean |
getAnimatingForward()
Gets a value indicating whether animation is in the forward direction.
|
boolean |
getIsAnimating()
Gets whether or not animation is playing.
|
boolean |
getIsPaused()
Gets whether animation is paused.
|
boolean |
getIsReset()
Gets whether animation has been reset.
|
boolean |
getIsStopped()
Gets whether animation is stopped.
|
MessageLoopType |
getMessageLoopType()
Gets the type of message loop employed by the application.
|
protected abstract JulianDate |
getNextTime()
Gets the next animation time.
|
RefreshRate |
getRefreshRate()
Gets the rate (fastest or fixed) at which the scene is refreshed during rendering.
|
protected ForwardAnimation.AnimationState |
getState()
Gets the current animation state.
|
double |
getTargetedFramesPerSecond()
Gets the targeted frames per second if
RefreshRate is set to
use agi.foundation.graphics.advanced.refreshrate.TargetedFramesPerSecond. |
JulianDate |
getTime()
Gets the current animation time.
|
abstract void |
nextFrame()
Advances to the next frame.
|
protected void |
onHasReset() |
protected void |
onPaused() |
protected void |
onStarted(boolean forward) |
protected void |
onTimeUpdate()
|
void |
pause()
Pauses animation.
|
void |
playForward()
Starts animation forward.
|
void |
removeHasReset(EventHandler<EventArgs> value)
Removes a handler for an event that occurs if animation has reset.
|
void |
removePaused(EventHandler<EventArgs> value)
Removes a handler for an event that occurs if animation has paused.
|
void |
removeStarted(EventHandler<StartedEventArgs> value)
Removes a handler for an event that occurs if animation has started.
|
void |
removeStopped(EventHandler<EventArgs> value)
Removes a handler for an event that occurs if animation has stopped.
|
void |
reset()
Resets animation to the start time.
|
protected abstract void |
resetTime()
Resets the current animation time.
|
protected void |
setAnimatingForward(boolean value)
Sets a value indicating whether animation is in the forward direction.
|
void |
setMessageLoopType(MessageLoopType value)
Sets the type of message loop employed by the application.
|
void |
setRefreshRate(RefreshRate value)
Sets the rate (fastest or fixed) at which the scene is refreshed during rendering.
|
protected void |
setState(ForwardAnimation.AnimationState value)
Sets the current animation state.
|
void |
setTargetedFramesPerSecond(double value)
Sets the targeted frames per second if
RefreshRate is set to
use agi.foundation.graphics.advanced.refreshrate.TargetedFramesPerSecond. |
void |
setTime(JulianDate value)
Sets the current animation time.
|
protected void |
startAnimationPump() |
void |
stepForward()
Steps animation forward.
|
protected void |
stopAnimationPump() |
protected void |
validateAnimation()
Validates that animation can occur, throwing an exception if it cannot.
|
animate, dispose, getResourceTimerEnabled, resourceTimerCallback, setResourceTimerEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose@Nonnull protected JulianDate m_time
public abstract void nextFrame()
public boolean getIsAnimating()
MinimalForwardAnimationgetIsAnimating in class MinimalForwardAnimation@Nonnull public RefreshRate getRefreshRate()
getRefreshRate in class MinimalForwardAnimationpublic void setRefreshRate(RefreshRate value)
setRefreshRate in class MinimalForwardAnimationpublic double getTargetedFramesPerSecond()
MinimalForwardAnimationRefreshRate is set to
use agi.foundation.graphics.advanced.refreshrate.TargetedFramesPerSecond.getTargetedFramesPerSecond in class MinimalForwardAnimationpublic void setTargetedFramesPerSecond(double value)
MinimalForwardAnimationRefreshRate is set to
use agi.foundation.graphics.advanced.refreshrate.TargetedFramesPerSecond.setTargetedFramesPerSecond in class MinimalForwardAnimation@Nonnull public final JulianDate getTime()
public final void setTime(@Nonnull JulianDate value)
public final MessageLoopType getMessageLoopType()
MessageLoopType.AUTO_DETECT.public final void setMessageLoopType(MessageLoopType value)
MessageLoopType.AUTO_DETECT.public final boolean getIsPaused()
public final boolean getIsReset()
public final boolean getIsStopped()
public final void playForward()
public final void stepForward()
public final void pause()
public void reset()
reset in class MinimalForwardAnimationpublic final void addStopped(EventHandler<EventArgs> value)
public final void removeStopped(EventHandler<EventArgs> value)
public final void addPaused(EventHandler<EventArgs> value)
public final void removePaused(EventHandler<EventArgs> value)
public final void addStarted(EventHandler<StartedEventArgs> value)
public final void removeStarted(EventHandler<StartedEventArgs> value)
public final void addHasReset(EventHandler<EventArgs> value)
public final void removeHasReset(EventHandler<EventArgs> value)
protected void onPaused()
protected void onStarted(boolean forward)
protected void onHasReset()
@Nonnull protected final ForwardAnimation.AnimationState getState()
protected final void setState(@Nonnull ForwardAnimation.AnimationState value)
protected final boolean getAnimatingForward()
false, animation is going backwards.protected final void setAnimatingForward(boolean value)
false, animation is going backwards.protected abstract void resetTime()
@Nonnull protected abstract JulianDate getNextTime()
protected final void animate()
protected void validateAnimation()
protected void onTimeUpdate()
protected final void startAnimationPump()
protected final void stopAnimationPump()
protected void dispose(boolean disposing)
dispose in class MinimalForwardAnimation