public class BasicGridLayout extends ConstraintLayout
Modifier and Type | Field and Description |
---|---|
protected int |
alignment |
protected int |
cols |
protected int |
colWeight |
protected int[] |
colWidths |
protected int |
fill |
protected int |
hGap |
protected int |
reqCols |
protected int |
reqRows |
protected int[] |
rowHeights |
protected int |
rows |
protected int |
rowWeight |
protected int |
vGap |
hMargin, includeInvisible, MAXIMUM, MINIMUM, PREFERRED, vMargin
Constructor and Description |
---|
BasicGridLayout() |
BasicGridLayout(int rows,
int cols) |
BasicGridLayout(int rows,
int cols,
int hGap,
int vGap) |
BasicGridLayout(int rows,
int cols,
int hGap,
int vGap,
int hMargin,
int vMargin) |
Modifier and Type | Method and Description |
---|---|
protected int |
alignmentFor(java.awt.Component c,
int row,
int col)
Override this to set alignment on a per-component basis.
|
protected void |
calcCellSizes(java.awt.Container target,
int type) |
protected int |
fillFor(java.awt.Component c,
int row,
int col)
Override this to set fill on a per-component basis.
|
int |
getAlignment() |
int |
getColumns() |
int |
getColWeight() |
protected int |
getColWeight(int col)
Override this to set weights on a per-column basis.
|
int |
getFill() |
int |
getRows() |
int |
getRowWeight() |
protected int |
getRowWeight(int row)
Override this to set weights on a per-row basis.
|
void |
measureLayout(java.awt.Container target,
java.awt.Dimension dimension,
int type) |
void |
setAlignment(int a) |
void |
setColumns(int cols) |
void |
setColWeight(int colWeight) |
void |
setFill(int f) |
void |
setRows(int rows) |
void |
setRowWeight(int rowWeight) |
protected int |
sumArray(int[] array,
int spacing,
int size) |
addLayoutComponent, addLayoutComponent, calcLayoutSize, getComponentSize, getConstraint, getIncludeInvisible, getLayoutAlignmentX, getLayoutAlignmentY, includeComponent, invalidateLayout, layoutContainer, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setConstraint, setIncludeInvisible
protected int hGap
protected int vGap
protected int rows
protected int cols
protected int reqRows
protected int reqCols
protected int[] rowHeights
protected int[] colWidths
protected int alignment
protected int fill
protected int colWeight
protected int rowWeight
public BasicGridLayout()
public BasicGridLayout(int rows, int cols)
public BasicGridLayout(int rows, int cols, int hGap, int vGap)
public BasicGridLayout(int rows, int cols, int hGap, int vGap, int hMargin, int vMargin)
public void setColumns(int cols)
public void setRows(int rows)
public int getRows()
public int getColumns()
public void setAlignment(int a)
public int getAlignment()
public void setFill(int f)
public int getFill()
public void setColWeight(int colWeight)
public int getColWeight()
public void setRowWeight(int rowWeight)
public int getRowWeight()
protected int alignmentFor(java.awt.Component c, int row, int col)
protected int fillFor(java.awt.Component c, int row, int col)
protected int getRowWeight(int row)
protected int getColWeight(int col)
protected int sumArray(int[] array, int spacing, int size)
protected void calcCellSizes(java.awt.Container target, int type)
public void measureLayout(java.awt.Container target, java.awt.Dimension dimension, int type)
measureLayout
in class ConstraintLayout