bibliothek.extension.gui.dock.theme.eclipse.rex.tab
Class LineStripPainter

java.lang.Object
  extended by bibliothek.extension.gui.dock.theme.eclipse.rex.tab.LineStripPainter
All Implemented Interfaces:
TabStripPainter

@ColorCodes(value="stack.border")
public class LineStripPainter
extends Object
implements TabStripPainter

Paints the background of the tab by just painting a single line.

Author:
Benjamin Sigg

Constructor Summary
LineStripPainter(RexTabbedComponent tabbedComponent)
          Creates a new painter.
 
Method Summary
 void paintTabStrip(Component tabStrip, Graphics g)
          Paints the background of tabStrip.
 void setController(DockController controller)
          Sets the controller for which this painter is used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineStripPainter

public LineStripPainter(RexTabbedComponent tabbedComponent)
Creates a new painter.

Parameters:
tabbedComponent - the component for which this painter will work
Method Detail

paintTabStrip

public void paintTabStrip(Component tabStrip,
                          Graphics g)
Description copied from interface: TabStripPainter
Paints the background of tabStrip.

Specified by:
paintTabStrip in interface TabStripPainter
Parameters:
tabStrip - the tabs of tabbedComponent
g - the graphics used to paint on tabStrip

setController

public void setController(DockController controller)
Description copied from interface: TabStripPainter
Sets the controller for which this painter is used.

Specified by:
setController in interface TabStripPainter
Parameters:
controller - the controller, can be null