- java.lang.Object
-
- org.testfx.service.locator.impl.BoundsLocatorImpl
-
- All Implemented Interfaces:
BoundsLocator
public class BoundsLocatorImpl extends Object implements BoundsLocator
-
-
Constructor Summary
Constructors Constructor Description BoundsLocatorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoundsboundsInSceneFor(Node node)BoundsboundsInWindowFor(Bounds boundsInScene, Scene scene)BoundsboundsInWindowFor(Scene scene)BoundsboundsOnScreenFor(Bounds boundsInScene, Scene scene)BoundsboundsOnScreenFor(Node node)BoundsboundsOnScreenFor(Scene scene)BoundsboundsOnScreenFor(Window window)
-
-
-
Method Detail
-
boundsInSceneFor
public Bounds boundsInSceneFor(Node node)
- Specified by:
boundsInSceneForin interfaceBoundsLocator- Parameters:
node- the node- Returns:
- the visible bounds (in terms of its Scene) of the node, which is limited by the bounds of its
Scene. If the node's bounds extend beyond the Scene's bounds, the excess will be removed.
-
boundsInWindowFor
public Bounds boundsInWindowFor(Scene scene)
- Specified by:
boundsInWindowForin interfaceBoundsLocator- Parameters:
scene- the scene- Returns:
- the bounds of the scene
-
boundsInWindowFor
public Bounds boundsInWindowFor(Bounds boundsInScene, Scene scene)
- Specified by:
boundsInWindowForin interfaceBoundsLocator- Parameters:
boundsInScene- the bounds, which may extend beyond the scene's boundsscene- the scene used to set the bounds limits- Returns:
- the visible bounds (in terms of the Scene's Window) of the given
boundsInScene, which is limited by the bounds of the givenScene. If the former extends beyond the latter, the excess will be removed
-
boundsOnScreenFor
public Bounds boundsOnScreenFor(Node node)
- Specified by:
boundsOnScreenForin interfaceBoundsLocator- Parameters:
node- the node.- Returns:
- the visible bounds (in terms of the screen) of the node, which is limited first by its
Scene's bounds and secondly by its Scene'sWindow's bounds
-
boundsOnScreenFor
public Bounds boundsOnScreenFor(Scene scene)
- Specified by:
boundsOnScreenForin interfaceBoundsLocator- Parameters:
scene- the scene- Returns:
- the visible bounds (in terms of the screen) of the given Scene
-
boundsOnScreenFor
public Bounds boundsOnScreenFor(Window window)
- Specified by:
boundsOnScreenForin interfaceBoundsLocator- Parameters:
window- the window- Returns:
- the bounds of the given window
-
boundsOnScreenFor
public Bounds boundsOnScreenFor(Bounds boundsInScene, Scene scene)
- Specified by:
boundsOnScreenForin interfaceBoundsLocator- Parameters:
boundsInScene- the initial bounds to convert to screen boundsscene- the scene that limits the boundsInScene- Returns:
- the visible bounds (in terms of the screen) of the given
boundsInScene, which is limited by the given Scene's bounds.
-
-