The GridBagConstraints class provides the means to control the layout of components within a Container whose LayoutManager is GridBagLayout.
public class java.awt.GridBagConstraints extends java.lang.Object implements java.lang.Cloneable, java.io.Serializable { // Constants public final static int BOTH; public final static int CENTER; public final static int EAST; public final static int HORIZONTAL; public final static int NONE; public final static int NORTH; public final static int NORTHEAST; public final static int NORTHWEST; public final static int RELATIVE; public final static int REMAINDER; public final static int SOUTH; public final static int SOUTHEAST; public final static int SOUTHWEST; public final static int VERTICAL; public final static int WEST; // Variables public int anchor; public int fill; public int gridheight; public int gridwidth; public int gridx; public int gridy; public Insets insets; public int ipadx; public int ipady; public double weightx public double weighty // Constructors public GridBagConstraints(); // Instance Methods public Object clone(); }
Constant for possible fill value.
Constant for possible anchor value.
Constant for possible anchor value.
Constant for possible fill value.
Constant for possible fill value.
Constant for possible anchor value.
Constant for possible anchor value.
Constant for possible anchor value.
Constant for possible gridx, gridy, gridwidth, or gridheight value.
Constant for possible gridwidth or gridheight value.
Constant for possible anchor value.
Constant for possible anchor value.
Constant for possible anchor value.
Constant for possible fill value.
Constant for possible anchor value.
Specifies the alignment of the component in the event that it is smaller than the space allotted for it by the layout manager; e.g., CENTER centers the object within the region.
The component's resize policy if additional space available.
Number of columns a component occupies.
Number of rows a component occupies.
Horizontal grid position at which to add component.
Vertical grid position at which to add component.
Specifies the outer padding around the component.
Serves as the internal padding within the component in both the right and left directions.
Serves as the internal padding within the component in both the top and bottom directions.
Represents the percentage of extra horizontal space that will be given to this component if there is additional space available within the container.
Represents the percentage of extra vertical space that will be given to this component if there is additional space available within the container.
Constructs a GridBagConstraints object.
A new instance of GridBagConstraints with same values for constraints.
Object.clone()
Cloneable, GridBagLayout, Insets, Object, Serializable
This HTML Help has been published using the chm2web software. |