|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.station.support.StationPaintWrapper
public class StationPaintWrapper
A wrapper for a StationPaint
. The wrapper uses a delegate,
and if no delegate is known, the DockUI
is asked to provide
a paint appropriate to the current DockTheme
.
Constructor Summary | |
---|---|
StationPaintWrapper()
|
Method Summary | |
---|---|
void |
drawDivider(Graphics g,
DockStation station,
Rectangle bounds)
Draws a divider between two elements. |
void |
drawInsertion(Graphics g,
DockStation station,
Rectangle stationBounds,
Rectangle dockableBounds)
Paints some markings when a Dockable is added to a DockStation . |
void |
drawInsertionLine(Graphics g,
DockStation station,
int x1,
int y1,
int x2,
int y2)
Paints a single line from x1/y1 to x2/y2. |
StationPaint |
getDelegate()
Gets the StationPaint to which calls to this paint are
forwarded. |
void |
setDelegate(StationPaint delegate)
Sets the delegate property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StationPaintWrapper()
Method Detail |
---|
public StationPaint getDelegate()
StationPaint
to which calls to this paint are
forwarded.
null
setDelegate(StationPaint)
public void setDelegate(StationPaint delegate)
delegate
property. If this property is set,
all calls to the Methods of StationPaint
are forwarded to
it. Otherwise a default paint is used.
delegate
- the delegate or null
public void drawDivider(Graphics g, DockStation station, Rectangle bounds)
StationPaint
drawDivider
in interface StationPaint
g
- the graphics context used for paintingstation
- the station on which to paintbounds
- the rectangle which marks the whole dividerpublic void drawInsertion(Graphics g, DockStation station, Rectangle stationBounds, Rectangle dockableBounds)
StationPaint
Dockable
is added to a DockStation
.
drawInsertion
in interface StationPaint
g
- the graphics context used for paintingstation
- the station on which to paintstationBounds
- the area on the station which will be affected by the insertiondockableBounds
- the bounds that the new child will havepublic void drawInsertionLine(Graphics g, DockStation station, int x1, int y1, int x2, int y2)
StationPaint
drawInsertionLine
in interface StationPaint
g
- the graphics context used for paintingstation
- the station on which to paintx1
- 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 line
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |