bibliothek.gui.dock.station.stack.tab
Class RowLayout

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.tab.RowLayout
All Implemented Interfaces:
TabLayoutManager

public class RowLayout
extends Object
implements TabLayoutManager

This layout puts all tabs in one, or if there is not enough space, in many, rows. This TabLayoutManager does never create menus and ignores the info panel.
Please do note that this manager is no longer used by any of the default DockThemes. It remains however in the framework for future uses.

Author:
Benjamin Sigg

Constructor Summary
RowLayout()
           
 
Method Summary
 int getIndexOfTabAt(TabPane pane, Point mouseLocation)
          Finds out which tab is below the mouse at location mouseLocation.
 Dimension getMinimumSize(TabPane pane)
          Gets the minimal size that TabPane.getAvailableArea() should return.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowLayout

public RowLayout()
Method Detail

getMinimumSize

public Dimension getMinimumSize(TabPane pane)
Description copied from interface: TabLayoutManager
Gets the minimal size that TabPane.getAvailableArea() should return.

Specified by:
getMinimumSize in interface TabLayoutManager
Parameters:
pane - some panel
Returns:
the minimal size of the available area of pane

getPreferredSize

public Dimension getPreferredSize(TabPane pane)
Description copied from interface: TabLayoutManager
Gets the preferred size that TabPane.getAvailableArea() should return.

Specified by:
getPreferredSize in interface TabLayoutManager
Parameters:
pane - some panel
Returns:
the preferred size of the available area of pane

getIndexOfTabAt

public int getIndexOfTabAt(TabPane pane,
                           Point mouseLocation)
Description copied from interface: TabLayoutManager
Finds out which tab is below the mouse at location mouseLocation.

Specified by:
getIndexOfTabAt in interface TabLayoutManager
Parameters:
pane - the panel for which to search the tab
mouseLocation - the location of the mouse
Returns:
the index of the tab beneath mouseLocation or null

layout

public void layout(TabPane pane)
Description copied from interface: TabLayoutManager
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.

Specified by:
layout in interface TabLayoutManager
Parameters:
pane - the pane whose tabs should be positioned

install

public void install(TabPane pane)
Description copied from interface: TabLayoutManager
Informs this TabLayoutManager that from now on it will have to layout pane.

Specified by:
install in interface TabLayoutManager
Parameters:
pane - a pane that will be given to TabLayoutManager.layout(TabPane)

uninstall

public void uninstall(TabPane pane)
Description copied from interface: TabLayoutManager
Informs this TabLayoutManager that it has no longer to look after pane.

Specified by:
uninstall in interface TabLayoutManager
Parameters:
pane - a TabPane that will no longer be given to TabLayoutManager.layout(TabPane)