Module org.testfx

Class BoundsLocatorImpl

    • Constructor Detail

      • BoundsLocatorImpl

        public BoundsLocatorImpl()
    • Method Detail

      • boundsInSceneFor

        public javafx.geometry.Bounds boundsInSceneFor​(javafx.scene.Node node)
        Specified by:
        boundsInSceneFor in interface BoundsLocator
        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 javafx.geometry.Bounds boundsInWindowFor​(javafx.scene.Scene scene)
        Specified by:
        boundsInWindowFor in interface BoundsLocator
        Parameters:
        scene - the scene
        Returns:
        the bounds of the scene
      • boundsInWindowFor

        public javafx.geometry.Bounds boundsInWindowFor​(javafx.geometry.Bounds boundsInScene,
                                                        javafx.scene.Scene scene)
        Specified by:
        boundsInWindowFor in interface BoundsLocator
        Parameters:
        boundsInScene - the bounds, which may extend beyond the scene's bounds
        scene - 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 given Scene. If the former extends beyond the latter, the excess will be removed
      • boundsOnScreenFor

        public javafx.geometry.Bounds boundsOnScreenFor​(javafx.scene.Node node)
        Specified by:
        boundsOnScreenFor in interface BoundsLocator
        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's Window's bounds
      • boundsOnScreenFor

        public javafx.geometry.Bounds boundsOnScreenFor​(javafx.scene.Scene scene)
        Specified by:
        boundsOnScreenFor in interface BoundsLocator
        Parameters:
        scene - the scene
        Returns:
        the visible bounds (in terms of the screen) of the given Scene
      • boundsOnScreenFor

        public javafx.geometry.Bounds boundsOnScreenFor​(javafx.stage.Window window)
        Specified by:
        boundsOnScreenFor in interface BoundsLocator
        Parameters:
        window - the window
        Returns:
        the bounds of the given window
      • boundsOnScreenFor

        public javafx.geometry.Bounds boundsOnScreenFor​(javafx.geometry.Bounds boundsInScene,
                                                        javafx.scene.Scene scene)
        Specified by:
        boundsOnScreenFor in interface BoundsLocator
        Parameters:
        boundsInScene - the initial bounds to convert to screen bounds
        scene - 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.