public class OptimalSizeLayout extends AbstractDynamicLayout<GuiOutputManager>
HasOptimalSize
.AbstractDynamicLayout.CellInfo, AbstractDynamicLayout.RowInfo, AbstractDynamicLayout.TNode
baseUnits, config, container, isAdm, MIN_CELL_HEIGHT, MIN_CELL_WIDTH, rootNode
Modifier | Constructor and Description |
---|---|
protected |
OptimalSizeLayout(Container container)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
doLayout()
Performs the actual layout.
|
private double |
getMaxRowWidth(AbstractDynamicLayout.TNode container)
Returns maximum width of a layout-row of widgets of the supplied container.
|
buildTree, compareTrees, isDynamicWidget, parseColumns, parseRows, parseRows, setWidgetSize
protected OptimalSizeLayout(Container container)
container
- The container this instance will layout.public void doLayout()
doLayout
in class AbstractDynamicLayout<GuiOutputManager>
private double getMaxRowWidth(AbstractDynamicLayout.TNode container)
container
- A widget container.