|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StationPaint
A StationPaint draws some parts of DockStation. All the default-stations
use a StationPaint to draw some markings when a Dockable is moved
or dragged.
| 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. |
void |
drawRemoval(Graphics g,
DockStation station,
Rectangle stationBounds,
Rectangle dockableBounds)
Paints some markings when a Dockable is removed from a DockStation. |
| Method Detail |
|---|
void drawInsertionLine(Graphics g,
DockStation station,
int x1,
int y1,
int x2,
int y2)
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
void drawDivider(Graphics g,
DockStation station,
Rectangle bounds)
g - the graphics context used for paintingstation - the station on which to paintbounds - the rectangle which marks the whole divider
void drawInsertion(Graphics g,
DockStation station,
Rectangle stationBounds,
Rectangle dockableBounds)
Dockable is added to a DockStation.
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 have
void drawRemoval(Graphics g,
DockStation station,
Rectangle stationBounds,
Rectangle dockableBounds)
Dockable is removed from a DockStation.
g - the graphics context used for paintingstation - the station on which to paintstationBounds - the area on the station which will be affected by the removaldockableBounds - the bounds that the old child currently has
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||