org.opensourcephysics.tools
Interface VideoTool

All Known Implementing Classes:
VideoCaptureTool, VideoGrabber

public interface VideoTool


Method Summary
 boolean addFrame(java.awt.image.BufferedImage image)
          Adds a frame to the video if it is recording.
 void clear()
          Clear the video from the tool in preparation for a new video.
 boolean isRecording()
          Gets the recording flag.
 void setVisible(boolean visible)
          Sets the visibility.
 

Method Detail

addFrame

boolean addFrame(java.awt.image.BufferedImage image)
Adds a frame to the video if it is recording.

Parameters:
image - the frame to be added
Returns:
true if frame was added

isRecording

boolean isRecording()
Gets the recording flag.

Returns:
true if recording rendered images

setVisible

void setVisible(boolean visible)
Sets the visibility.

Parameters:
visible - true to set this visible

clear

void clear()
Clear the video from the tool in preparation for a new video.