public class MenuLineLayoutPane extends AbstractTabLayoutManagerPane
TabPane
s that are managed by a MenuLineLayout
.Constructor and Description |
---|
MenuLineLayoutPane(MenuLineLayout layout,
TabPane pane)
Creates new layout information for
pane . |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Informs this layout that it is no longer used and can release any
resource.
|
int |
getIndexOfTabAt(java.awt.Point mouseLocation)
Searches the index of the tab beneath
mouseLocation . |
LayoutBlock |
getInfo()
Gets the info
Component that is shown on this pane. |
MenuLineLayout |
getLayout()
Gets the
MenuLineLayout that is using this pane. |
protected MenuLineLayoutPossibility |
getLayout(Size tabSize,
Size menuSize,
Size infoSize)
Creates a possible layout for the given sizes.
|
MenuLayoutBlock |
getMenu()
Gets the menu that is shown on this pane.
|
java.awt.Dimension |
getMinimumSize()
Calculates the minimal size required.
|
java.awt.Dimension |
getPreferredSize()
Calculates the preferred size to show all elements.
|
TabsLayoutBlock |
getTabs()
Gets the tabs that are shown on this pane.
|
void |
infoComponentChanged(TabPane pane,
LonelyTabPaneComponent oldInfo,
LonelyTabPaneComponent newInfo)
Called if the
TabPane.getInfoComponent() was replaced. |
void |
layout()
Updates the number of shown tabs and the boundaries of tabs, menu
and info.
|
added, controllerChanged, getPane, isUseSmallMinimumSize, removed, selectionChanged, uninstalled
public MenuLineLayoutPane(MenuLineLayout layout, TabPane pane)
pane
.layout
- the layout using this panepane
- the owner of this informationpublic TabsLayoutBlock getTabs()
public LayoutBlock getInfo()
Component
that is shown on this pane.public MenuLayoutBlock getMenu()
public java.awt.Dimension getPreferredSize()
public java.awt.Dimension getMinimumSize()
public void destroy()
public MenuLineLayout getLayout()
MenuLineLayout
that is using this pane.null
public int getIndexOfTabAt(java.awt.Point mouseLocation)
mouseLocation
.mouseLocation
- the location of the mousemouseLocation
or -1
public void layout()
protected MenuLineLayoutPossibility getLayout(Size tabSize, Size menuSize, Size infoSize)
tabSize
- the sizes of the tabsmenuSize
- the size of the menuinfoSize
- the size of the info componentpublic void infoComponentChanged(TabPane pane, LonelyTabPaneComponent oldInfo, LonelyTabPaneComponent newInfo)
TabPaneListener
TabPane.getInfoComponent()
was replaced.infoComponentChanged
in interface TabPaneListener
infoComponentChanged
in class AbstractTabLayoutManagerPane
pane
- the source of this eventoldInfo
- the old info component, may be null
newInfo
- the new info component, may be null