Record Class GraphColors.RowColors
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.app.graph.GraphColors.RowColors
- Enclosing class:
GraphColors
public static record GraphColors.RowColors(javafx.scene.paint.Color[] lin, javafx.scene.paint.Color node, javafx.scene.paint.Color[] targets)
extends Record
What the painter needs for one row: the colour of every lane entering, of the node, and of every parent edge.
-
Constructor Summary
ConstructorsConstructorDescriptionRowColors(javafx.scene.paint.Color[] lin, javafx.scene.paint.Color node, javafx.scene.paint.Color[] targets) Creates an instance of aRowColorsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.javafx.scene.paint.Color[]lin()Returns the value of thelinrecord component.javafx.scene.paint.Colornode()Returns the value of thenoderecord component.javafx.scene.paint.Color[]targets()Returns the value of thetargetsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RowColors
public RowColors(javafx.scene.paint.Color[] lin, javafx.scene.paint.Color node, javafx.scene.paint.Color[] targets) Creates an instance of aRowColorsrecord class.- Parameters:
lin- the value for thelinrecord componentnode- the value for thenoderecord componenttargets- the value for thetargetsrecord component
-
-
Method Details
-
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 withObjects::equals(Object,Object). -
lin
public javafx.scene.paint.Color[] lin()Returns the value of thelinrecord component.- Returns:
- the value of the
linrecord component
-
node
public javafx.scene.paint.Color node()Returns the value of thenoderecord component.- Returns:
- the value of the
noderecord component
-
targets
public javafx.scene.paint.Color[] targets()Returns the value of thetargetsrecord component.- Returns:
- the value of the
targetsrecord component
-