public class MenuLineLayout extends AbstractTabLayoutManager<MenuLineLayoutPane>
| Constructor and Description |
|---|
MenuLineLayout() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getInfo, install, uninstallpublic 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 panelpaneprotected void destroy(MenuLineLayoutPane info)
AbstractTabLayoutManagerinfo is no longer
required.destroy in class AbstractTabLayoutManager<MenuLineLayoutPane>info - the information bag to deletepublic int getIndexOfTabAt(TabPane pane, Point mouseLocation)
TabLayoutManagermouseLocation.pane - the panel for which to search the tabmouseLocation - the location of the mousemouseLocation or nullpublic Dimension getMinimumSize(TabPane pane)
TabLayoutManagerTabPane.getAvailableArea()
should return.pane - some panelpanepublic Dimension getPreferredSize(TabPane pane)
TabLayoutManagerTabPane.getAvailableArea()
should return.pane - some panelpanepublic 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 positionedprotected 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 nullnullprotected Size[] getSizes(Size[] choices, Size.Type type)
Sizes with type.choices - available sizestype - the type searchedtypeprotected 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 usedCopyright © 2017 Docking Frames. All rights reserved.