public class GridBagConstraints extends Object implements Cloneable, Serializable
Modifier and Type | Field and Description |
---|---|
int |
anchor |
static int |
BOTH
Fill in both directions.
|
static int |
CENTER
Position in the center.
|
static int |
EAST
Position to the east.
|
int |
fill |
static int |
FIRST_LINE_END
Position to where the first text line would end.
|
static int |
FIRST_LINE_START
Position to where the first text line would start.
|
int |
gridheight |
int |
gridwidth |
int |
gridx |
int |
gridy |
static int |
HORIZONTAL
Fill horizontally.
|
Insets |
insets |
int |
ipadx |
int |
ipady |
static int |
LAST_LINE_END
Position to where the last text line would end.
|
static int |
LAST_LINE_START
Position to where the last text line would start.
|
static int |
LINE_END
Position to where a text line would end.
|
static int |
LINE_START
Position to where a text line would start.
|
static int |
NONE
Don't fill.
|
static int |
NORTH
Position to the north.
|
static int |
NORTHEAST
Position to the northeast.
|
static int |
NORTHWEST
Position to the northwest.
|
static int |
PAGE_END
Position to where a page ends.
|
static int |
PAGE_START
Position to where a page starts.
|
static int |
RELATIVE
Occupy all remaining cells except last cell.
|
static int |
REMAINDER
Occupy all remaining cells.
|
static int |
SOUTH
Position to the south.
|
static int |
SOUTHEAST
Position to the southeast.
|
static int |
SOUTHWEST
Position to the southwest.
|
static int |
VERTICAL
Fill vertically.
|
double |
weightx |
double |
weighty |
static int |
WEST
Position to the west.
|
Constructor and Description |
---|
GridBagConstraints()
Create a new GridBagConstraints object with the default
parameters.
|
GridBagConstraints(int gridx,
int gridy,
int gridwidth,
int gridheight,
double weightx,
double weighty,
int anchor,
int fill,
Insets insets,
int ipadx,
int ipady)
Create a new GridBagConstraints object with the indicated
parameters.
|
public static final int NONE
public static final int BOTH
public static final int HORIZONTAL
public static final int VERTICAL
public static final int CENTER
public static final int NORTH
public static final int NORTHEAST
public static final int EAST
public static final int SOUTHEAST
public static final int SOUTH
public static final int SOUTHWEST
public static final int WEST
public static final int NORTHWEST
public static final int RELATIVE
public static final int REMAINDER
public static final int PAGE_START
public static final int PAGE_END
public static final int LINE_START
public static final int LINE_END
public static final int FIRST_LINE_START
public static final int FIRST_LINE_END
public static final int LAST_LINE_START
public static final int LAST_LINE_END
public int anchor
public int fill
public int gridheight
public int gridwidth
public int gridx
public int gridy
public int ipadx
public int ipady
public double weightx
public double weighty
public GridBagConstraints()
public GridBagConstraints(int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int anchor, int fill, Insets insets, int ipadx, int ipady)