Class MoviePlayer

java.lang.Object
  extended byMoviePlayer

public class MoviePlayer
extends java.lang.Object

Class that can play movies from multiple frames

Author:
Barb Ericson

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

MoviePlayer

public MoviePlayer(java.util.List pictureList)
Constructor that takes a list of pictures

Parameters:
pictureList - the list of pictures to show

MoviePlayer

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

Parameters:
directory - the directory with the frames
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

main

public static void main(java.lang.String[] args)