Interface BoundsLocator

All Known Implementing Classes:
BoundsLocatorImpl

public interface BoundsLocator
  • Method Summary

    Modifier and Type
    Method
    Description
    javafx.geometry.Bounds
    boundsInSceneFor(javafx.scene.Node node)
     
    javafx.geometry.Bounds
    boundsInWindowFor(javafx.geometry.Bounds boundsInScene, javafx.scene.Scene scene)
     
    javafx.geometry.Bounds
    boundsInWindowFor(javafx.scene.Scene scene)
     
    javafx.geometry.Bounds
    boundsOnScreenFor(javafx.geometry.Bounds boundsInScene, javafx.scene.Scene scene)
     
    javafx.geometry.Bounds
    boundsOnScreenFor(javafx.scene.Node node)
     
    javafx.geometry.Bounds
    boundsOnScreenFor(javafx.scene.Scene scene)
     
    javafx.geometry.Bounds
    boundsOnScreenFor(javafx.stage.Window window)
     
  • Method Details

    • boundsInSceneFor

      javafx.geometry.Bounds boundsInSceneFor(javafx.scene.Node node)
      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

      javafx.geometry.Bounds boundsInWindowFor(javafx.scene.Scene scene)
      Parameters:
      scene - the scene
      Returns:
      the bounds of the scene
    • boundsInWindowFor

      javafx.geometry.Bounds boundsInWindowFor(javafx.geometry.Bounds boundsInScene, javafx.scene.Scene scene)
      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

      javafx.geometry.Bounds boundsOnScreenFor(javafx.scene.Node node)
      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

      javafx.geometry.Bounds boundsOnScreenFor(javafx.scene.Scene scene)
      Parameters:
      scene - the scene
      Returns:
      the visible bounds (in terms of the screen) of the given Scene
    • boundsOnScreenFor

      javafx.geometry.Bounds boundsOnScreenFor(javafx.stage.Window window)
      Parameters:
      window - the window
      Returns:
      the bounds of the given window
    • boundsOnScreenFor

      javafx.geometry.Bounds boundsOnScreenFor(javafx.geometry.Bounds boundsInScene, javafx.scene.Scene scene)
      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.