Module com.dua3.utility.fx.controls
Package com.dua3.utility.fx.controls
Record Class PinBoard.PositionInItem
java.lang.Object
java.lang.Record
com.dua3.utility.fx.controls.PinBoard.PositionInItem
- Record Components:
item- The item within which the position is located.x- The x-coordinate within the item.y- The y-coordinate within the item.
- Enclosing class:
- PinBoard
The PositionInItem class represents the position within an item on a PinBoard.
It contains information about the item, as well as the x and y coordinates within the item.
This class is used for scrolling to a specific position within an item and retrieving the item at a given point.
-
Constructor Summary
ConstructorsConstructorDescriptionPositionInItem(PinBoard.Item item, double x, double y) Creates an instance of aPositionInItemrecord 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.item()Returns the value of theitemrecord component.final StringtoString()Returns a string representation of this record class.doublex()Returns the value of thexrecord component.doubley()Returns the value of theyrecord component.
-
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 '=='. -
item
Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-
x
public double x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public double y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-