bibliothek.gui.dock.station.stack.tab.layouting
Class LineTabsLayoutBlock.SizeCollector

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.tab.layouting.LineTabsLayoutBlock.SizeCollector
Enclosing class:
LineTabsLayoutBlock

protected class LineTabsLayoutBlock.SizeCollector
extends java.lang.Object

Used to calculate the minimum and preferred size of a set of Tabs.

Author:
Benjamin Sigg

Constructor Summary
LineTabsLayoutBlock.SizeCollector(Dockable[] dockables)
          Creates a new collector
 
Method Summary
 java.awt.Dimension getMinimumSize()
          Gets the current minimum size.
 java.awt.Dimension getPreferredSize()
          Gets the current preferred size.
 void insert(Tab tab)
          Adds a new tab to this collector, all sizes of this collector change because of this action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineTabsLayoutBlock.SizeCollector

public LineTabsLayoutBlock.SizeCollector(Dockable[] dockables)
Creates a new collector

Parameters:
dockables - underlying set of Dockables.
Method Detail

insert

public void insert(Tab tab)
Adds a new tab to this collector, all sizes of this collector change because of this action.

Parameters:
tab - the new tab

getMinimumSize

public java.awt.Dimension getMinimumSize()
Gets the current minimum size.

Returns:
minimum size

getPreferredSize

public java.awt.Dimension getPreferredSize()
Gets the current preferred size.

Returns:
preferred size