Package org.testfx.service.locator
Interface PointLocator
- All Known Implementing Classes:
PointLocatorImpl
public interface PointLocator
Interface for constructing
PointQuery
objects that can be used to return a specific
point (in terms of the screen) somewhere in the bounds of the provided object.-
Method Details
-
point
- Parameters:
bounds
- the initial bounds with which to construct aPointQuery
- Returns:
- a
PointQuery
with the given bounds as the initial bounds
-
point
- Parameters:
point
- to convert into aBounds
object- Returns:
- a
PointQuery
whose bounds x and y values are the given point and whose width/height = 0
-
point
Returns the center of the givenNode
in screen coordinates.- Parameters:
node
- the node- Returns:
- a
PointQuery
with the node's bounds (in terms of the screen) as the initial bounds
-
point
- Parameters:
scene
- the scene- Returns:
- a
PointQuery
with the scene's bounds (in terms of the screen) as the initial bounds
-
point
- Parameters:
window
- the window- Returns:
- a
PointQuery
with the window's bounds (in terms of the screen) as the initial bounds
-