|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.tools.VideoCaptureTool
public class VideoCaptureTool
A video capture tool. This simply forwards jobs to the media tool.
| Constructor Summary | |
|---|---|
|
VideoCaptureTool()
Public constructor. |
protected |
VideoCaptureTool(boolean ignored)
Protected constructor for subclasses to prevent circular references. |
| Method Summary | |
|---|---|
boolean |
addFrame(java.awt.image.BufferedImage image)
Adds a frame to the video if it is recording. |
boolean |
canCapture()
Determines whether this tool is functional. |
void |
clear()
Clear the video from the tool in preparation for a new video. |
static VideoCaptureTool |
getTool()
Gets the shared Tool. |
boolean |
isRecording()
Gets the recording flag. |
boolean |
isVisible()
Gets the visibility. |
void |
send(Job job,
Tool replyTo)
Adds frame specified by image file path. |
void |
setFrameRate(int fps)
Sets the frame rate. |
void |
setRecording(boolean record)
Sets the recording flag. |
void |
setVideoType(VideoType type)
Sets the video type. |
void |
setVisible(boolean visible)
Sets the visibility. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VideoCaptureTool()
protected VideoCaptureTool(boolean ignored)
ignored - ignored| Method Detail |
|---|
public boolean addFrame(java.awt.image.BufferedImage image)
addFrame in interface VideoToolimage - the frame to be added
public void clear()
clear in interface VideoToolpublic void setRecording(boolean record)
record - true to record rendered imagespublic boolean isRecording()
isRecording in interface VideoToolpublic void setVisible(boolean visible)
setVisible in interface VideoToolvisible - true to set this visiblepublic boolean isVisible()
public boolean canCapture()
public void setVideoType(VideoType type)
type - the video typepublic void setFrameRate(int fps)
fps - the frame rate in frames per second
public void send(Job job,
Tool replyTo)
throws java.rmi.RemoteException
send in interface Tooljob - the jobreplyTo - the tool to reply to
java.rmi.RemoteExceptionpublic static VideoCaptureTool getTool()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||