All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.awt.GridBagConstraints
GridBagConstraints class specifies constraints 
 for components that are laid out using the 
 GridBagLayout class.
 
 anchor
	anchor
   BOTH
	BOTH
   CENTER
	CENTER
   EAST
	EAST
   fill
	fill
   gridheight
	gridheight
   gridwidth
	gridwidth
   gridx
	gridx
  gridx = 0.
   gridy
	gridy
  gridy = 0.
   HORIZONTAL
	HORIZONTAL
   insets
	insets
   ipadx
	ipadx
   ipady
	ipady
   NONE
	NONE
   NORTH
	NORTH
   NORTHEAST
	NORTHEAST
   NORTHWEST
	NORTHWEST
   RELATIVE
	RELATIVE
  gridwidth, gridheight), 
 or that this component be placed next to the previously added 
 component (gridx, gridy).
   REMAINDER
	REMAINDER
   SOUTH
	SOUTH
   SOUTHEAST
	SOUTHEAST
   SOUTHWEST
	SOUTHWEST
   VERTICAL
	VERTICAL
   weightx
	weightx
   weighty
	weighty
   WEST
	WEST
   
 GridBagConstraints()
	GridBagConstraints()
  GridBagConstraint object with 
 all of its fields set to their default value.
 
 clone()
	clone()
   
 RELATIVE
RELATIVE
public static final int RELATIVE
gridwidth, gridheight), 
 or that this component be placed next to the previously added 
 component (gridx, gridy).
 REMAINDER
REMAINDER
public static final int REMAINDER
 NONE
NONE
public static final int NONE
 BOTH
BOTH
public static final int BOTH
 HORIZONTAL
HORIZONTAL
public static final int HORIZONTAL
 VERTICAL
VERTICAL
public static final int VERTICAL
 CENTER
CENTER
public static final int CENTER
 NORTH
NORTH
public static final int NORTH
 NORTHEAST
NORTHEAST
public static final int NORTHEAST
 EAST
EAST
public static final int EAST
 SOUTHEAST
SOUTHEAST
public static final int SOUTHEAST
 SOUTH
SOUTH
public static final int SOUTH
 SOUTHWEST
SOUTHWEST
public static final int SOUTHWEST
 WEST
WEST
public static final int WEST
 NORTHWEST
NORTHWEST
public static final int NORTHWEST
 gridx
gridx
public int gridx
gridx = 0. The value 
 RELATIVE specifies that the component be placed just 
 to the right of the component that was added to the container just 
 before this component was added. 
 
 The default value is RELATIVE.
 gridy
gridy
public int gridy
gridy = 0. The value 
 RELATIVE specifies that the component be placed just 
 below the component that was added to the container just before 
 this component was added. 
 
 The default value is RELATIVE.
 gridwidth
gridwidth
public int gridwidth
 Use REMAINDER to specify that the component be the 
 last one in its row. Use RELATIVE to specify that the 
 component be the next-to-last one in its row. 
 
The default value is 1.
 gridheight
gridheight
public int gridheight
 Use REMAINDER to specify that the component be the 
 last one in its column. Use RELATIVE to specify that 
 the component be the next-to-last one in its column. 
 
The default value is 1.
 weightx
weightx
public double weightx
 The grid bag layout manager calculates the weight of a column to 
 be the maximum weighty of all the components in a 
 row. If the resulting layout is smaller horizontally than the area 
 it needs to fill, the extra space is distributed to each column in 
 proportion to its weight. A column that has a weight zero receives no 
 extra space. 
 
If all the weights are zero, all the extra space appears between the grids of the cell and the left and right edges.
 The default value of this field is 0.
 weighty
weighty
public double weighty
 The grid bag layout manager calculates the weight of a row to be 
 the maximum weightx of all the components in a row. 
 If the resulting layout is smaller vertically than the area it 
 needs to fill, the extra space is distributed to each row in 
 proportion to its weight. A row that has a weight of zero receives no 
 extra space. 
 
If all the weights are zero, all the extra space appears between the grids of the cell and the top and bottom edges.
 The default value of this field is 0.
 anchor
anchor
public int anchor
CENTER, 
 NORTH, NORTHEAST, EAST, 
 SOUTHEAST, SOUTH, SOUTHWEST, 
 WEST, and NORTHWEST.
 The default value is CENTER.
 fill
fill
public int fill
 The following values are valid for fill: 
 
NONE: Do not resize the component. 
 HORIZONTAL: Make the component wide enough to fill 
         its display area horizontally, but do not change its height. 
 VERTICAL: Make the component tall enough to fill its 
         display area vertically, but do not change its width. 
 BOTH: Make the component fill its display area 
         entirely. 
 
 The default value is NONE.
 insets
insets
public Insets insets
 The default value is new Insets(0, 0, 0, 0).
 ipadx
ipadx
public int ipadx
(ipadx * 2) pixels. 
 
 The default value is 0.
 ipady
ipady
public int ipady
(ipady * 2) pixels. 
 The default value is 0.
 
 GridBagConstraints
GridBagConstraints
public GridBagConstraints()
GridBagConstraint object with 
 all of its fields set to their default value.
 
 clone
clone
public Object clone()
All Packages Class Hierarchy This Package Previous Next Index