@Unstable public class BoundsLocatorImpl extends Object implements BoundsLocator
Constructor and Description |
---|
BoundsLocatorImpl() |
Modifier and Type | Method and Description |
---|---|
Bounds |
boundsInSceneFor(Node node) |
Bounds |
boundsInWindowFor(Bounds boundsInScene,
Scene scene) |
Bounds |
boundsInWindowFor(Scene scene) |
Bounds |
boundsOnScreenFor(Bounds boundsInScene,
Scene scene) |
Bounds |
boundsOnScreenFor(Node node) |
Bounds |
boundsOnScreenFor(Scene scene) |
Bounds |
boundsOnScreenFor(Window window) |
public Bounds boundsInSceneFor(Node node)
boundsInSceneFor
in interface BoundsLocator
node
- the nodeScene
. If the node's bounds extend beyond the Scene's bounds, the excess will be removed.public Bounds boundsInWindowFor(Scene scene)
boundsInWindowFor
in interface BoundsLocator
scene
- the scenepublic Bounds boundsInWindowFor(Bounds boundsInScene, Scene scene)
boundsInWindowFor
in interface BoundsLocator
boundsInScene
- the bounds, which may extend beyond the scene's boundsscene
- the scene used to set the bounds limitsboundsInScene
, which is limited
by the bounds of the given Scene
. If the former extends beyond the latter, the excess will be removedpublic Bounds boundsOnScreenFor(Node node)
boundsOnScreenFor
in interface BoundsLocator
node
- the node.Scene
's
bounds and secondly by its Scene's Window
's boundspublic Bounds boundsOnScreenFor(Scene scene)
boundsOnScreenFor
in interface BoundsLocator
scene
- the scenepublic Bounds boundsOnScreenFor(Window window)
boundsOnScreenFor
in interface BoundsLocator
window
- the windowpublic Bounds boundsOnScreenFor(Bounds boundsInScene, Scene scene)
boundsOnScreenFor
in interface BoundsLocator
boundsInScene
- the initial bounds to convert to screen boundsscene
- the scene that limits the boundsInSceneboundsInScene
, which is limited by the
given Scene's bounds.