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 LayoutBlock
s to simplify
its algorithms.TabPane.LAYOUT_MANAGER
Modifier and Type | Method and Description |
---|---|
int |
getIndexOfTabAt(TabPane pane,
java.awt.Point mouseLocation)
Finds out which tab is below the mouse at location
mouseLocation . |
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. |
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 positionedjava.awt.Dimension getMinimumSize(TabPane pane)
TabPane.getAvailableArea()
should return.pane
- some panelpane
java.awt.Dimension getPreferredSize(TabPane pane)
TabPane.getAvailableArea()
should return.pane
- some panelpane
int getIndexOfTabAt(TabPane pane, java.awt.Point mouseLocation)
mouseLocation
.pane
- the panel for which to search the tabmouseLocation
- the location of the mousemouseLocation
or null
void 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)