Record Class ParameterChipLayout
java.lang.Object
java.lang.Record
org.cyclops.integrateddynamics.core.logicprogrammer.client.ParameterChipLayout
- Record Components:
chips- The x, y and width of the chip of each shown parameter, which are the first ones.more- The x, y and width of the chip of the parameters that are left out, or null if all are shown.- The x, y and width of the button to add a parameter.
-
Constructor Summary
ConstructorsConstructorDescriptionParameterChipLayout(List<int[]> chips, int[] more, int[] button) Creates an instance of aParameterChipLayoutrecord class. -
Method Summary
Modifier and TypeMethodDescriptionint[]button()Returns the value of thebuttonrecord component.List<int[]> chips()Returns the value of thechipsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static ParameterChipLayoutlayout(int[] chipWidths, IntUnaryOperator moreWidth, int buttonWidth, int x, int y, int width, int rowHeight, int rows) int[]more()Returns the value of themorerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParameterChipLayout
-
-
Method Details
-
layout
public static ParameterChipLayout layout(int[] chipWidths, IntUnaryOperator moreWidth, int buttonWidth, int x, int y, int width, int rowHeight, int rows) - Parameters:
chipWidths- The width of the chip of each parameter.moreWidth- The width of the chip of the parameters that are left out, by how many there are.buttonWidth- The width of the button to add a parameter.x- The left of the rows.y- The top of the first row.width- The width of the rows.rowHeight- The distance between the tops of two rows.rows- The most rows.- Returns:
- The layout.
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
chips
-
more
-
button
-