public class VideoCaptureTool extends java.lang.Object implements Tool, VideoTool
Modifier | Constructor and Description |
---|---|
|
VideoCaptureTool()
Public constructor.
|
protected |
VideoCaptureTool(boolean ignored)
Protected constructor for subclasses to prevent circular references.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public VideoCaptureTool()
protected VideoCaptureTool(boolean ignored)
ignored
- ignoredpublic boolean addFrame(java.awt.image.BufferedImage image)
public void clear()
public void setRecording(boolean record)
record
- true to record rendered imagespublic boolean isRecording()
isRecording
in interface VideoTool
public void setVisible(boolean visible)
setVisible
in interface VideoTool
visible
- 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 secondpublic void send(Job job, Tool replyTo) throws java.rmi.RemoteException
public static VideoCaptureTool getTool()