|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.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 Size s whose type is type . |
protected Size[] |
getSizes(Size[] choices,
Size.Type type)
Makes a selection of those Size s 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)
AbstractTabLayoutManager
pane
.
createInfoFor
in class AbstractTabLayoutManager<MenuLineLayout.Layout>
pane
- some panel
pane
protected void destroy(MenuLineLayout.Layout info)
AbstractTabLayoutManager
info
is no longer
required.
destroy
in class AbstractTabLayoutManager<MenuLineLayout.Layout>
info
- the information bag to deletepublic java.awt.Dimension getMinimumSize(TabPane pane)
TabLayoutManager
TabPane.getAvailableArea()
should return.
pane
- some panel
pane
public java.awt.Dimension getPreferredSize(TabPane pane)
TabLayoutManager
TabPane.getAvailableArea()
should return.
pane
- some panel
pane
public void layout(TabPane pane)
TabLayoutManager
pane
, 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 positionedprotected Size[] getSizes(LayoutBlock block, Size.Type type)
Size
s whose type is type
.
block
- the source of the size, may be null
type
- the type to search, not null
null
protected Size[] getSizes(Size[] choices, Size.Type type)
Size
s with type
.
choices
- available sizestype
- the type searched
type
protected 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 |