public abstract class CaptureOperation
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
CaptureOperation() |
Modifier and Type | Method and Description |
---|---|
void |
addCaptureListener(CaptureListener listener)
Adds the specified capture operation listener to receive capture
operation events from this operation.
|
abstract void |
execute()
Executes the current capture operation.
|
protected void |
fireCaptureCancelEvent() |
protected void |
fireCaptureCompleteEvent(java.awt.image.BufferedImage image) |
protected void |
fireCaptureStartEvent() |
CaptureListener[] |
getCaptureListeners()
Returns an array of all the capture operation listeners registered on this operation.
|
void |
removeCaptureListener(CaptureListener listener)
Removes the specified capture operation listener, so that it no longer
receives capture operation events from this operation.
|
public abstract void execute()
public void addCaptureListener(CaptureListener listener)
If listener listener
is null
,
no exception is thrown and no action is performed.
listener
- the specified capture operation listenerpublic void removeCaptureListener(CaptureListener listener)
If listener listener
is null
,
no exception is thrown and no action is performed.
listener
- the specified capture operation listenerpublic CaptureListener[] getCaptureListeners()
CaptureListener
s
or an empty array if no capture operation
listeners are currently registeredprotected void fireCaptureStartEvent()
protected void fireCaptureCancelEvent()
protected void fireCaptureCompleteEvent(java.awt.image.BufferedImage image)