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 aConstraints
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DividerBorder.Constraints
create
(int outer, int inner) static DividerBorder.Constraints
create
(int outerPadding, int innerPadding, boolean drawLine) static DividerBorder.Constraints
create
(int outerPadding, int innerPadding, int start, int end) static DividerBorder.Constraints
create
(int outerPadding, int innerPadding, int start, int end, boolean drawLine) static DividerBorder.Constraints
createFrom
(List<Integer> list, boolean drawLine) boolean
drawLine()
Returns the value of thedrawLine
record component.int
end()
Returns the value of theend
record component.final boolean
Indicates whether some other object is "equal to" this one.static DividerBorder.Constraints
fromString
(String constraints) int
getInset()
final int
hashCode()
Returns a hash code value for this object.int
Returns the value of theinnerPadding
record component.int
Returns the value of theouterPadding
record component.int
start()
Returns the value of thestart
record component.final String
toString()
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 aConstraints
record class.- Parameters:
start
- the value for thestart
record componentend
- the value for theend
record componentouterPadding
- the value for theouterPadding
record componentinnerPadding
- the value for theinnerPadding
record componentdrawLine
- the value for thedrawLine
record 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 thestart
record component.- Returns:
- the value of the
start
record component
-
end
public int end()Returns the value of theend
record component.- Returns:
- the value of the
end
record component
-
outerPadding
public int outerPadding()Returns the value of theouterPadding
record component.- Returns:
- the value of the
outerPadding
record component
-
innerPadding
public int innerPadding()Returns the value of theinnerPadding
record component.- Returns:
- the value of the
innerPadding
record component
-
drawLine
public boolean drawLine()Returns the value of thedrawLine
record component.- Returns:
- the value of the
drawLine
record component
-