bibliothek.gui.dock.station.stack.tab
Class MenuLineLayout.Layout

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.tab.AbstractTabLayoutManager.PaneInfo
      extended by bibliothek.gui.dock.station.stack.tab.MenuLineLayout.Layout
All Implemented Interfaces:
TabPaneListener
Enclosing class:
MenuLineLayout

protected class MenuLineLayout.Layout
extends AbstractTabLayoutManager.PaneInfo

Layout information for a TabPane.

Author:
Benjamin Sigg

Constructor Summary
MenuLineLayout.Layout(TabPane pane)
          Creates new layout information for pane.
 
Method Summary
 void destroy()
          Informs this layout that it is no longer used and can release any resource.
 java.awt.Dimension getMinimumSize()
          Calculates the minimal size required.
 java.awt.Dimension getPreferredSize()
          Calculates the preferred size to show all elements.
 void infoComponentChanged(TabPane pane, LonelyTabPaneComponent oldInfo, LonelyTabPaneComponent newInfo)
          Called if the TabPane.getInfoComponent() was replaced.
 void layout()
          Updates the number of shown tabs and the boundaries of tabs, menu and info.
 
Methods inherited from class bibliothek.gui.dock.station.stack.tab.AbstractTabLayoutManager.PaneInfo
added, getPane, removed, selectionChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuLineLayout.Layout

public MenuLineLayout.Layout(TabPane pane)
Creates new layout information for pane.

Parameters:
pane - the owner of this information
Method Detail

getPreferredSize

public java.awt.Dimension getPreferredSize()
Calculates the preferred size to show all elements.

Returns:
the preferred size

getMinimumSize

public java.awt.Dimension getMinimumSize()
Calculates the minimal size required.

Returns:
the minimal size

destroy

public void destroy()
Informs this layout that it is no longer used and can release any resource.


layout

public void layout()
Updates the number of shown tabs and the boundaries of tabs, menu and info.


infoComponentChanged

public void infoComponentChanged(TabPane pane,
                                 LonelyTabPaneComponent oldInfo,
                                 LonelyTabPaneComponent newInfo)
Description copied from interface: TabPaneListener
Called if the TabPane.getInfoComponent() was replaced.

Specified by:
infoComponentChanged in interface TabPaneListener
Overrides:
infoComponentChanged in class AbstractTabLayoutManager.PaneInfo
Parameters:
pane - the source of this event
oldInfo - the old info component, may be null
newInfo - the new info component, may be null