|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object 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. Copyright Georgia Institute of Technology 2004
Constructor Summary | |
FrameSequence(java.lang.String directory)
Constructor that takes a directory name |
|
FrameSequence(java.lang.String directory,
java.lang.String baseName)
Constructor that takes a directory name and a base file name |
Method Summary | |
void |
addFrame(Picture picture)
Method to add a picture to the frame sequence |
java.lang.String |
getBaseName()
Method to get the base name |
java.lang.String |
getDirectory()
Method to get the directory to write the frames to |
int |
getFrameNumber()
Method to get the frame number |
int |
getNumFrames()
Method to get the number of frames in this sequence |
PictureFrame |
getPictureFrame()
Method to get the picture frame to use to show this sequence |
boolean |
isShown()
Method to check if the frame sequence is being shown |
void |
replay(int sleepTime)
Method to replay the frames (pictures) added so far |
void |
setBaseName(java.lang.String name)
Method to set the base name |
void |
setDirectory(java.lang.String dir)
Method to set the directory to write the frames to |
void |
setPictureFrame(PictureFrame frame)
Method to set the picture frame to use to shown this |
void |
setShown(boolean value)
Method to set the shown flag |
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 |
Constructor Detail |
public FrameSequence(java.lang.String directory)
directory
- the directory to save the frames topublic FrameSequence(java.lang.String directory, java.lang.String baseName)
directory
- the directory to save the frames tobaseName
- the base file name to use for the framesMethod Detail |
public java.lang.String getDirectory()
public void setDirectory(java.lang.String dir)
dir
- the directory to usepublic java.lang.String getBaseName()
public void setBaseName(java.lang.String name)
name
- the new base name to usepublic int getFrameNumber()
public boolean isShown()
public void setShown(boolean value)
value
- the value to usepublic int getNumFrames()
public void setPictureFrame(PictureFrame frame)
frame
- the picture frame to usepublic PictureFrame getPictureFrame()
public void addFrame(Picture picture)
picture
- the picture to addpublic void show()
public void replay(int sleepTime)
sleepTime
- the amount to sleep in milliseconds
between frames
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |