|
||||||||||
| 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<MenuLineLayoutPane>
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.
| Constructor Summary | |
|---|---|
MenuLineLayout()
|
|
| Method Summary | |
|---|---|
protected MenuLineLayoutPane |
createInfoFor(TabPane pane)
Creates a new bag for information about pane. |
protected void |
destroy(MenuLineLayoutPane 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. |
MenuLineLayoutFactory |
getFactory()
Gets a factory which can be used to create items useful for this MenuLineLayout. |
int |
getIndexOfTabAt(TabPane pane,
Point mouseLocation)
Finds out which tab is below the mouse at location mouseLocation. |
Dimension |
getMinimumSize(TabPane pane)
Gets the minimal size that TabPane.getAvailableArea()
should return. |
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. |
MenuLineLayoutStrategy |
getStrategy()
Gets the strategy with the customized algorithms. |
void |
layout(TabPane pane)
Lays out the tabs on pane, this manager is free to
make any layout it wishes. |
void |
setFactory(MenuLineLayoutFactory factory)
Sets a factory to create items that are required by this MenuLineLayout. |
void |
setStrategy(MenuLineLayoutStrategy strategy)
Sets a strategy offering customized algorithms. |
| 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 |
|---|
public void setFactory(MenuLineLayoutFactory factory)
MenuLineLayout.
factory - the new factory, not nullpublic MenuLineLayoutFactory getFactory()
MenuLineLayout.
public void setStrategy(MenuLineLayoutStrategy strategy)
MenuLineLayout.
strategy - the strategy, not nullpublic MenuLineLayoutStrategy getStrategy()
setStrategy(MenuLineLayoutStrategy)protected MenuLineLayoutPane createInfoFor(TabPane pane)
AbstractTabLayoutManagerpane.
createInfoFor in class AbstractTabLayoutManager<MenuLineLayoutPane>pane - some panel
paneprotected void destroy(MenuLineLayoutPane info)
AbstractTabLayoutManagerinfo is no longer
required.
destroy in class AbstractTabLayoutManager<MenuLineLayoutPane>info - the information bag to delete
public int getIndexOfTabAt(TabPane pane,
Point mouseLocation)
TabLayoutManagermouseLocation.
pane - the panel for which to search the tabmouseLocation - the location of the mouse
mouseLocation or nullpublic Dimension getMinimumSize(TabPane pane)
TabLayoutManagerTabPane.getAvailableArea()
should return.
pane - some panel
panepublic 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 | |||||||||