|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.themes.basic.BasicStationPaint
@ColorCodes(value={"paint.line","paint.divider","paint.insertion"})
public class BasicStationPaint
A simple implementation of StationPaint. This paint uses
one color to draw various elements.
| Constructor Summary | |
|---|---|
BasicStationPaint()
|
|
| Method Summary | |
|---|---|
void |
drawDivider(java.awt.Graphics g,
DockStation station,
java.awt.Rectangle bounds)
Draws a divider between two elements. |
void |
drawInsertion(java.awt.Graphics g,
DockStation station,
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,
DockStation station,
int x1,
int x2,
int y1,
int y2)
Paints a single line from x1/y1 to x2/y2. |
java.awt.Color |
getColor()
Deprecated. see setColor(Color) |
void |
setColor(java.awt.Color color)
Deprecated. better use the ColorManager with keys
paint.line, paint.divider, paint.insertion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicStationPaint()
| Method Detail |
|---|
@Deprecated public java.awt.Color getColor()
setColor(Color)
@Deprecated public void setColor(java.awt.Color color)
ColorManager with keys
paint.line, paint.divider, paint.insertion
color - the color or null to use the default-color
public void drawDivider(java.awt.Graphics g,
DockStation station,
java.awt.Rectangle bounds)
StationPaint
drawDivider in interface StationPaintg - the graphics context used for paintingstation - the station on which to paintbounds - the rectangle which marks the whole divider
public void drawInsertion(java.awt.Graphics g,
DockStation station,
java.awt.Rectangle stationBounds,
java.awt.Rectangle dockableBounds)
StationPaintDockable is added to a DockStation.
drawInsertion in interface StationPaintg - 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
public void drawInsertionLine(java.awt.Graphics g,
DockStation station,
int x1,
int x2,
int y1,
int y2)
StationPaint
drawInsertionLine in interface StationPaintg - the graphics context used for paintingstation - the station on which to paintx1 - the x-coordinate of the first end of the linex2 - the y-coordinate of the first end of the liney1 - 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 | |||||||||