Class ExtendedGridBagConstraints

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class ExtendedGridBagConstraints
    extends java.awt.GridBagConstraints
    This class extends the java.awt.GridBagConstraints in order to provide some utility methods.
    Version:
    $Id: ExtendedGridBagConstraints.java 1733416 2016-03-03 07:07:13Z gadams $
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.awt.GridBagConstraints

        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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setGridBounds​(int x, int y, int width, int height)
      Modifies gridx, gridy, gridwidth, gridheight.
      void setWeight​(double weightx, double weighty)
      Modifies the weightx and weighty.
      • Methods inherited from class java.awt.GridBagConstraints

        clone
      • Methods inherited from class java.lang.Object

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

      • ExtendedGridBagConstraints

        public ExtendedGridBagConstraints()
    • Method Detail

      • setGridBounds

        public void setGridBounds​(int x,
                                  int y,
                                  int width,
                                  int height)
        Modifies gridx, gridy, gridwidth, gridheight.
        Parameters:
        x - The value for gridx.
        y - The value for gridy.
        width - The value for gridwidth.
        height - The value for gridheight.
      • setWeight

        public void setWeight​(double weightx,
                              double weighty)
        Modifies the weightx and weighty.
        Parameters:
        weightx - The value for weightx
        weighty - The value for weighty