public interface AWTComponentCaptureStrategy
Component which either is from AWT,
or has children from AWT.| Modifier and Type | Field and Description |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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. |
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.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 createdCopyright © 2017 Docking Frames. All rights reserved.