Record Class DraggedSelection
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.canvas.datastruct.DraggedSelection
- Record Components:
layouts- layout objects to read or modifyoffsetX- numeric offset x valueoffsetY- numeric offset y valueanchorStartX- numeric anchor start x valueanchorStartY- numeric anchor start y value
public record DraggedSelection(List<DraggedLayout> layouts, double offsetX, double offsetY, double anchorStartX, double anchorStartY)
extends Record
Selection state captured while selected elements are dragged.
-
Constructor Summary
ConstructorsConstructorDescriptionDraggedSelection(List<DraggedLayout> layouts, double offsetX, double offsetY, double anchorStartX, double anchorStartY) Creates an instance of aDraggedSelectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theanchorStartXrecord component.doubleReturns the value of theanchorStartYrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.layouts()Returns the value of thelayoutsrecord component.doubleoffsetX()Returns the value of theoffsetXrecord component.doubleoffsetY()Returns the value of theoffsetYrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DraggedSelection
public DraggedSelection(List<DraggedLayout> layouts, double offsetX, double offsetY, double anchorStartX, double anchorStartY) Creates an instance of aDraggedSelectionrecord class.- Parameters:
layouts- the value for thelayoutsrecord componentoffsetX- the value for theoffsetXrecord componentoffsetY- the value for theoffsetYrecord componentanchorStartX- the value for theanchorStartXrecord componentanchorStartY- the value for theanchorStartYrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
layouts
Returns the value of thelayoutsrecord component.- Returns:
- the value of the
layoutsrecord component
-
offsetX
public double offsetX()Returns the value of theoffsetXrecord component.- Returns:
- the value of the
offsetXrecord component
-
offsetY
public double offsetY()Returns the value of theoffsetYrecord component.- Returns:
- the value of the
offsetYrecord component
-
anchorStartX
public double anchorStartX()Returns the value of theanchorStartXrecord component.- Returns:
- the value of the
anchorStartXrecord component
-
anchorStartY
public double anchorStartY()Returns the value of theanchorStartYrecord component.- Returns:
- the value of the
anchorStartYrecord component
-