public class GridBagLayout extends java.lang.Object implements LayoutManager2
| Modifier and Type | Field and Description |
|---|---|
double[] |
columnWeights
This field is not used in the CHARVA package but is present to allow
compile-time compatibility with AWT.
|
int[] |
columnWidths
This field holds the overrides to the column minimum widths.
|
int[] |
rowHeights
This field holds the overrides to the row minimum heights.
|
double[] |
rowWeights
This field is not used in the CHARVA package but is present to allow
compile-time compatibility with AWT.
|
| Constructor and Description |
|---|
GridBagLayout() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(Component component_,
java.lang.Object constraint_) |
void |
doLayout(Container container_)
Set the positions of the contained components.
|
void |
invalidateLayout(Container target_)
Invalidates the layout, indicating that if the layout manager has cached
information it should be discarded.
|
Dimension |
minimumSize(Container container_)
Calculate the geometry for the specified list of Components,
and return the size of the rectangle that encloses all the
Components.
|
public int[] columnWidths
public int[] rowHeights
public double[] columnWeights
public double[] rowWeights
public Dimension minimumSize(Container container_)
minimumSize in interface LayoutManagerpublic void doLayout(Container container_)
doLayout in interface LayoutManagerpublic void addLayoutComponent(Component component_, java.lang.Object constraint_)
addLayoutComponent in interface LayoutManager2public void invalidateLayout(Container target_)
invalidateLayout in interface LayoutManager2