|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFrameSequence
public class FrameSequence
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.
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 |
---|
java.util.List pictureList
java.text.NumberFormat numberFormat
Constructor Detail |
---|
public FrameSequence(java.lang.String directory)
directory
- the directory to save the frames toMethod Detail |
---|
public void addFrame(Picture picture)
picture
- the picture to addpublic void show()
public void replay()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |