public class ScreenObjectPainter extends java.lang.Object implements SelectionPainter
| Constructor and Description |
|---|
ScreenObjectPainter() |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptPoint(java.awt.Point point)
Invoked when the specified point is accepted.
|
java.awt.image.BufferedImage |
getSelectedArea()
Returns the resulting image of the drawing capture operation.
|
void |
paint(java.awt.Graphics graphics)
Invoked when the user is painting on the drawable component.
|
void |
selectionEnd()
Invoked when a selection operation is stopped.
|
void |
selectionStart()
Invoked when a selection operation is started.
|
void |
setBackgroundImage(java.awt.image.BufferedImage image)
Sets the specified background image.
|
void |
setCurrentPosition(java.awt.Point point)
Sets the current position of the mouse pointer.
|
void |
setRectangles(java.util.List rectangles) |
public void paint(java.awt.Graphics graphics)
SelectionPainterpaint in interface SelectionPainterpublic java.awt.image.BufferedImage getSelectedArea()
SelectionPaintergetSelectedArea in interface SelectionPainterpublic void selectionStart()
SelectionPainterselectionStart in interface SelectionPainterpublic void selectionEnd()
SelectionPainterselectionEnd in interface SelectionPainterpublic void setCurrentPosition(java.awt.Point point)
SelectionPaintersetCurrentPosition in interface SelectionPainterpoint - the specified position of the mouse pointerpublic void acceptPoint(java.awt.Point point)
SelectionPainteracceptPoint in interface SelectionPainterpublic void setBackgroundImage(java.awt.image.BufferedImage image)
SelectionPaintersetBackgroundImage in interface SelectionPainterpublic void setRectangles(java.util.List rectangles)