public class CaptureBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_CAPTURE_AREA |
static java.lang.String |
PROPERTY_CAPTURE_TRANSPARENT_WINDOWS |
static java.lang.String |
PROPERTY_INCLUDE_CURSOR |
Constructor and Description |
---|
CaptureBase() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add the specified property listener.
|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Add the specified property listener.
|
java.awt.Rectangle |
getCaptureArea() |
protected java.beans.PropertyChangeSupport |
getPropertyChangeSupport() |
boolean |
isCaptureTransparentWindows()
Returns
true if the capture operation allows to capture
transparent or layered windows, otherwise - false . |
boolean |
isIncludeCursor()
Determines whether the resulting image of the capture operation
includes the cursor image.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove the specified property listener.
|
void |
setCaptureArea(java.awt.Rectangle area) |
void |
setCaptureTransparentWindows(boolean captureTransparentWindows)
Sets
true if the captureTransparentWindows operation should allow to captureTransparentWindows
transparent or layered windows, otherwise - false . |
void |
setIncludeCursor(boolean includeCursor)
Includes (or excludes) the cursor image to (or from) the resulting
image of the capture operation.
|
public static final java.lang.String PROPERTY_CAPTURE_AREA
public static final java.lang.String PROPERTY_INCLUDE_CURSOR
public static final java.lang.String PROPERTY_CAPTURE_TRANSPARENT_WINDOWS
protected java.beans.PropertyChangeSupport getPropertyChangeSupport()
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- property namelistener
- listenerpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- listenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- listenerpublic java.awt.Rectangle getCaptureArea()
public void setCaptureArea(java.awt.Rectangle area)
area
- required rectangular capture areapublic boolean isIncludeCursor()
true
if the result of the capture operation
includes the cursor image, false
otherwisepublic void setIncludeCursor(boolean includeCursor)
includeCursor
- If true
, this cursor image is
included into the result of the capture operation;
otherwise notpublic boolean isCaptureTransparentWindows()
true
if the capture operation allows to capture
transparent or layered windows, otherwise - false
.
A layered or transparent window is used by some applications to create a fade-in/out effect for menus and windows. Layered windows are also used for desktop animation, such as animated help assistants.
true
if the capture transparent or layered window
option is set, otherwise - false
public void setCaptureTransparentWindows(boolean captureTransparentWindows)
true
if the captureTransparentWindows operation should allow to captureTransparentWindows
transparent or layered windows, otherwise - false
.
A layered or transparent window is used by some applications to create a fade-in/out effect for menus and windows. Layered windows are also used for desktop animation, such as animated help assistants.
captureTransparentWindows
- true
if the captureTransparentWindows operation should allow
to captureTransparentWindows transparent or layered window, otherwise -
false