public class VideoClip
extends java.lang.Object
Constructor and Description |
---|
VideoClip(Video video)
Constructs a VideoClip.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected Video video
public VideoClip(Video video)
video
- the videopublic 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 numberpublic int frameToStep(int n)
n
- the frame numberpublic boolean includesFrame(int n)
n
- the frame numbertrue
if the frame is a step framepublic ClipInspector getClipInspector()
public ClipInspector getClipInspector(java.awt.Frame frame)
frame
- the owner of the inspectorpublic ClipInspector getClipInspector(ClipControl control, java.awt.Frame frame)
control
- the clip controlframe
- the owner of the inspectorpublic 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()