public abstract class DefaultPreview extends Object implements DragPreview
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TAB_HEIGHT |
static int |
DEFAULT_TAB_WIDTH |
ACTIVE_WINDOW, BOTTOM, CENTER, CENTER_REGION, CLOSE_ACTION, DEFAULT_PERSISTENCE_KEY, DOCKING_ID, EAST_REGION, HEAVYWEIGHT_DOCKABLES, HORIZONTAL, LEFT, MOUSE_PRESSED, NORTH_REGION, PERMANENT_FOCUS_OWNER, PIN_ACTION, REGION, RIGHT, SOUTH_REGION, TOP, UNINITIALIZED, UNINITIALIZED_RATIO, UNKNOWN_REGION, UNSPECIFIED_SIBLING_PREF, VERTICAL, WEST_REGION
Constructor and Description |
---|
DefaultPreview() |
Modifier and Type | Method and Description |
---|---|
protected Polygon |
createPolyRect(DockingPort port,
Component dockable,
String region) |
protected Polygon |
createPolyRect(Rectangle r) |
protected Polygon |
createPolyTab(DockingPort port,
Component hover) |
protected Polygon |
createPolyTabOnBottom(Rectangle tabPane,
Rectangle tab) |
protected Polygon |
createPolyTabOnTop(Rectangle tabPane,
Rectangle tab) |
Polygon |
createPreviewPolygon(Component dockable,
DockingPort port,
Dockable hover,
String targetRegion,
Component paintingTarget,
Map dragInfo) |
protected Rectangle |
createTabbedPaneRect(DockingPort port,
Component hover) |
abstract void |
drawPreview(Graphics2D g,
Polygon poly,
Dockable dockable,
Map dragInfo) |
protected boolean |
isOuterRegion(String region) |
public static final int DEFAULT_TAB_WIDTH
public static final int DEFAULT_TAB_HEIGHT
public Polygon createPreviewPolygon(Component dockable, DockingPort port, Dockable hover, String targetRegion, Component paintingTarget, Map dragInfo)
createPreviewPolygon
in interface DragPreview
protected Polygon createPolyRect(DockingPort port, Component dockable, String region)
protected Polygon createPolyTab(DockingPort port, Component hover)
protected Rectangle createTabbedPaneRect(DockingPort port, Component hover)
protected boolean isOuterRegion(String region)
public abstract void drawPreview(Graphics2D g, Polygon poly, Dockable dockable, Map dragInfo)
drawPreview
in interface DragPreview