public class DefaultMenuLineLayoutStrategy extends Object implements MenuLineLayoutStrategy
MenuLineLayoutStrategy provides a generic
setting that should work for most cases.| Constructor and Description |
|---|
DefaultMenuLineLayoutStrategy() |
| Modifier and Type | Method and Description |
|---|---|
double |
getScore(MenuLineLayoutPossibility possibility,
Size menuSize,
Size infoSize,
Size tabSize)
Calculates how good a layout with the given sizes is.
|
public double getScore(MenuLineLayoutPossibility possibility, Size menuSize, Size infoSize, Size tabSize)
MenuLineLayoutStrategySize.getScore(). MenuLineLayout will create
different combinations of Size, call this method, and use the one combination
with the highest score.getScore in interface MenuLineLayoutStrategypossibility - a description of the layout that might be appliedmenuSize - the size of the menu, can be null if the menu is now showninfoSize - the size of the info-component, can be null if the component is not showntabSize - the size of the tabs, can be null if there are no tabs0.0 and 1.0Copyright © 2017 Docking Frames. All rights reserved.