public class TimerClipControl extends ClipControl
clip, looping, playAllSteps, rate, stepNumber, support, timeStretch, video
Modifier | Constructor and Description |
---|---|
protected |
TimerClipControl(VideoClip videoClip)
Constructs a TimerClipControl object.
|
Modifier and Type | Method and Description |
---|---|
void |
back()
Steps back one step.
|
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 |
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.
|
addPropertyChangeListener, addPropertyChangeListener, dispose, getControl, getFrameNumber, getRate, getStepNumber, getVideoClip, isLooping, removePropertyChangeListener, removePropertyChangeListener
protected TimerClipControl(VideoClip videoClip)
videoClip
- the video clippublic void play()
play
in class ClipControl
public void stop()
stop
in class ClipControl
public void step()
step
in class ClipControl
public void back()
back
in class ClipControl
public void setStepNumber(int n)
setStepNumber
in class ClipControl
n
- the desired step numberpublic void setRate(double newRate)
setRate
in class ClipControl
newRate
- the desired ratepublic double getMeanFrameDuration()
getMeanFrameDuration
in class ClipControl
public void setFrameDuration(double duration)
setFrameDuration
in class ClipControl
duration
- the desired frame duration in millisecondspublic void setLooping(boolean loops)
setLooping
in class ClipControl
loops
- true
to turn looping onpublic boolean isPlaying()
isPlaying
in class ClipControl
true
if playingpublic double getTime()
getTime
in class ClipControl
public double getStepTime(int stepNumber)
getStepTime
in class ClipControl
stepNumber
- the step number