public class LayoutGap extends java.lang.Object implements LayoutComponent
| Constructor and Description |
|---|
LayoutGap(java.awt.Dimension dimension)
Create a LayoutGap with the supplied minimum dimensions.
|
LayoutGap(int width,
int height)
Create a LayoutGap using by supplying the width and height, this
creates a new dimension.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToPanel(java.awt.Container container,
int baseRow,
int baseColumn,
boolean[] rowConstraints,
boolean[] columnConstraints,
int rowSpan)
The gap is added at the specified position, as
a non-resizable single celled panel.
|
void |
areColumnsResizable(boolean[] columnConstraints,
int baseColumn)
Gaps have no effect on column constraints.
|
void |
areRowsResizable(boolean[] rowConstraints,
int baseRow,
int rowSpan)
Gaps have no effect on row constraints.
|
int |
getColumnCount()
Gaps always occupy a single column.
|
int |
getRowCount()
Gaps always occupy a single row.
|
public LayoutGap(java.awt.Dimension dimension)
dimension - minimum size of gap, must not be nullpublic LayoutGap(int width,
int height)
public void areRowsResizable(boolean[] rowConstraints,
int baseRow,
int rowSpan)
areRowsResizable in interface LayoutComponentrowConstraints - the out parameterbaseRow - the position to start from in the rowConstraintsrowSpan - the length of the rowConstraints which can be
changedpublic void areColumnsResizable(boolean[] columnConstraints,
int baseColumn)
areColumnsResizable in interface LayoutComponentpublic int getColumnCount()
getColumnCount in interface LayoutComponentpublic int getRowCount()
getRowCount in interface LayoutComponentpublic void addToPanel(java.awt.Container container,
int baseRow,
int baseColumn,
boolean[] rowConstraints,
boolean[] columnConstraints,
int rowSpan)
addToPanel in interface LayoutComponentcontainer - the container to add tobaseRow - components must be added relative to thisbaseColumn - components must be added relative to thisrowConstraints - whether each row is resizable or not, these
are for the whole containercolumnConstraints - same as rowConstraints but for columnsrowSpan - the number of rows which the LayoutComponent occupies
this will be at least equal to the LayoutComponent's row count