public class ColumnLayout<O extends OutputManager<?>> extends java.lang.Object implements LayoutManager<O>
Modifier and Type | Field and Description |
---|---|
private int |
alignParam
This value is dependent from the alignment type.
|
private boolean |
attr_space
This field tracks container's ATTR-SPACE attribute.
|
private int |
columns
The number of columns requested to widget representation.
|
private boolean |
labels
This field tracks container's NO-LABELS attribute.
|
Constructor and Description |
---|
ColumnLayout(int columns)
Creates the new instance of the LayoutManager with the given number of
the columns.
|
Modifier and Type | Method and Description |
---|---|
private Dimension |
calcLayout(Container<O> container,
boolean doPlacement)
Perform actual layout calculations and placement.
|
void |
doLayout(Container<O> container)
Makes the widgets coordinates recalculation based on the current columns
requirement.
|
Dimension |
minimumSize(Container<O> container)
Calculates the minimum size of the container which will be big enough to
hold all widgets.
|
private int columns
private int alignParam
private boolean labels
private boolean attr_space
public ColumnLayout(int columns)
columns
- The number of the columns to be presented inside the container.public void doLayout(Container<O> container)
doLayout
in interface LayoutManager<O extends OutputManager<?>>
container
- The container to which this LayoutManager should be applied.public Dimension minimumSize(Container<O> container)
minimumSize
in interface LayoutManager<O extends OutputManager<?>>
container
- The container which size should be calculated.