Class GridBagHelper


  • public class GridBagHelper
    extends java.lang.Object
    DOCUMENT-ME
    Version:
    $Revision: 171 $
    Author:
    $Author: $
    • Constructor Summary

      Constructors 
      Constructor Description
      GridBagHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.GridBagConstraints setConstraints​(java.awt.GridBagConstraints constraints, int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int anchor, int fill, java.awt.Insets insets, int ipadx, int ipady)
      Sets the constraints for the given constraints object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GridBagHelper

        public GridBagHelper()
    • Method Detail

      • setConstraints

        public static java.awt.GridBagConstraints setConstraints​(java.awt.GridBagConstraints constraints,
                                                                 int gridx,
                                                                 int gridy,
                                                                 int gridwidth,
                                                                 int gridheight,
                                                                 double weightx,
                                                                 double weighty,
                                                                 int anchor,
                                                                 int fill,
                                                                 java.awt.Insets insets,
                                                                 int ipadx,
                                                                 int ipady)
        Sets the constraints for the given constraints object. Helper function to be able to reuse a constraints object.
        Parameters:
        constraints - the constraints object to initialize.
        gridx - the initial gridx value.
        gridy - the initial gridy value.
        gridwidth - the initial gridwidth value.
        gridheight - the initial gridheight value.
        weightx - the initial weightx value.
        weighty - the initial weighty value.
        anchor - the initial anchor value.
        fill - the initial fill value.
        insets - the initial insets value.
        ipadx - the initial ipadx value.
        ipady - the initial ipady value.
        Returns:
        the initialized constraints object.