public class MoviePlayer
extends java.lang.Object
Constructor | Description |
---|---|
MoviePlayer() |
Constructor to create a movie player by asking
the user to pick the directory that contains
the JPEG frames
|
MoviePlayer(java.lang.String directory) |
Constructor that takes a directory and shows a movie
from it
|
MoviePlayer(java.util.List<Picture> pictureList) |
Constructor that takes a list of pictures
|
Modifier and Type | Method | Description |
---|---|---|
void |
addPicture(Picture picture) |
Method to add a picture to the movie
|
void |
delAllAfter() |
Method to delete all the frames after the
current one
|
void |
delAllBefore() |
Method to delete all the frames before the
current one
|
static void |
main(java.lang.String[] args) |
|
void |
playMovie() |
Method to play the movie from the beginning
|
void |
playMovie(int framesPerSecond) |
Method to play the movie from the beginning
|
void |
setFrameRate(int rate) |
Method to set the frames per second to show the movie
|
void |
setVisible(boolean flag) |
Method to set the visibility of the frame
|
void |
showNext() |
Method to show the next image
|
void |
showPrevious() |
Method to show the previous image
|
void |
writeAVI() |
Method to write out the movie frames as a
Quicktime movie
|
void |
writeQuicktime() |
Method to write out the movie frames as a
Quicktime movie
|
public MoviePlayer(java.util.List<Picture> pictureList)
pictureList
- the list of pictures to showpublic MoviePlayer(java.lang.String directory)
directory
- the directory with the framespublic MoviePlayer()
public void showNext()
public void showPrevious()
public void playMovie()
public void playMovie(int framesPerSecond)
framesPerSecond
- the number of frames to show
per secondpublic void setFrameRate(int rate)
rate
- the number of frames to show per secondpublic void delAllBefore()
public void delAllAfter()
public void writeQuicktime()
public void writeAVI()
public void addPicture(Picture picture)
picture
- the picture to addpublic void setVisible(boolean flag)
flag
- the visibility of the framepublic static void main(java.lang.String[] args)