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(java.lang.String id,
DockStation station)
Creates a new wrapper.
|
Modifier and Type | Method and Description |
---|---|
void |
drawDivider(java.awt.Graphics g,
java.awt.Rectangle bounds)
|
void |
drawInsertion(java.awt.Graphics g,
java.awt.Rectangle stationBounds,
java.awt.Rectangle dockableBounds)
Paints some markings when a
Dockable is added to a DockStation . |
void |
drawInsertionLine(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2)
Paints a single line from x1/y1 to x2/y2.
|
void |
drawRemoval(java.awt.Graphics g,
java.awt.Rectangle stationBounds,
java.awt.Rectangle dockableBounds)
Paints some markings when a
Dockable is removed from a DockStation . |
get, getDelegate, getStation, set, setController, setDelegate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStation
public DefaultStationPaintValue(java.lang.String id, DockStation station)
id
- a unique identifier used on ThemeManager
to get the current StationPaint
station
- the station that is painted by this wrapperpublic void drawDivider(java.awt.Graphics g, java.awt.Rectangle bounds)
g
- the graphics contextbounds
- the boundaries of the dividerpublic void drawInsertion(java.awt.Graphics g, java.awt.Rectangle stationBounds, java.awt.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(java.awt.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(java.awt.Graphics g, java.awt.Rectangle stationBounds, java.awt.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 has