bibliothek.extension.gui.dock.theme.bubble
Class BubbleStationPaint

java.lang.Object
  extended by bibliothek.extension.gui.dock.theme.bubble.BubbleStationPaint
All Implemented Interfaces:
StationPaint

@ColorCodes(value={"paint.divider","paint.insertion","paint.line"})
public class BubbleStationPaint
extends Object
implements StationPaint

A StationPaint for a BubbleTheme

Author:
Benjamin Sigg

Constructor Summary
BubbleStationPaint()
           
 
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

BubbleStationPaint

public BubbleStationPaint()
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