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

All Superinterfaces:
TabPaneComponent
All Known Subinterfaces:
CombinedTab
All Known Implementing Classes:
AbstractTab, BubbleTab, EclipseTab, FlatTab

public interface Tab
extends TabPaneComponent

A Tab represents a single Dockable that lies on a TabPane.

Author:
Benjamin Sigg

Method Summary
 Dockable getDockable()
          Gets the element that is associated with this tab.
 Dimension getMinimumSize(Tab[] tabs)
          Gets the minimum size of this tab under the assumption that this tab is displayed together with tabs.
 Dimension getPreferredSize(Tab[] tabs)
          Gets the preferred size of this tab under the assumption that this tab is displayed together with tabs.
 
Methods inherited from interface bibliothek.gui.dock.station.stack.tab.TabPaneComponent
getBounds, getMaximumSize, getMinimumSize, getOverlap, getPreferredSize, getTabParent, getZOrder, isPaneVisible, setBounds, setOrientation, setPaneVisible, setZOrder
 

Method Detail

getDockable

Dockable getDockable()
Gets the element that is associated with this tab.

Returns:
the element

getMinimumSize

Dimension getMinimumSize(Tab[] tabs)
Gets the minimum size of this tab under the assumption that this tab is displayed together with tabs.

Parameters:
tabs - the displayed tabs, exactly one entry is this and no entry is null
Returns:
the minimum size of this tab

getPreferredSize

Dimension getPreferredSize(Tab[] tabs)
Gets the preferred size of this tab under the assumption that this tab is displayed together with tabs.

Parameters:
tabs - the displayed tabs, exactly one entry is this and no entry is null
Returns:
the preferred size of this tab