|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.media.core.ScratchVideoRecorder
org.opensourcephysics.media.gif.GifVideoRecorder
public class GifVideoRecorder
This is a gif video recorder that uses scratch files.
| Field Summary |
|---|
| Fields inherited from class org.opensourcephysics.media.core.ScratchVideoRecorder |
|---|
canRecord, chooser, chooserField, dim, ext, frameCount, frameDuration, frameImage, hasContent, ignoreChooser, isSaved, saveChanges, saveFile, scratchFile, scratchName, scratchNumber, videoType |
| Constructor Summary | |
|---|---|
GifVideoRecorder()
Constructs a GifVideoRecorder object. |
|
| Method Summary | |
|---|---|
protected boolean |
append(java.awt.Image image)
Appends a frame to the current video. |
AnimatedGifEncoder |
getGifEncoder()
Gets the encoder used by this recorder. |
protected void |
saveScratch()
Saves the video to the current scratchFile. |
void |
setFrameDuration(double millis)
Sets the time duration per frame. |
protected boolean |
startRecording()
Starts the video recording process. |
| Methods inherited from class org.opensourcephysics.media.core.ScratchVideoRecorder |
|---|
addFrame, createScratch, createVideo, createVideo, getFileName, getFileToBeSaved, getVideo, reset, saveVideo, saveVideo, saveVideoAs, selectFile, setFileName, setSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GifVideoRecorder()
| Method Detail |
|---|
public void setFrameDuration(double millis)
setFrameDuration in interface VideoRecordersetFrameDuration in class ScratchVideoRecordermillis - the duration per frame in millisecondspublic AnimatedGifEncoder getGifEncoder()
protected void saveScratch()
saveScratch in class ScratchVideoRecorderprotected boolean startRecording()
startRecording in class ScratchVideoRecorderprotected boolean append(java.awt.Image image)
append in class ScratchVideoRecorderimage - the image to append
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||