|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object MoviePlayer
Class that can play movies from multiple frames
Constructor Summary | |
MoviePlayer(java.util.List pictureList)
Constructor that takes a list of pictures |
|
MoviePlayer(java.lang.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 |
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 |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MoviePlayer(java.util.List pictureList)
pictureList
- the list of pictures to showpublic MoviePlayer(java.lang.String directory)
directory
- the directory with the framesMethod 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 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |