java.lang.Object
java.lang.Record
org.snapfx.dnd.DockDragService.DragHoverEvent
- Record Components:
draggedNode- currently dragged nodescreenX- pointer x-coordinate in screen spacescreenY- pointer y-coordinate in screen space
- Enclosing class:
DockDragService
public static record DockDragService.DragHoverEvent(DockNode draggedNode, double screenX, double screenY)
extends Record
Immutable callback payload emitted while drag hover coordinates update.
-
Constructor Summary
ConstructorsConstructorDescriptionDragHoverEvent(DockNode draggedNode, double screenX, double screenY) Creates an instance of aDragHoverEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedraggedNoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublescreenX()Returns the value of thescreenXrecord component.doublescreenY()Returns the value of thescreenYrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DragHoverEvent
Creates an instance of aDragHoverEventrecord class.- Parameters:
draggedNode- the value for thedraggedNoderecord componentscreenX- the value for thescreenXrecord componentscreenY- the value for thescreenYrecord 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 '=='. -
draggedNode
Returns the value of thedraggedNoderecord component.- Returns:
- the value of the
draggedNoderecord component
-
screenX
public double screenX()Returns the value of thescreenXrecord component.- Returns:
- the value of the
screenXrecord component
-
screenY
public double screenY()Returns the value of thescreenYrecord component.- Returns:
- the value of the
screenYrecord component
-