public class MenuLineLayoutPossibility
extends java.lang.Object
MenuLineLayout
.Constructor and Description |
---|
MenuLineLayoutPossibility(MenuLineLayoutPane pane,
Size tab,
Size menu,
Size info)
Creates a new layout.
|
Modifier and Type | Method and Description |
---|---|
void |
apply()
Applies the sizes specified in this layout.
|
MenuLineLayoutPane |
getPane()
Gets the representation of the
TabPane for which which possible layout
is evaluated. |
double |
getScore()
Tells how good this layout is.
|
java.awt.Dimension |
getSize()
Gets the size this layout requires, this
Dimension does not include the preferred or minimal size
required for the tab pane . |
boolean |
isPreferred()
Tells whether this layout shows all items with their preferred size.
|
java.lang.String |
toString() |
public MenuLineLayoutPossibility(MenuLineLayoutPane pane, Size tab, Size menu, Size info)
pane
- the TabPane
for which this possible layout is checkedtab
- the size of the tabs, not null
menu
- the size of the menu, may be null
to indicate
that the menu is invisibleinfo
- the size of the info panel, may be null
if
there is no info panel to showpublic java.lang.String toString()
toString
in class java.lang.Object
public double getScore()
1.0
, the layout which does not
show anything has a score of 0.0
.public boolean isPreferred()
public MenuLineLayoutPane getPane()
TabPane
for which which possible layout
is evaluated.null
public java.awt.Dimension getSize()
Dimension
does not include the preferred or minimal size
required for the tab pane
.public void apply()