|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectFrameSequencer
public class FrameSequencer
Class used to save frames in a movie to a directory and show frames from a movie. This class tracks the directory, base file name, current frame number, and whether this sequence is being shown. Copyright Georgia Institute of Technology 2005
| Constructor Summary | |
|---|---|
FrameSequencer(String directory)
Constructor that takes a directory name |
|
FrameSequencer(String directory,
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 |
void |
deleteLastFrame()
Method to delete the last frame |
String |
getBaseName()
Method to get the base name |
String |
getDirectory()
Method to get the directory to write the frames to |
int |
getFrameNumber()
Method to get the frame number |
MoviePlayer |
getMoviePlayer()
Method to get the movie player to use to show this sequence |
int |
getNumFrames()
Method to get the number of frames in this sequence |
boolean |
isShown()
Method to check if the frame sequence is being shown |
static void |
main(String[] args)
|
void |
play(int framesPerSecond)
Method to play the frames (pictures) added so far |
void |
setBaseName(String name)
Method to set the base name |
void |
setDirectory(String dir)
Method to set the directory to write the frames to |
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 FrameSequencer(String directory)
directory - the directory to save the frames to
public FrameSequencer(String directory,
String baseName)
directory - the directory to save the frames tobaseName - the base file name to use for the frames| Method Detail |
|---|
public String getDirectory()
public void setDirectory(String dir)
dir - the directory to usepublic String getBaseName()
public void setBaseName(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 MoviePlayer getMoviePlayer()
public void addFrame(Picture picture)
picture - the picture to addpublic void deleteLastFrame()
public void show()
public void play(int framesPerSecond)
framesPerSecond - the number of frames to show per second
between framespublic static void main(String[] args)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||