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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstraints(int start, int end, int outerPadding, int innerPadding, boolean drawLine) Creates an instance of aConstraintsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DividerBorder.Constraintscreate(int outer, int inner) static DividerBorder.Constraintscreate(int outerPadding, int innerPadding, boolean drawLine) static DividerBorder.Constraintscreate(int outerPadding, int innerPadding, int start, int end) static DividerBorder.Constraintscreate(int outerPadding, int innerPadding, int start, int end, boolean drawLine) static DividerBorder.ConstraintscreateFrom(List<Integer> list, boolean drawLine) booleandrawLine()Returns the value of thedrawLinerecord component.intend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.static DividerBorder.ConstraintsfromString(String constraints) intgetInset()final inthashCode()Returns a hash code value for this object.intReturns the value of theinnerPaddingrecord component.intReturns the value of theouterPaddingrecord component.intstart()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Constraints
public Constraints(int start, int end, int outerPadding, int innerPadding, boolean drawLine) Creates an instance of aConstraintsrecord class.- Parameters:
start- the value for thestartrecord componentend- the value for theendrecord componentouterPadding- the value for theouterPaddingrecord componentinnerPadding- the value for theinnerPaddingrecord componentdrawLine- the value for thedrawLinerecord component
-
-
Method Details
-
getInset
public int getInset() -
create
-
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
-
fromString
-
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. -
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. -
equals
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 '=='. -
start
public int start()Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
public int end()Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
outerPadding
public int outerPadding()Returns the value of theouterPaddingrecord component.- Returns:
- the value of the
outerPaddingrecord component
-
innerPadding
public int innerPadding()Returns the value of theinnerPaddingrecord component.- Returns:
- the value of the
innerPaddingrecord component
-
drawLine
public boolean drawLine()Returns the value of thedrawLinerecord component.- Returns:
- the value of the
drawLinerecord component
-