GridBagConstraintsNameGridBagConstraints
DescriptionThe GridBagConstraints class provides the means to control the layout of components within a Container whose LayoutManager is GridBagLayout. Class Definition
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(); } ConstantsBOTHpublic final static int BOTHConstant for possible fill value. CENTERpublic final static int CENTERConstant for possible anchor value. EASTpublic final static int EASTConstant for possible anchor value. HORIZONTALpublic final static int HORIZONTALConstant for possible fill value. NONEpublic final static int NONEConstant for possible fill value. NORTHpublic final static int NORTHConstant for possible anchor value. NORTHEASTpublic final static int NORTHEASTConstant for possible anchor value. NORTHWESTpublic final static int NORTHWESTConstant for possible anchor value. RELATIVEpublic final static int RELATIVEConstant for possible gridx, gridy, gridwidth, or gridheight value. REMAINDERpublic final static int REMAINDERConstant for possible gridwidth or gridheight value. SOUTHpublic final static int SOUTHConstant for possible anchor value. SOUTHEASTpublic final static int SOUTHEASTConstant for possible anchor value. SOUTHWESTpublic final static int SOUTHWESTConstant for possible anchor value. VERTICALpublic final static int VERTICALConstant for possible fill value. WESTpublic final static int WESTConstant for possible anchor value. Variablesanchorpublic int anchorSpecifies 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. fillpublic int fillThe component's resize policy if additional space available. gridheightpublic int gridheightNumber of columns a component occupies. gridwidthpublic int gridwidthNumber of rows a component occupies. gridxpublic int gridxHorizontal grid position at which to add component. gridypublic int gridyVertical grid position at which to add component. insetspublic Insets insetsSpecifies the outer padding around the component. ipadxpublic int ipadxServes as the internal padding within the component in both the right and left directions. ipadypublic int ipadyServes as the internal padding within the component in both the top and bottom directions. weightxpublic double weightxRepresents the percentage of extra horizontal space that will be given to this component if there is additional space available within the container. weightypublic double weightyRepresents the percentage of extra vertical space that will be given to this component if there is additional space available within the container. ConstructorsGridBagConstraintspublic GridBagConstraints()
Instance Methodsclonepublic Object clone()
See AlsoCloneable, GridBagLayout, Insets, Object, Serializable |
|