Class GBC

    • Constructor Detail

      • GBC

        public GBC​(int gridx,
                   int gridy)
        Constructs a GBC with a given gridx and gridy position and all other grid bag constraint values set to the default.
        Parameters:
        gridx - the gridx position
        gridy - the gridy position
      • GBC

        public GBC​(int gridx,
                   int gridy,
                   int gridwidth,
                   int gridheight)
        Constructs a GBC with given gridx, gridy, gridwidth, gridheight and all other grid bag constraint values set to the default.
        Parameters:
        gridx - the gridx position
        gridy - the gridy position
        gridwidth - the cell span in x-direction
        gridheight - the cell span in y-direction
    • Method Detail

      • setAnchor

        public GBC setAnchor​(int anchor)
        Sets the anchor.
        Parameters:
        anchor - the anchor value
        Returns:
        this object for further modification
      • setFill

        public GBC setFill​(int fill)
        Sets the fill direction.
        Parameters:
        fill - the fill direction
        Returns:
        this object for further modification
      • setWeight

        public GBC setWeight​(double weightx,
                             double weighty)
        Sets the cell weights.
        Parameters:
        weightx - the cell weight in x-direction
        weighty - the cell weight in y-direction
        Returns:
        this object for further modification
      • setInsets

        public GBC setInsets​(int distance)
        Sets the insets of this cell.
        Parameters:
        distance - the spacing to use in all directions
        Returns:
        this object for further modification
      • setInsets

        public GBC setInsets​(int top,
                             int left,
                             int bottom,
                             int right)
        Sets the insets of this cell.
        Parameters:
        top - the spacing to use on top
        left - the spacing to use to the left
        bottom - the spacing to use on the bottom
        right - the spacing to use to the right
        Returns:
        this object for further modification
      • setIpad

        public GBC setIpad​(int ipadx,
                           int ipady)
        Sets the internal padding
        Parameters:
        ipadx - the internal padding in x-direction
        ipady - the internal padding in y-direction
        Returns:
        this object for further modification