public interface PointLocator
PointQuery objects that can be used to return a specific
point (in terms of the screen) somewhere in the bounds of the provided object.| Modifier and Type | Method and Description |
|---|---|
PointQuery |
point(javafx.geometry.Bounds bounds) |
PointQuery |
point(javafx.scene.Node node)
Returns the center of the given
Node in screen coordinates. |
PointQuery |
point(javafx.geometry.Point2D point) |
PointQuery |
point(javafx.scene.Scene scene) |
PointQuery |
point(javafx.stage.Window window) |
PointQuery point(javafx.geometry.Bounds bounds)
bounds - the initial bounds with which to construct a PointQueryPointQuery with the given bounds as the initial boundsPointQuery point(javafx.geometry.Point2D point)
point - to convert into a Bounds objectPointQuery whose bounds x and y values are the given point and whose width/height = 0PointQuery point(javafx.scene.Node node)
Node in screen coordinates.node - the nodePointQuery with the node's bounds (in terms of the screen) as the initial boundsPointQuery point(javafx.scene.Scene scene)
scene - the scenePointQuery with the scene's bounds (in terms of the screen) as the initial boundsPointQuery point(javafx.stage.Window window)
window - the windowPointQuery with the window's bounds (in terms of the screen) as the initial bounds