bibliothek.gui.dock.station.stack.tab
Interface TabLayoutManager

All Known Implementing Classes:
AbstractTabLayoutManager, MenuLineLayout, RowLayout

@Todo(compatibility=COMPATIBLE,
      priority=ENHANCEMENT,
      target=VERSION_1_1_1,
      description="Make some more LayoutManagers to put tabs in the {left, middle, right} or {top, middle, bottom}")
public interface TabLayoutManager

A TabLayoutManager is responsible for managing the location and size of tags, menus and info-component of a TabPane. The manager can make use of LayoutBlocks to simplify its algorithms.

Author:
Benjamin Sigg

Method Summary
 java.awt.Dimension getMinimumSize(TabPane pane)
          Gets the minimal size that TabPane.getAvailableArea() should return.
 java.awt.Dimension getPreferredSize(TabPane pane)
          Gets the preferred size that TabPane.getAvailableArea() should return.
 void install(TabPane pane)
          Informs this TabLayoutManager that from now on it will have to layout pane.
 void layout(TabPane pane)
          Lays out the tabs on pane, this manager is free to make any layout it wishes.
 void uninstall(TabPane pane)
          Informs this TabLayoutManager that it has no longer to look after pane.
 

Method Detail

layout

void layout(TabPane pane)
Lays out the tabs on pane, this manager is free to make any layout it wishes. However, the result should allow the user to still select any tab.

Parameters:
pane - the pane whose tabs should be positioned

getMinimumSize

java.awt.Dimension getMinimumSize(TabPane pane)
Gets the minimal size that TabPane.getAvailableArea() should return.

Parameters:
pane - some panel
Returns:
the minimal size of the available area of pane

getPreferredSize

java.awt.Dimension getPreferredSize(TabPane pane)
Gets the preferred size that TabPane.getAvailableArea() should return.

Parameters:
pane - some panel
Returns:
the preferred size of the available area of pane

install

void install(TabPane pane)
Informs this TabLayoutManager that from now on it will have to layout pane.

Parameters:
pane - a pane that will be given to layout(TabPane)

uninstall

void uninstall(TabPane pane)
Informs this TabLayoutManager that it has no longer to look after pane.

Parameters:
pane - a TabPane that will no longer be given to layout(TabPane)