bibliothek.gui.dock.themes
Class ThemeStationPaint

java.lang.Object
  extended by bibliothek.gui.dock.themes.ThemeStationPaint
All Implemented Interfaces:
StationPaint

public class ThemeStationPaint
extends java.lang.Object
implements StationPaint

A StationPaint which forwards its calls to the current DockTheme.

Author:
Benjamin Sigg

Constructor Summary
ThemeStationPaint(DockController controller)
          Creates a new paint.
 
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
 

Constructor Detail

ThemeStationPaint

public ThemeStationPaint(DockController controller)
Creates a new paint.

Parameters:
controller - the controller whose theme should be accessed
Method Detail

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 painting
station - the station on which to paint
bounds - 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 painting
station - the station on which to paint
stationBounds - the area on the station which will be affected by the insertion
dockableBounds - the bounds that the new child will have

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 painting
station - the station on which to paint
x1 - the x-coordinate of the first end of the line
y1 - the y-coordinate of the first end of the line
x2 - the x-coordinate of the second end of the line
y2 - the y-coordinate of the second end of the line