Class FrameSequence

java.lang.Object
  extended by FrameSequence

public class FrameSequence
extends java.lang.Object

Class to save frames in a movie to a directory. This class tracks the directory, base file name, current frame number, and whether this sequence is being shown.

Author:
Barbara Ericson Copyright

Field Summary
(package private)  java.text.NumberFormat numberFormat
          Use this to format the number for the frame
(package private)  java.util.List pictureList
          List of all the pictures so far
 
Constructor Summary
FrameSequence(java.lang.String directory)
          Constructor that takes a directory name
 
Method Summary
 void addFrame(Picture picture)
          Method to add a picture to the frame sequence
 void replay()
          Method to replay the frames (pictures) added so far
 void show()
          Method to show the frame sequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pictureList

java.util.List pictureList
List of all the pictures so far


numberFormat

java.text.NumberFormat numberFormat
Use this to format the number for the frame

Constructor Detail

FrameSequence

public FrameSequence(java.lang.String directory)
Constructor that takes a directory name

Parameters:
directory - the directory to save the frames to
Method Detail

addFrame

public void addFrame(Picture picture)
Method to add a picture to the frame sequence

Parameters:
picture - the picture to add

show

public void show()
Method to show the frame sequence


replay

public void replay()
Method to replay the frames (pictures) added so far