java.lang.Object
java.lang.Record
org.snapfx.floating.DockFloatingWindow.DropTarget
- Record Components:
target- resolved dock target elementposition- resolved dock positiontabIndex- resolved tab insertion index, ornulldepth- resolved target deptharea- resolved drop-zone area in square pixels
- Enclosing class:
DockFloatingWindow
public static record DockFloatingWindow.DropTarget(DockElement target, DockPosition position, Integer tabIndex, int depth, double area)
extends Record
Immutable floating drop-target resolution result.
-
Constructor Summary
ConstructorsConstructorDescriptionDropTarget(DockElement target, DockPosition position, Integer tabIndex, int depth, double area) Creates an instance of aDropTargetrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublearea()Returns the value of thearearecord component.intdepth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.position()Returns the value of thepositionrecord component.tabIndex()Returns the value of thetabIndexrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DropTarget
public DropTarget(DockElement target, DockPosition position, Integer tabIndex, int depth, double area) Creates an instance of aDropTargetrecord class.
-
-
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 '=='. -
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
tabIndex
Returns the value of thetabIndexrecord component.- Returns:
- the value of the
tabIndexrecord component
-
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
area
public double area()Returns the value of thearearecord component.- Returns:
- the value of the
arearecord component
-