Record Class DividerBorder.Constraints

java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.designer.gui.border.DividerBorder.Constraints
Enclosing class:
DividerBorder

public static record DividerBorder.Constraints(int start, int end, int outerPadding, int innerPadding, boolean drawLine) extends Record
  • Field Details

  • Constructor Details

    • Constraints

      public Constraints(int start, int end, int outerPadding, int innerPadding, boolean drawLine)
      Creates an instance of a Constraints record class.
      Parameters:
      start - the value for the start record component
      end - the value for the end record component
      outerPadding - the value for the outerPadding record component
      innerPadding - the value for the innerPadding record component
      drawLine - the value for the drawLine record component
  • Method Details

    • getInset

      public int getInset()
    • create

      public static DividerBorder.Constraints create(int outer, int inner)
    • create

      public static DividerBorder.Constraints create(int outerPadding, int innerPadding, boolean drawLine)
    • create

      public static DividerBorder.Constraints create(int outerPadding, int innerPadding, int start, int end)
    • create

      public static DividerBorder.Constraints create(int outerPadding, int innerPadding, int start, int end, boolean drawLine)
    • createFrom

      public static DividerBorder.Constraints createFrom(List<Integer> list, boolean drawLine)
    • fromString

      public static DividerBorder.Constraints fromString(String constraints)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • start

      public int start()
      Returns the value of the start record component.
      Returns:
      the value of the start record component
    • end

      public int end()
      Returns the value of the end record component.
      Returns:
      the value of the end record component
    • outerPadding

      public int outerPadding()
      Returns the value of the outerPadding record component.
      Returns:
      the value of the outerPadding record component
    • innerPadding

      public int innerPadding()
      Returns the value of the innerPadding record component.
      Returns:
      the value of the innerPadding record component
    • drawLine

      public boolean drawLine()
      Returns the value of the drawLine record component.
      Returns:
      the value of the drawLine record component