|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.helsinki.dacopan.contsig.AnimationTimeState
public class AnimationTimeState
Constructor Summary | |
---|---|
AnimationTimeState(float nowTime,
float animationEndTime,
float timeScale,
int stepInterval,
StepIterator stepIterator)
Creates a new instance of AnimationTimeState |
|
AnimationTimeState(float nowTime,
float animationEndTime,
float timeScale,
int stepInterval,
StepIterator stepIterator,
AnimationSequence animationSequence,
float scenarioItemEndTime,
float scenarioItemAnimationEndTime)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
|
void |
addControlSignalsListener(ControlSignalsListener toAdd)
Adds a ControlSignalsListener as a listener for this AnimationTimeState. |
void |
discard()
Stops the timer without sending any more events. |
float |
getNowTime()
Gets the nowTime. |
int |
getStepInterval()
Getter for property stepInterval. |
float |
getTimeScale()
Getter for property timeScale. |
boolean |
isPaused()
Returns true if the animation is currently paused, false otherwise. |
void |
pause()
Puts the AnimationTimeState in pause mode. |
void |
play()
Puts the AnimationTimeState in play mode. |
void |
removeControlSignalsListener(ControlSignalsListener toRemove)
Removes a ControlSignalsListener from the listener list, if it exists in the list. |
void |
setNowTime(float newNowTime)
Sets the nowTime and steps all listeners to show that time. |
void |
setStepInterval(int stepInterval)
Setter for property stepInterval. |
void |
setTimeScale(float timeScale)
Setter for property timeScale. |
void |
stepBackward()
|
void |
stepForward()
|
void |
toBeginning()
|
void |
toEnd()
|
void |
toEndOfScenarioItem()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnimationTimeState(float nowTime, float animationEndTime, float timeScale, int stepInterval, StepIterator stepIterator)
public AnimationTimeState(float nowTime, float animationEndTime, float timeScale, int stepInterval, StepIterator stepIterator, AnimationSequence animationSequence, float scenarioItemEndTime, float scenarioItemAnimationEndTime)
Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public float getTimeScale()
public void setTimeScale(float timeScale)
timeScale
- New value of property timeScale.public int getStepInterval()
public void setStepInterval(int stepInterval)
stepInterval
- New value of property stepInterval.public float getNowTime()
public void setNowTime(float newNowTime)
public boolean isPaused()
public void addControlSignalsListener(ControlSignalsListener toAdd)
public void removeControlSignalsListener(ControlSignalsListener toRemove)
public void play()
Switching to play mode will cause the AnimationTimeState to fire the toPlayMode event once.
public void pause()
Switching to pause mode will cause the AnimationTimeState to fire the toPauseMode event once.
public void toBeginning()
public void toEnd()
public void toEndOfScenarioItem()
public void stepForward()
public void stepBackward()
public void discard()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |