Record Class CopiedLinkLayout
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.canvas.datastruct.CopiedLinkLayout
- Record Components:
bendPoints- points in canvas coordinatesnameLabelPosition- name label position value used by the operation
public record CopiedLinkLayout(List<Point2D.Double> bendPoints, Point2D.Double nameLabelPosition)
extends Record
Link layout data stored in the clipboard snapshot.
-
Constructor Summary
ConstructorsConstructorDescriptionCopiedLinkLayout(List<Point2D.Double> bendPoints, Point2D.Double nameLabelPosition) Creates an instance of aCopiedLinkLayoutrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebendPointsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenameLabelPositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CopiedLinkLayout
Creates an instance of aCopiedLinkLayoutrecord class.- Parameters:
bendPoints- the value for thebendPointsrecord componentnameLabelPosition- the value for thenameLabelPositionrecord 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). -
bendPoints
Returns the value of thebendPointsrecord component.- Returns:
- the value of the
bendPointsrecord component
-
nameLabelPosition
Returns the value of thenameLabelPositionrecord component.- Returns:
- the value of the
nameLabelPositionrecord component
-