bibliothek.gui.dock.themes
Class ThemeStationPaint

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

public class ThemeStationPaint
extends 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(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.
 
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(Graphics g,
                        DockStation station,
                        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(Graphics g,
                          DockStation station,
                          Rectangle stationBounds,
                          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(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

drawRemoval

public void drawRemoval(Graphics g,
                        DockStation station,
                        Rectangle stationBounds,
                        Rectangle dockableBounds)
Description copied from interface: StationPaint
Paints some markings when a Dockable is removed from a DockStation.

Specified by:
drawRemoval 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 removal
dockableBounds - the bounds that the old child currently has