bibliothek.gui.dock.station.stack.tab.layouting
Class AbstractTabsLayoutBlock.TabsSize

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.tab.layouting.Size
      extended by bibliothek.gui.dock.station.stack.tab.layouting.AbstractTabsLayoutBlock.TabsSize
Direct Known Subclasses:
LineTabsLayoutBlock.LineSize
Enclosing class:
AbstractTabsLayoutBlock

protected class AbstractTabsLayoutBlock.TabsSize
extends Size

This Size contains an array of Tabs which are required to get this size. Instances of this class can be used for LayoutBlock.setLayout(Size)

Author:
Benjamin Sigg

Nested Class Summary
 
Nested classes/interfaces inherited from class bibliothek.gui.dock.station.stack.tab.layouting.Size
Size.Type
 
Constructor Summary
AbstractTabsLayoutBlock.TabsSize(Size.Type type, Dimension size, Tab[] tabs, double score)
           
 
Method Summary
 int getTabCount()
          Gets the number of tabs shown with this size.
 Tab[] getTabs()
          Gets the tabs that are required for this size.
 String toString()
           
 
Methods inherited from class bibliothek.gui.dock.station.stack.tab.layouting.Size
getHeight, getScore, getType, getWidth, isMinimum, isPreferred, toDimension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractTabsLayoutBlock.TabsSize

public AbstractTabsLayoutBlock.TabsSize(Size.Type type,
                                        Dimension size,
                                        Tab[] tabs,
                                        double score)
Method Detail

getTabs

public Tab[] getTabs()
Gets the tabs that are required for this size.

Returns:
the tabs

getTabCount

public int getTabCount()
Gets the number of tabs shown with this size.

Returns:
the number of tabs

toString

public String toString()
Overrides:
toString in class Size