|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMoviePlayer
public class MoviePlayer
Class that can play movies from multiple frames Copyright Georgia Institute of Technology 2007
Constructor Summary | |
---|---|
MoviePlayer()
Constructor to create a movie player by asking the user to pick the directory that contains the JPEG frames |
|
MoviePlayer(List<Picture> pictureList)
Constructor that takes a list of pictures |
|
MoviePlayer(String directory)
Constructor that takes a directory and shows a movie from it |
Method Summary | |
---|---|
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(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)
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MoviePlayer(List<Picture> pictureList)
pictureList
- the list of pictures to showpublic MoviePlayer(String directory)
directory
- the directory with the framespublic MoviePlayer()
Method Detail |
---|
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)
public 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(String[] args)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |