Class AlphaPreview
java.lang.Object
org.flexdock.docking.drag.effects.DefaultPreview
org.flexdock.docking.drag.preview.AlphaPreview
- All Implemented Interfaces:
DockingConstants
,DragPreview
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AlphaPreview
static final AlphaPreview
static final float
static final Color
static final Color
Fields inherited from class org.flexdock.docking.drag.effects.DefaultPreview
DEFAULT_TAB_HEIGHT, DEFAULT_TAB_WIDTH
Fields inherited from interface org.flexdock.docking.DockingConstants
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 Summary
ConstructorsConstructorDescriptionAlphaPreview
(Color border, Color fill, float alpha) AlphaPreview
(Color border, Color fill, float alpha, boolean immutable) -
Method Summary
Modifier and TypeMethodDescriptionvoid
drawPreview
(Graphics2D g, Polygon p, Dockable dockable, Map dragInfo) void
setAlpha
(float alpha) void
setBorderColor
(Color color) void
setPreviewColor
(Color color) Methods inherited from class org.flexdock.docking.drag.effects.DefaultPreview
createPolyRect, createPolyRect, createPolyTab, createPolyTabOnBottom, createPolyTabOnTop, createPreviewPolygon, createTabbedPaneRect, isOuterRegion
-
Field Details
-
DEFAULT_ALPHA
public static final float DEFAULT_ALPHA- See Also:
-
DEFAULT_COLOR
-
DEFAULT_BORDER
-
BLUE
-
BLACK
-
-
Constructor Details
-
AlphaPreview
public AlphaPreview() -
AlphaPreview
-
AlphaPreview
-
-
Method Details
-
setPreviewColor
-
setAlpha
public void setAlpha(float alpha) -
setBorderColor
-
drawPreview
- Specified by:
drawPreview
in interfaceDragPreview
- Specified by:
drawPreview
in classDefaultPreview
-