public class DefaultStationPaintValue extends StationThemeItemValue<StationPaint> implements StationPaintValue
StationPaint. The wrapper can either use a delegate or installs itself as UIValue
on the current ThemeManager.KIND_STATION_PAINT| Constructor and Description |
|---|
DefaultStationPaintValue(String id,
DockStation station)
Creates a new wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
void |
drawDivider(Graphics g,
Rectangle bounds)
|
void |
drawInsertion(Graphics g,
Rectangle stationBounds,
Rectangle dockableBounds)
Paints some markings when a
Dockable is added to a DockStation. |
void |
drawInsertionLine(Graphics g,
int x1,
int y1,
int x2,
int y2)
Paints a single line from x1/y1 to x2/y2.
|
void |
drawRemoval(Graphics g,
Rectangle stationBounds,
Rectangle dockableBounds)
Paints some markings when a
Dockable is removed from a DockStation. |
get, getDelegate, getStation, set, setController, setDelegateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStationpublic DefaultStationPaintValue(String id, DockStation station)
id - a unique identifier used on ThemeManager to get the current StationPaintstation - the station that is painted by this wrapperpublic void drawDivider(Graphics g, Rectangle bounds)
g - the graphics contextbounds - the boundaries of the dividerpublic void drawInsertion(Graphics g, Rectangle stationBounds, Rectangle dockableBounds)
Dockable is added to a DockStation.g - the graphics context used for paintingstationBounds - the area on the station which will be affected by the insertiondockableBounds - the bounds that the new child will havepublic void drawInsertionLine(Graphics g, int x1, int y1, int x2, int y2)
g - the graphics context used for paintingx1 - the x-coordinate of the first end of the liney1 - the y-coordinate of the first end of the linex2 - the x-coordinate of the second end of the liney2 - the y-coordinate of the second end of the linepublic void drawRemoval(Graphics g, Rectangle stationBounds, Rectangle dockableBounds)
Dockable is removed from a DockStation.g - the graphics context used for paintingstationBounds - the area on the station which will be affected by the removaldockableBounds - the bounds that the old child currently hasCopyright © 2017 Docking Frames. All rights reserved.