bibliothek.gui.dock.station.stack.tab.layouting
Interface TabsLayoutBlock

All Superinterfaces:
LayoutBlock
All Known Implementing Classes:
AbstractTabsLayoutBlock, LineTabsLayoutBlock

public interface TabsLayoutBlock
extends LayoutBlock

A block managing a group of Tabs. This LayoutBlock is always visible.
Note: This LayoutBlock does not keep track of new or removed Dockables on the owning TabPane. This block may show tabs which are no longer valid.

Author:
Benjamin Sigg

Method Summary
 int getIndexOfTabAt(Point mouseLocation)
          Searches the index of the tab beneath mouseLocation.
 Tab[] getTabs(Size size)
          Gets all the tabs that would be shown if size would be applied.
 int getTabsCount(Size size)
          Tells how many tabs could be shown if size would be applied.
 boolean isAllTabs(Size size)
          Tells whether this block would be able to show all tabs if size would be applied.
 
Methods inherited from interface bibliothek.gui.dock.station.stack.tab.layouting.LayoutBlock
getSizes, setBounds, setLayout, setOrientation
 

Method Detail

isAllTabs

boolean isAllTabs(Size size)
Tells whether this block would be able to show all tabs if size would be applied.

Parameters:
size - the size that might be applied
Returns:
true if all tabs could be shown

getTabsCount

int getTabsCount(Size size)
Tells how many tabs could be shown if size would be applied.

Parameters:
size - the size that might be applied
Returns:
the number of tabs that could be shown

getTabs

Tab[] getTabs(Size size)
Gets all the tabs that would be shown if size would be applied.

Parameters:
size - the size that might be applied
Returns:
the tabs that would be shown

getIndexOfTabAt

int getIndexOfTabAt(Point mouseLocation)
Searches the index of the tab beneath mouseLocation.

Parameters:
mouseLocation - the location of the mouse
Returns:
the index of the tab beneath mouseLocation or -1