Interface GridBagFormula

  • All Known Implementing Classes:
    FormElement

    public interface GridBagFormula
    An interface for generating GridBagConstraints.
    See Also:
    GridBagBuilder
    • Method Detail

      • getLabelConstraints

        GridBagFormula getLabelConstraints()
        Get the constraints to use for the label associated with the current component.
      • setConstraints

        java.awt.GridBagConstraints setConstraints​(java.awt.GridBagConstraints gbc)
        Apply the constraints for the current component.
        Parameters:
        gbc - the constraints to be updated
        Returns:
        the updated gbc parameter
      • get

        static GridBagFormula get​(GridBagFormula labelConstraints,
                                  int anchor,
                                  int width,
                                  int height,
                                  double weightx,
                                  double weighty,
                                  int indent)
        Create an instance of GridBagFormula.
        Parameters:
        labelConstraints - the GridBagFormula to use for the label
        anchor - the anchor position for the field
        width - the grid width for the field
        height - the grid height for the field
        weightx - the width size allocation for the field
        weighty - the height size allocation for the field
        indent - the left inset for the field
      • get

        static GridBagFormula get​(GridBagFormula labelConstraints,
                                  int anchor,
                                  int width,
                                  int height,
                                  double weightx,
                                  double weighty,
                                  java.awt.Insets insets)
        Create an instance of GridBagFormula.
        Parameters:
        labelConstraints - the GridBagFormula to use for the label
        anchor - the anchor position for the field
        width - the grid width for the field
        height - the grid height for the field
        weightx - the width size allocation for the field
        weighty - the height size allocation for the field
        insets - the insets for the field