java.awt
public class GridBagLayout extends Object implements Serializable, LayoutManager2
| Field Summary | |
|---|---|
| double[] | columnWeights |
| int[] | columnWidths |
| protected Hashtable<Component,GridBagConstraints> | comptable |
| protected GridBagConstraints | defaultConstraints |
| protected GridBagLayoutInfo | layoutInfo |
| protected static int | MAXGRIDSIZE |
| protected static int | MINSIZE |
| protected static int | PREFERREDSIZE |
| int[] | rowHeights |
| double[] | rowWeights |
| Constructor Summary | |
|---|---|
| GridBagLayout() | |
| Method Summary | |
|---|---|
| protected void | AdjustForGravity(GridBagConstraints constraints, Rectangle r)
Move and resize a rectangle according to a set of grid bag
constraints. |
| protected void | ArrangeGrid(Container parent)
Obsolete. |
| void | addLayoutComponent(String name, Component component) |
| void | addLayoutComponent(Component component, Object constraints) |
| protected void | adjustForGravity(GridBagConstraints constraints, Rectangle r)
Move and resize a rectangle according to a set of grid bag
constraints. |
| protected void | arrangeGrid(Container parent) |
| GridBagConstraints | getConstraints(Component component) |
| float | getLayoutAlignmentX(Container target) |
| float | getLayoutAlignmentY(Container target) |
| int[][] | getLayoutDimensions() |
| protected GridBagLayoutInfo | getLayoutInfo(Container parent, int sizeflag) |
| Point | getLayoutOrigin() |
| double[][] | getLayoutWeights() |
| protected Dimension | getMinSize(Container parent, GridBagLayoutInfo info) |
| protected GridBagLayoutInfo | GetLayoutInfo(Container parent, int sizeflag)
Obsolete. |
| protected Dimension | GetMinSize(Container parent, GridBagLayoutInfo info)
Obsolete. |
| void | invalidateLayout(Container target) |
| void | layoutContainer(Container parent) |
| Point | location(int x, int y) |
| protected GridBagConstraints | lookupConstraints(Component component) |
| Dimension | maximumLayoutSize(Container target) |
| Dimension | minimumLayoutSize(Container parent) |
| Dimension | preferredLayoutSize(Container parent) |
| void | removeLayoutComponent(Component component) |
| void | setConstraints(Component component, GridBagConstraints constraints) |
| String | toString()
Return a string representation of this GridBagLayout.
|
Parameters: constraints position and size constraints r rectangle to be moved and resized
Parameters: constraints position and size constraints r rectangle to be moved and resized
Since: 1.4
Since: 1.4
Since: 1.1
Since: 1.4
Since: 1.1
Since: 1.4
Since: 1.1
Returns: a string representation