Package javafx.scene.input
Class PickResult
java.lang.Object
javafx.scene.input.PickResult
- Author:
- Bruno Salmon
-
Constructor Summary
ConstructorDescriptionPickResult
(EventTarget target, double sceneX, double sceneY) Creates a pick result for a 2D case where no additional information is needed.PickResult
(Node node, Point2D point) Creates a new instance of PickResult for a non-3d-shape target. -
Method Summary
-
Constructor Details
-
PickResult
Creates a new instance of PickResult for a non-3d-shape target. Sets face to FACE_UNDEFINED and texCoord to null.- Parameters:
node
- The intersected nodepoint
- The intersected point in local coordinate of the picked Node
-
PickResult
Creates a pick result for a 2D case where no additional information is needed. Converts the given scene coordinates to the target's local coordinate space and stores the value as the intersected point. Sets intersected node to the given target, distance to 1.0, face to FACE_UNDEFINED and texCoord to null.- Parameters:
target
- The picked target (null in case of a Scene)sceneX
- The scene X coordinatesceneY
- The scene Y coordinate
-
-
Method Details
-
getIntersectedPoint
-
getIntersectedNode
-