|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.station.stack.tab.AbstractTabLayoutManager<MenuLineLayout.Layout>
bibliothek.gui.dock.station.stack.tab.MenuLineLayout
public class MenuLineLayout
Orders tabs in a line, if there is not enough space a menu is used. Also ensures the info-panel has its preferred size.
| Nested Class Summary | |
|---|---|
protected class |
MenuLineLayout.Layout
Layout information for a TabPane. |
| Nested classes/interfaces inherited from class bibliothek.gui.dock.station.stack.tab.AbstractTabLayoutManager |
|---|
AbstractTabLayoutManager.PaneInfo |
| Constructor Summary | |
|---|---|
MenuLineLayout()
|
|
| Method Summary | |
|---|---|
protected MenuLineLayout.Layout |
createInfoFor(TabPane pane)
Creates a new bag for information about pane. |
protected void |
destroy(MenuLineLayout.Layout info)
Called when the information info is no longer
required. |
protected AxisConversion |
getConversion(TabPane pane)
Creates a new AxisConversion to convert a layout that
is at the top of dockables to a layout at the TabPlacement
given by pane. |
java.awt.Dimension |
getMinimumSize(TabPane pane)
Gets the minimal size that TabPane.getAvailableArea()
should return. |
java.awt.Dimension |
getPreferredSize(TabPane pane)
Gets the preferred size that TabPane.getAvailableArea()
should return. |
protected Size[] |
getSizes(LayoutBlock block,
Size.Type type)
Collects all the Sizes whose type is type. |
protected Size[] |
getSizes(Size[] choices,
Size.Type type)
Makes a selection of those Sizes with type. |
void |
layout(TabPane pane)
Lays out the tabs on pane, this manager is free to
make any layout it wishes. |
| Methods inherited from class bibliothek.gui.dock.station.stack.tab.AbstractTabLayoutManager |
|---|
getInfo, install, uninstall |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MenuLineLayout()
| Method Detail |
|---|
protected MenuLineLayout.Layout createInfoFor(TabPane pane)
AbstractTabLayoutManagerpane.
createInfoFor in class AbstractTabLayoutManager<MenuLineLayout.Layout>pane - some panel
paneprotected void destroy(MenuLineLayout.Layout info)
AbstractTabLayoutManagerinfo is no longer
required.
destroy in class AbstractTabLayoutManager<MenuLineLayout.Layout>info - the information bag to deletepublic java.awt.Dimension getMinimumSize(TabPane pane)
TabLayoutManagerTabPane.getAvailableArea()
should return.
pane - some panel
panepublic java.awt.Dimension getPreferredSize(TabPane pane)
TabLayoutManagerTabPane.getAvailableArea()
should return.
pane - some panel
panepublic void layout(TabPane pane)
TabLayoutManagerpane, this manager is free to
make any layout it wishes. However, the result should allow the user
to still select any tab.
pane - the pane whose tabs should be positioned
protected Size[] getSizes(LayoutBlock block,
Size.Type type)
Sizes whose type is type.
block - the source of the size, may be nulltype - the type to search, not null
null
protected Size[] getSizes(Size[] choices,
Size.Type type)
Sizes with type.
choices - available sizestype - the type searched
typeprotected AxisConversion getConversion(TabPane pane)
AxisConversion to convert a layout that
is at the top of dockables to a layout at the TabPlacement
given by pane.
pane - the panel for which the conversion is used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||