public class FrameSequencer
extends java.lang.Object
Constructor | Description |
---|---|
FrameSequencer(java.lang.String directory) |
Constructor that takes a directory name
|
FrameSequencer(java.lang.String directory,
java.lang.String baseName) |
Constructor that takes a directory name and a base file name
|
Modifier and Type | Method | Description |
---|---|---|
void |
addFrame(Picture picture) |
Method to add a picture to the frame sequence
|
void |
deleteLastFrame() |
Method to delete the last frame
|
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
|
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(java.lang.String[] args) |
|
void |
play(int framesPerSecond) |
Method to play 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 |
setShown(boolean value) |
Method to set the shown flag
|
void |
show() |
Method to show the frame sequence
|
public FrameSequencer(java.lang.String directory)
directory
- the directory to save the frames topublic FrameSequencer(java.lang.String directory, java.lang.String baseName)
directory
- the directory to save the frames tobaseName
- the base file name to use for the framespublic 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 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(java.lang.String[] args)