org.opensourcephysics.media.quicktime
Class QTVideoRecorder

java.lang.Object
  extended by org.opensourcephysics.media.core.ScratchVideoRecorder
      extended by org.opensourcephysics.media.quicktime.QTVideoRecorder
All Implemented Interfaces:
VideoRecorder

public class QTVideoRecorder
extends ScratchVideoRecorder

This is a quicktime video recorder that uses scratch files.

Author:
Douglas Brown

Field Summary
 
Fields inherited from class org.opensourcephysics.media.core.ScratchVideoRecorder
canRecord, chooser, chooserField, chosenExtension, dim, ext, frameCount, frameDuration, frameImage, hasContent, ignoreChooser, isSaved, saveChanges, saveFile, scratchFile, scratchName, scratchNumber, suggestedFileName, tempDirectory, tempFileBasePath, tempFilePrefix, tempFiles, tempFileType, videoType
 
Constructor Summary
QTVideoRecorder(QTVideoType type)
          Constructs a QTVideoRecorder object.
 
Method Summary
protected  boolean append(java.awt.Image image)
          Appends a frame to the current video.
protected  void saveScratch()
          Saves the video to the current scratchFile.
protected  boolean startRecording()
          Starts the video recording process.
 
Methods inherited from class org.opensourcephysics.media.core.ScratchVideoRecorder
addFrame, createScratch, createVideo, createVideo, deleteTempFiles, finalize, getFileName, getFileToBeSaved, getScratchExtension, getVideo, reset, saveVideo, saveVideo, saveVideoAs, selectFile, setFileName, setFrameDuration, setSize, suggestFileName
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QTVideoRecorder

public QTVideoRecorder(QTVideoType type)
Constructs a QTVideoRecorder object.

Parameters:
type - the video type to record
Method Detail

saveScratch

protected void saveScratch()
                    throws java.io.IOException
Saves the video to the current scratchFile.

Specified by:
saveScratch in class ScratchVideoRecorder
Throws:
java.io.IOException

startRecording

protected boolean startRecording()
Starts the video recording process.

Specified by:
startRecording in class ScratchVideoRecorder
Returns:
true if video recording successfully started

append

protected boolean append(java.awt.Image image)
Appends a frame to the current video.

Specified by:
append in class ScratchVideoRecorder
Parameters:
image - the image to append
Returns:
true if image successfully appended