Class MoviePlayer

java.lang.Object
  extended by MoviePlayer

public class MoviePlayer
extends java.lang.Object

Class that can play movies from multiple frames


Constructor Summary
MoviePlayer(java.util.List<java.lang.String> 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
 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

MoviePlayer

public MoviePlayer(java.util.List<java.lang.String> pictureList)
            throws java.lang.Exception
Constructor that takes a list of pictures

Parameters:
pictureList - the list of pictures to show
Throws:
java.lang.Exception

MoviePlayer

public MoviePlayer(java.lang.String directory)
            throws java.lang.Exception
Constructor that takes a directory and shows a movie from it

Parameters:
directory - the directory with the frames
Throws:
java.lang.Exception
Method Detail

showNext

public void showNext()
Method to show the next image


showPrevious

public void showPrevious()
Method to show the previous image


playMovie

public void playMovie()
Method to play the movie from the beginning


playMovie

public void playMovie(int framesPerSecond)
Method to play the movie from the beginning

Parameters:
framesPerSecond - the number of frames to show per second

addPicture

public void addPicture(Picture picture)
Method to add a picture to the movie

Parameters:
picture - the picture to add

setVisible

public void setVisible(boolean flag)
Method to set the visibility of the frame

Parameters:
flag - the visibility of the frame