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.
 Border getFullBorder(DockController controller, Dockable dockable)
          Gets the border which will be around dockable.
 Border getFullBorder(DockController controller, DockStation station, RexTabbedComponent component)
          Gets the border which will be around component, which is a child of station.
 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

getFullBorder

Border getFullBorder(DockController controller,
                     DockStation station,
                     RexTabbedComponent component)
Gets the border which will be around component, which is a child of station.

Parameters:
controller - the current controller, never null
station - the parent of component
component - the component whose border is determined by this method
Returns:
the new border or null

getFullBorder

Border getFullBorder(DockController controller,
                     Dockable dockable)
Gets the border which will be around dockable.

Parameters:
controller - the current controller, never null
dockable - the element whose border is set, this element stands alone (means: is not on a RexTabbedComponent).
Returns:
the border of dockable or null