Package org.testfx.service.locator
Interface PointLocator
-
- All Known Implementing Classes:
PointLocatorImpl
public interface PointLocatorInterface for constructingPointQueryobjects that can be used to return a specific point (in terms of the screen) somewhere in the bounds of the provided object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PointQuerypoint(javafx.geometry.Bounds bounds)PointQuerypoint(javafx.geometry.Point2D point)PointQuerypoint(javafx.scene.Node node)Returns the center of the givenNodein screen coordinates.PointQuerypoint(javafx.scene.Scene scene)PointQuerypoint(javafx.stage.Window window)
-
-
-
Method Detail
-
point
PointQuery point(javafx.geometry.Bounds bounds)
- Parameters:
bounds- the initial bounds with which to construct aPointQuery- Returns:
- a
PointQuerywith the given bounds as the initial bounds
-
point
PointQuery point(javafx.geometry.Point2D point)
- Parameters:
point- to convert into aBoundsobject- Returns:
- a
PointQuerywhose bounds x and y values are the given point and whose width/height = 0
-
point
PointQuery point(javafx.scene.Node node)
Returns the center of the givenNodein screen coordinates.- Parameters:
node- the node- Returns:
- a
PointQuerywith the node's bounds (in terms of the screen) as the initial bounds
-
point
PointQuery point(javafx.scene.Scene scene)
- Parameters:
scene- the scene- Returns:
- a
PointQuerywith the scene's bounds (in terms of the screen) as the initial bounds
-
point
PointQuery point(javafx.stage.Window window)
- Parameters:
window- the window- Returns:
- a
PointQuerywith the window's bounds (in terms of the screen) as the initial bounds
-
-