public interface TabLayoutManager
TabLayoutManager is responsible for managing the location and size
of tags,
menus and info-component
of a TabPane. The manager can make use of LayoutBlocks to simplify
its algorithms.TabPane.LAYOUT_MANAGER| Modifier and Type | Method and Description |
|---|---|
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. |
void |
install(TabPane pane)
Informs this
TabLayoutManager that from now on it will have
to layout pane. |
void |
layout(TabPane pane)
Lays out the tabs on
pane, this manager is free to
make any layout it wishes. |
void |
uninstall(TabPane pane)
Informs this
TabLayoutManager that it has no longer to
look after pane. |
void layout(TabPane pane)
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 positionedDimension getMinimumSize(TabPane pane)
TabPane.getAvailableArea()
should return.pane - some panelpaneDimension getPreferredSize(TabPane pane)
TabPane.getAvailableArea()
should return.pane - some panelpaneint getIndexOfTabAt(TabPane pane, Point mouseLocation)
mouseLocation.pane - the panel for which to search the tabmouseLocation - the location of the mousemouseLocation or nullvoid install(TabPane pane)
TabLayoutManager that from now on it will have
to layout pane.pane - a pane that will be given to layout(TabPane)void uninstall(TabPane pane)
TabLayoutManager that it has no longer to
look after pane.pane - a TabPane that will no longer be given to
layout(TabPane)Copyright © 2017 Docking Frames. All rights reserved.