|
||||||||||
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<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 Size s whose type is type . |
protected Size[] |
getSizes(Size[] choices,
Size.Type type)
Makes a selection of those Size s 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 null
public MenuLineLayoutFactory getFactory()
MenuLineLayout
.
public void setStrategy(MenuLineLayoutStrategy strategy)
MenuLineLayout
.
strategy
- the strategy, not null
public MenuLineLayoutStrategy getStrategy()
setStrategy(MenuLineLayoutStrategy)
protected MenuLineLayoutPane createInfoFor(TabPane pane)
AbstractTabLayoutManager
pane
.
createInfoFor
in class AbstractTabLayoutManager<MenuLineLayoutPane>
pane
- some panel
pane
protected void destroy(MenuLineLayoutPane info)
AbstractTabLayoutManager
info
is no longer
required.
destroy
in class AbstractTabLayoutManager<MenuLineLayoutPane>
info
- the information bag to deletepublic int getIndexOfTabAt(TabPane pane, Point mouseLocation)
TabLayoutManager
mouseLocation
.
pane
- the panel for which to search the tabmouseLocation
- the location of the mouse
mouseLocation
or null
public Dimension getMinimumSize(TabPane pane)
TabLayoutManager
TabPane.getAvailableArea()
should return.
pane
- some panel
pane
public 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 |