bibliothek.extension.gui.dock.theme.eclipse.rex.tab
Interface TabPainter


public interface TabPainter

Author:
Janni Kovacs

Method Summary
 TabComponent createTabComponent(DockController controller, RexTabbedComponent component, Dockable dockable, int index)
          Creates a new entry for the tab-strip above the contents of a RexTabbedComponent.
 void paintTabStrip(RexTabbedComponent tabbedComponent, Component tabStrip, Graphics g)
          Paints the background of tabStrip.
 

Method Detail

paintTabStrip

void paintTabStrip(RexTabbedComponent tabbedComponent,
                   Component tabStrip,
                   Graphics g)
Paints the background of tabStrip.

Parameters:
tabbedComponent - the RexTabbedComponent for which tabStrip is shown
tabStrip - the tabs of tabbedComponent
g - the graphics used to paint on tabStrip

createTabComponent

TabComponent createTabComponent(DockController controller,
                                RexTabbedComponent component,
                                Dockable dockable,
                                int index)
Creates a new entry for the tab-strip above the contents of a RexTabbedComponent.

Parameters:
controller - the current controller, never null
component - the owner of the tab, clients might need component.getStation() to get access to the DockStation for which the tab is intended
dockable - the element for which the tab is shown
index - the initial location of the tab
Returns:
the new tab, never null