|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.media.core.ClipControl
org.opensourcephysics.media.core.StepperClipControl
public class StepperClipControl
This is a ClipControl that displays every step in a video clip.
| Field Summary |
|---|
| Fields inherited from class org.opensourcephysics.media.core.ClipControl |
|---|
clip, looping, rate, stepNumber, support, timeStretch, video |
| Constructor Summary | |
|---|---|
protected |
StepperClipControl(VideoClip videoClip)
Constructs a TimerClipControl object. |
| Method Summary | |
|---|---|
void |
back()
Steps back one step. |
static XML.ObjectLoader |
getLoader()
Returns an XML.ObjectLoader to save and load data for this class. |
double |
getMeanFrameDuration()
Gets the average frame duration in milliseconds. |
double |
getStepTime(int stepNumber)
Gets the start time of the specified step measured from step 0. |
double |
getTime()
Gets the current time in milliseconds measured from step 0. |
boolean |
isPlaying()
Gets the playing status. |
void |
play()
Plays the clip. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
Responds to property change events. |
void |
setFrameDuration(double duration)
Sets the frame duration. |
void |
setLooping(boolean loops)
Turns on/off looping. |
void |
setRate(double newRate)
Sets the play rate. |
void |
setStepNumber(int n)
Sets the step number. |
void |
step()
Steps forward one step. |
void |
stop()
Stops at the next step. |
| Methods inherited from class org.opensourcephysics.media.core.ClipControl |
|---|
addPropertyChangeListener, addPropertyChangeListener, dispose, getControl, getFrameNumber, getRate, getStepNumber, getVideoClip, isLooping, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected StepperClipControl(VideoClip videoClip)
videoClip - the video clip| Method Detail |
|---|
public void play()
play in class ClipControlpublic void stop()
stop in class ClipControlpublic void step()
step in class ClipControlpublic void back()
back in class ClipControlpublic void setStepNumber(int n)
setStepNumber in class ClipControln - the desired step numberpublic void setRate(double newRate)
setRate in class ClipControlnewRate - the desired ratepublic double getMeanFrameDuration()
getMeanFrameDuration in class ClipControlpublic void setFrameDuration(double duration)
setFrameDuration in class ClipControlduration - the desired frame duration in millisecondspublic void setLooping(boolean loops)
setLooping in class ClipControlloops - true to turn looping onpublic boolean isPlaying()
isPlaying in class ClipControltrue if playingpublic double getTime()
getTime in class ClipControlpublic double getStepTime(int stepNumber)
getStepTime in class ClipControlstepNumber - the step number
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListenere - the property change eventpublic static XML.ObjectLoader getLoader()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||