public class MenuLineLayoutPossibility extends 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.
|
Dimension |
getSize()
|
boolean |
isPreferred()
Tells whether this layout shows all items with their preferred size.
|
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 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 Dimension getSize()
Dimension
does not include the preferred or minimal size
required for the tab pane
.public void apply()