bibliothek.extension.gui.dock.theme.eclipse
Class EclipseStationPaint
java.lang.Object
bibliothek.extension.gui.dock.theme.eclipse.EclipseStationPaint
- All Implemented Interfaces:
- StationPaint
@ColorCodes(value={"paint.line","paint.divider","paint.insertion"})
public class EclipseStationPaint
- extends java.lang.Object
- implements StationPaint
- Author:
- Janni Kovacs
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 y1,
int x2,
int y2)
Paints a single line from x1/y1 to x2/y2. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EclipseStationPaint
public EclipseStationPaint()
drawInsertionLine
public void drawInsertionLine(java.awt.Graphics g,
DockStation station,
int x1,
int y1,
int x2,
int y2)
- Description copied from interface:
StationPaint
- Paints a single line from x1/y1 to x2/y2.
- Specified by:
drawInsertionLine
in interface StationPaint
- Parameters:
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
drawDivider
public void drawDivider(java.awt.Graphics g,
DockStation station,
java.awt.Rectangle bounds)
- Description copied from interface:
StationPaint
- Draws a divider between two elements.
- Specified by:
drawDivider
in interface StationPaint
- Parameters:
g
- the graphics context used for paintingstation
- the station on which to paintbounds
- the rectangle which marks the whole divider
drawInsertion
public void drawInsertion(java.awt.Graphics g,
DockStation station,
java.awt.Rectangle stationBounds,
java.awt.Rectangle dockableBounds)
- Description copied from interface:
StationPaint
- Paints some markings when a
Dockable
is added to a DockStation
.
- Specified by:
drawInsertion
in interface StationPaint
- Parameters:
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