Package org.opensourcephysics.tools
Interface VideoTool
- All Known Implementing Classes:
VideoCaptureTool
,VideoGrabber
public interface VideoTool
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addFrame
(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
Gets the recording flag.void
setVisible
(boolean visible) Sets the visibility.
-
Method Details
-
addFrame
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.
-