public class PointLocatorImpl extends java.lang.Object implements PointLocator
| Constructor and Description |
|---|
PointLocatorImpl(BoundsLocator boundsLocator) |
| 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) |
public PointLocatorImpl(BoundsLocator boundsLocator)
public PointQuery point(javafx.geometry.Bounds bounds)
point in interface PointLocatorbounds - the initial bounds with which to construct a PointQueryPointQuery with the given bounds as the initial boundspublic PointQuery point(javafx.geometry.Point2D point)
point in interface PointLocatorpoint - to convert into a Bounds objectPointQuery whose bounds x and y values are the given point and whose width/height = 0public PointQuery point(javafx.scene.Node node)
PointLocatorNode in screen coordinates.point in interface PointLocatornode - the nodePointQuery with the node's bounds (in terms of the screen) as the initial boundspublic PointQuery point(javafx.scene.Scene scene)
point in interface PointLocatorscene - the scenePointQuery with the scene's bounds (in terms of the screen) as the initial boundspublic PointQuery point(javafx.stage.Window window)
point in interface PointLocatorwindow - the windowPointQuery with the window's bounds (in terms of the screen) as the initial bounds