public class RowLayout extends java.lang.Object implements TabLayoutManager
TabLayoutManager
does never create menus and ignores the
info panel.DockTheme
s. It remains however in the framework for future uses.Constructor and Description |
---|
RowLayout() |
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 . |
public java.awt.Dimension getMinimumSize(TabPane pane)
TabLayoutManager
TabPane.getAvailableArea()
should return.getMinimumSize
in interface TabLayoutManager
pane
- some panelpane
public java.awt.Dimension getPreferredSize(TabPane pane)
TabLayoutManager
TabPane.getAvailableArea()
should return.getPreferredSize
in interface TabLayoutManager
pane
- some panelpane
public int getIndexOfTabAt(TabPane pane, java.awt.Point mouseLocation)
TabLayoutManager
mouseLocation
.getIndexOfTabAt
in interface TabLayoutManager
pane
- the panel for which to search the tabmouseLocation
- the location of the mousemouseLocation
or null
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.layout
in interface TabLayoutManager
pane
- the pane whose tabs should be positionedpublic void install(TabPane pane)
TabLayoutManager
TabLayoutManager
that from now on it will have
to layout pane
.install
in interface TabLayoutManager
pane
- a pane that will be given to TabLayoutManager.layout(TabPane)
public void uninstall(TabPane pane)
TabLayoutManager
TabLayoutManager
that it has no longer to
look after pane
.uninstall
in interface TabLayoutManager
pane
- a TabPane
that will no longer be given to
TabLayoutManager.layout(TabPane)