|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Video
This defines methods to control a video image sequence. Individual images within the sequence are referred to as frames.
Method Summary | |
---|---|
void |
back()
Steps backward in the video. |
void |
dispose()
Disposes of this video. |
int |
getEndFrameNumber()
Gets the end frame number. |
int |
getFrameCount()
Gets the total number of frames. |
double |
getFrameDuration(int n)
Gets the duration of the specified frame in milliseconds. |
int |
getFrameNumber()
Gets the current frame number. |
double |
getFrameTime(int n)
Gets the start time of the specified frame in milliseconds. |
int |
getStartFrameNumber()
Gets the start frame number. |
void |
setEndFrameNumber(int n)
Sets the end frame number. |
void |
setFrameAngle(int n,
double angle)
Sets the angle in radians of the specified video frame measured ccw from the world x-axis. |
void |
setFrameHeight(int n,
double height)
Sets the height of the specified video frame in world units. |
void |
setFrameNumber(int n)
Sets the frame number. |
void |
setFrameRelativeAspect(int n,
double relativeAspect)
Sets the relative aspect of the specified video frame. |
void |
setFrameWidth(int n,
double width)
Sets the width of the specified video frame in world units. |
void |
setFrameX(int n,
double x)
Sets x position of UL corner of the specified video frame in world units. |
void |
setFrameXY(int n,
double x,
double y)
Sets the x and y position of the UL corner of the specified video frame in world units. |
void |
setFrameY(int n,
double y)
Sets y position of UL corner of the specified video frame in world units. |
void |
setStartFrameNumber(int n)
Sets the start frame number. |
void |
step()
Steps forward in the video. |
Methods inherited from interface org.opensourcephysics.media.core.InteractiveImage |
---|
getAngle, getCoords, getHeight, getRelativeAspect, getWidth, setAngle, setCoords, setHeight, setRelativeAspect, setWidth |
Methods inherited from interface org.opensourcephysics.display.Interactive |
---|
findInteractive, getX, getY, isEnabled, setEnabled, setX, setXY, setY |
Methods inherited from interface org.opensourcephysics.display.Measurable |
---|
getXMax, getXMin, getYMax, getYMin, isMeasured |
Methods inherited from interface org.opensourcephysics.display.Drawable |
---|
draw |
Methods inherited from interface org.opensourcephysics.media.core.DrawableImage |
---|
getFilterStack, getImage, getProperty, getPropertyNames, isVisible, setFilterStack, setProperty, setVisible |
Methods inherited from interface org.opensourcephysics.media.core.Playable |
---|
addPropertyChangeListener, addPropertyChangeListener, getDuration, getEndTime, getRate, getStartTime, getTime, goToEnd, goToStart, isLooping, isPlaying, play, removePropertyChangeListener, removePropertyChangeListener, reset, setEndTime, setLooping, setPlaying, setRate, setStartTime, setTime, stop |
Method Detail |
---|
void step()
void back()
int getFrameCount()
int getFrameNumber()
void setFrameNumber(int n)
n
- a number between getStartFrameNumber() and getEndFrameNumber()getStartFrameNumber()
,
getEndFrameNumber()
int getStartFrameNumber()
getEndFrameNumber()
void setStartFrameNumber(int n)
n
- a number between 0 and getEndFrameNumber()setEndFrameNumber(int)
int getEndFrameNumber()
getStartFrameNumber()
void setEndFrameNumber(int n)
n
- a number between getStartFrameNumber() and getFrameCount()setStartFrameNumber(int)
double getFrameTime(int n)
n
- the frame number
double getFrameDuration(int n)
n
- the frame number
void setFrameX(int n, double x)
n
- the video frame numberx
- the world x positionvoid setFrameY(int n, double y)
n
- the video frame numbery
- the world y positionvoid setFrameXY(int n, double x, double y)
n
- the video frame numberx
- the world x positiony
- the world y positionvoid setFrameRelativeAspect(int n, double relativeAspect)
n
- the video frame numberrelativeAspect
- the world aspect of the image relative to its pixel aspect.void setFrameWidth(int n, double width)
n
- the video frame numberwidth
- the width in world unitsvoid setFrameHeight(int n, double height)
n
- the video frame numberheight
- the height in world unitsvoid setFrameAngle(int n, double angle)
n
- the video frame numberangle
- the angle n radiansvoid dispose()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |