public class DefaultMovie extends AbstractMovie
DefaultMovie
.propertySupport
IN_PROPERTY, OUT_PROPERTY, PLAYHEAD_PROPERTY
Constructor and Description |
---|
DefaultMovie() |
Modifier and Type | Method and Description |
---|---|
Rational |
getDuration()
Returns the total duration of the movie in seconds.
|
Format |
getFileFormat() |
Format |
getFormat(int track) |
Rational |
getInsertionPoint()
Returns the position of the insertion point in seconds.
|
MovieReader |
getReader() |
Rational |
getSelectionEnd()
Returns the position of the out point in seconds.
|
Rational |
getSelectionStart()
Returns the position of the in point in seconds.
|
int |
getTrackCount() |
Rational |
sampleToTime(int track,
long sample) |
void |
setInsertionPoint(Rational newValue)
Sets the position of the insertion point in seconds.
|
void |
setReader(MovieReader reader) |
void |
setSelectionEnd(Rational newValue)
Sets the position of the out point in seconds.
|
void |
setSelectionStart(Rational newValue)
Sets the position of the in point in seconds.
|
long |
timeToSample(int track,
Rational time)
Returns the frame number for the specified time in seconds.
|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, removePropertyChangeListener
public MovieReader getReader()
public void setReader(MovieReader reader)
public Rational getDuration()
Movie
public Rational getInsertionPoint()
Movie
public void setInsertionPoint(Rational newValue)
Movie
public Rational getSelectionStart()
Movie
public void setSelectionStart(Rational newValue)
Movie
public Rational getSelectionEnd()
Movie
public void setSelectionEnd(Rational newValue)
Movie
public long timeToSample(int track, Rational time)
Movie
public Rational sampleToTime(int track, long sample)
public int getTrackCount()
public Format getFormat(int track)
public Format getFileFormat()