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


public interface TabPainter

Author:
Janni Kovacs

Method Summary
 TabComponent createTabComponent(DockController controller, RexTabbedComponent component, StackDockStation station, Dockable dockable, int index)
          Creates a new entry for the tab-strip above the contents of a RexTabbedComponent.
 TabStripPainter createTabStripPainter(RexTabbedComponent component)
          Creates a new painter for the component which contains the tabs.
 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.
 

Method Detail

createTabStripPainter

TabStripPainter createTabStripPainter(RexTabbedComponent component)
Creates a new painter for the component which contains the tabs.

Parameters:
component - the component for which the painter is created
Returns:
the new painter, can be null

createTabComponent

TabComponent createTabComponent(DockController controller,
                                RexTabbedComponent component,
                                StackDockStation station,
                                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
station - the station for which the tab is needed.
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