Record Class DraggedLayout
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.canvas.datastruct.DraggedLayout
- Record Components:
layout- layout object to read or updatestartX- numeric start x valuestartY- numeric start y value
Original node layout captured when a drag operation starts.
-
Constructor Summary
ConstructorsConstructorDescriptionDraggedLayout(NodeLayout layout, double startX, double startY) Creates an instance of aDraggedLayoutrecord 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.layout()Returns the value of thelayoutrecord component.doublestartX()Returns the value of thestartXrecord component.doublestartY()Returns the value of thestartYrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
layout
Returns the value of thelayoutrecord component.- Returns:
- the value of the
layoutrecord component
-
startX
public double startX()Returns the value of thestartXrecord component.- Returns:
- the value of the
startXrecord component
-
startY
public double startY()Returns the value of thestartYrecord component.- Returns:
- the value of the
startYrecord component
-