|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.media.core.VideoClip
public class VideoClip
This defines a subset of video frames called steps.
Field Summary | |
---|---|
boolean |
playAllSteps
|
protected Video |
video
|
Constructor Summary | |
---|---|
VideoClip(Video video)
Constructs a VideoClip. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to this video clip. |
void |
addPropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to this video clip. |
int |
frameToStep(int n)
Converts frame number to step number. |
ClipInspector |
getClipInspector()
Gets the clip inspector. |
ClipInspector |
getClipInspector(ClipControl control,
java.awt.Frame frame)
Gets the clip inspector with access to the specified ClipControl. |
ClipInspector |
getClipInspector(java.awt.Frame frame)
Gets the clip inspector. |
int |
getEndFrameNumber()
Gets the end frame number. |
static XML.ObjectLoader |
getLoader()
Returns an XML.ObjectLoader to save and load data for this class. |
int |
getStartFrameNumber()
Gets the start frame number. |
double |
getStartTime()
Gets the start time. |
int |
getStepCount()
Gets the step count. |
int |
getStepSize()
Gets the step size. |
Video |
getVideo()
Gets the video. |
void |
hideClipInspector()
Hides the clip inspector. |
boolean |
includesFrame(int n)
Determines whether the specified frame is a step frame. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener from this video clip. |
void |
removePropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener for a specified property. |
void |
setEndFrameNumber(int end)
Sets the end frame number. |
void |
setStartFrameNumber(int start)
Sets the start frame number. |
void |
setStartTime(double t0)
Sets the start time. |
void |
setStepCount(int count)
Sets the step count. |
void |
setStepSize(int size)
Sets the step size. |
int |
stepToFrame(int stepNumber)
Converts step number to frame number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Video video
public boolean playAllSteps
Constructor Detail |
---|
public VideoClip(Video video)
video
- the videoMethod Detail |
---|
public Video getVideo()
public void setStartFrameNumber(int start)
start
- the desired start frame numberpublic int getStartFrameNumber()
public void setStepSize(int size)
size
- the desired step sizepublic int getStepSize()
public void setStepCount(int count)
count
- the desired number of stepspublic int getStepCount()
public void setStartTime(double t0)
t0
- the start time in millisecondspublic double getStartTime()
public int getEndFrameNumber()
public void setEndFrameNumber(int end)
end
- the desired end framepublic int stepToFrame(int stepNumber)
stepNumber
- the step number
public int frameToStep(int n)
n
- the frame number
public boolean includesFrame(int n)
n
- the frame number
true
if the frame is a step framepublic ClipInspector getClipInspector()
public ClipInspector getClipInspector(java.awt.Frame frame)
frame
- the owner of the inspector
public ClipInspector getClipInspector(ClipControl control, java.awt.Frame frame)
control
- the clip controlframe
- the owner of the inspector
public void hideClipInspector()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the object requesting property change notificationpublic void addPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)
property
- the name of the property of interest to the listenerlistener
- the object requesting property change notificationpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the listener requesting removalpublic void removePropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)
property
- the name of the propertylistener
- the listener to removepublic static XML.ObjectLoader getLoader()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |