bibliothek.extension.gui.dock.theme.eclipse.stack.tab
Interface TabPanePainter

All Known Implementing Classes:
LinePainter

public interface TabPanePainter

A TabPanePainter paints decorations on a EclipseTabPane.

Author:
Benjamin Sigg

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.
 

Method Detail

setController

void setController(DockController controller)
Sets the controller for which this painter is used.

Parameters:
controller - the controller, can be null

paintBackground

void paintBackground(Graphics g)
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().

Parameters:
g - graphics context to use for painting

paintForeground

void paintForeground(Graphics g)
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().

Parameters:
g - the graphics used to paint on tabStrip