|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AWTComponentCaptureStrategy
Used to capture an image of a Component which either is from AWT,
or has children from AWT.
| Field Summary | |
|---|---|
static AWTComponentCaptureStrategy |
PAINT_ALL_STRATEGY
This strategy calls Component.paintAll(Graphics) on the given component. |
static AWTComponentCaptureStrategy |
RECURSIVE_PAINT_STRATEGY
This strategy calls Component.paintAll(Graphics) recursively
on all Components. |
static AWTComponentCaptureStrategy |
SCREEN_CAPTURE_STRATEGY
This strategy just takes a real screen capture of the area in which the component is supposed to be. |
static PropertyKey<AWTComponentCaptureStrategy> |
STRATEGY
The PropertyKey for a AWTComponentCaptureStrategy. |
| Method Summary | |
|---|---|
BufferedImage |
createCapture(DockController controller,
Component component)
Creates a new image that has the same size as component and
contains all the things painted on component. |
| Field Detail |
|---|
static final AWTComponentCaptureStrategy SCREEN_CAPTURE_STRATEGY
static final AWTComponentCaptureStrategy RECURSIVE_PAINT_STRATEGY
Component.paintAll(Graphics) recursively
on all Components.
static final AWTComponentCaptureStrategy PAINT_ALL_STRATEGY
Component.paintAll(Graphics) on the given component.
static final PropertyKey<AWTComponentCaptureStrategy> STRATEGY
PropertyKey for a AWTComponentCaptureStrategy.
| Method Detail |
|---|
BufferedImage createCapture(DockController controller,
Component component)
component and
contains all the things painted on component.
controller - the controller for which the image is neededcomponent - the component to paint, its width and height must be
at least 1.
null if no image can be created
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||