public class GridBagConstraints
extends java.awt.GridBagConstraints
GridBagConstraints providing more convenient constructors.| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_GRID_HEIGHT |
protected static int |
DEFAULT_GRID_WIDTH
Default values for additional convenient constructors.
|
protected static java.awt.Insets |
DEFAULT_INSETS |
protected static int |
DEFAULT_IPAD_X |
protected static int |
DEFAULT_IPAD_Y |
protected static double |
DEFAULT_WEIGHT_X |
protected static double |
DEFAULT_WEIGHT_Y |
ABOVE_BASELINE, ABOVE_BASELINE_LEADING, ABOVE_BASELINE_TRAILING, anchor, BASELINE, BASELINE_LEADING, BASELINE_TRAILING, BELOW_BASELINE, BELOW_BASELINE_LEADING, BELOW_BASELINE_TRAILING, BOTH, CENTER, EAST, fill, FIRST_LINE_END, FIRST_LINE_START, gridheight, gridwidth, gridx, gridy, HORIZONTAL, insets, ipadx, ipady, LAST_LINE_END, LAST_LINE_START, LINE_END, LINE_START, NONE, NORTH, NORTHEAST, NORTHWEST, PAGE_END, PAGE_START, RELATIVE, REMAINDER, SOUTH, SOUTHEAST, SOUTHWEST, VERTICAL, weightx, weighty, WEST| Constructor and Description |
|---|
GridBagConstraints()
Creates a
java.awt.GridBagConstraints object with all of its fields set to the passed-in arguments. |
GridBagConstraints(int gridx,
int gridy)
Creates a
java.awt.GridBagConstraints object with all of its fields set to the passed-in arguments. |
GridBagConstraints(int gridx,
int gridy,
int fill)
Creates a
java.awt.GridBagConstraints object with all of its fields set to the passed-in arguments. |
GridBagConstraints(int gridx,
int gridy,
int gridwidth,
int gridheight,
double weightx,
double weighty,
int fill)
Creates a
java.awt.GridBagConstraints object with all of its fields set to the passed-in arguments. |
GridBagConstraints(int gridx,
int gridy,
int gridwidth,
int gridheight,
double weightx,
double weighty,
int anchor,
int fill,
java.awt.Insets insets,
int ipadx,
int ipady)
Creates a
java.awt.GridBagConstraints object with all of its fields set to the passed-in arguments. |
GridBagConstraints(int gridx,
int gridy,
int gridwidth,
int gridheight,
int fill)
Creates a
java.awt.GridBagConstraints object with all of its fields set to the passed-in arguments. |
protected static final int DEFAULT_GRID_WIDTH
protected static final int DEFAULT_GRID_HEIGHT
protected static final double DEFAULT_WEIGHT_X
protected static final double DEFAULT_WEIGHT_Y
protected static final java.awt.Insets DEFAULT_INSETS
protected static final int DEFAULT_IPAD_X
protected static final int DEFAULT_IPAD_Y
public GridBagConstraints()
java.awt.GridBagConstraints object with all of its fields set to the passed-in arguments.public GridBagConstraints(int gridx,
int gridy)
java.awt.GridBagConstraints object with all of its fields set to the passed-in arguments.gridx - The initial gridx valuegridy - The initial gridy valuepublic GridBagConstraints(int gridx,
int gridy,
int fill)
java.awt.GridBagConstraints object with all of its fields set to the passed-in arguments.gridx - The initial gridx valuegridy - The initial gridy valuefill - The initial fill valuepublic GridBagConstraints(int gridx,
int gridy,
int gridwidth,
int gridheight,
int fill)
java.awt.GridBagConstraints object with all of its fields set to the passed-in arguments.gridx - The initial gridx valuegridy - The initial gridy valuegridwidth - The initial gridwidth valuegridheight - The initial gridheight valuefill - The initial fill valuepublic GridBagConstraints(int gridx,
int gridy,
int gridwidth,
int gridheight,
double weightx,
double weighty,
int fill)
java.awt.GridBagConstraints object with all of its fields set to the passed-in arguments.gridx - The initial gridx valuegridy - The initial gridy valuegridwidth - The initial gridwidth valuegridheight - The initial gridheight valueweightx - The initial weightx valueweighty - The initial weighty valuefill - The initial fill valuepublic GridBagConstraints(int gridx,
int gridy,
int gridwidth,
int gridheight,
double weightx,
double weighty,
int anchor,
int fill,
java.awt.Insets insets,
int ipadx,
int ipady)
java.awt.GridBagConstraints object with all of its fields set to the passed-in arguments.gridx - The initial gridx valuegridy - The initial gridy valuegridwidth - The initial gridwidth valuegridheight - The initial gridheight valueweightx - The initial weightx valueweighty - The initial weighty valueanchor - The initial anchor valuefill - The initial fill valueinsets - The initial insets valueipadx - The initial ipadx valueipady - The initial ipady value