bibliothek.extension.gui.dock.theme.eclipse.stack.tab
Class LinePainter

java.lang.Object
  extended by bibliothek.extension.gui.dock.theme.eclipse.stack.tab.LinePainter
All Implemented Interfaces:
TabPanePainter

@ColorCodes(value="stack.border")
public class LinePainter
extends Object
implements TabPanePainter

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

Author:
Benjamin Sigg

Constructor Summary
LinePainter(EclipseTabPane pane)
          Creates a new painter.
 
Method Summary
 void paintBackground(Graphics g)
          Paints the decorations of the EclipseTabPane with this this painter is associated.
 void paintForeground(Graphics g)
          Paints the decorations of the EclipseTabPane with which this painter is associated.
 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

LinePainter

public LinePainter(EclipseTabPane pane)
Creates a new painter.

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

setController

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

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

paintBackground

public void paintBackground(Graphics g)
Description copied from interface: TabPanePainter
Paints the decorations of the EclipseTabPane with this this painter is associated. This method is called before any Component is painted. The graphics object is such that its point 0/0 falls together with the point 0/0 of CombinedStackDockComponent.getAvailableArea().

Specified by:
paintBackground in interface TabPanePainter
Parameters:
g - graphics context to use for painting

paintForeground

public void paintForeground(Graphics g)
Description copied from interface: TabPanePainter
Paints the decorations of the EclipseTabPane with which this painter is associated. This method is called after the Components have been painted. The graphics object is such that its point 0/0 falls together with the point 0/0 of CombinedStackDockComponent.getAvailableArea().

Specified by:
paintForeground in interface TabPanePainter
Parameters:
g - the graphics used to paint on tabStrip