Package org.testfx.service.locator.impl
Class PointLocatorImpl
java.lang.Object
org.testfx.service.locator.impl.PointLocatorImpl
- All Implemented Interfaces:
PointLocator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
boundsLocator
-
-
Constructor Details
-
PointLocatorImpl
-
-
Method Details
-
point
- Specified by:
point
in interfacePointLocator
- Parameters:
bounds
- the initial bounds with which to construct aPointQuery
- Returns:
- a
PointQuery
with the given bounds as the initial bounds
-
point
- Specified by:
point
in interfacePointLocator
- 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
Description copied from interface:PointLocator
Returns the center of the givenNode
in screen coordinates.- Specified by:
point
in interfacePointLocator
- Parameters:
node
- the node- Returns:
- a
PointQuery
with the node's bounds (in terms of the screen) as the initial bounds
-
point
- Specified by:
point
in interfacePointLocator
- Parameters:
scene
- the scene- Returns:
- a
PointQuery
with the scene's bounds (in terms of the screen) as the initial bounds
-
point
- Specified by:
point
in interfacePointLocator
- Parameters:
window
- the window- Returns:
- a
PointQuery
with the window's bounds (in terms of the screen) as the initial bounds
-