Class BoundsQueryUtils

java.lang.Object
org.testfx.util.BoundsQueryUtils

public final class BoundsQueryUtils extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static javafx.geometry.Bounds
    bounds(double minX, double minY, double width, double height)
    Creates a new Bounds object with the given parameters.
    static javafx.geometry.Bounds
    bounds(javafx.geometry.Dimension2D dimension)
    Creates a new Bounds object whose top-left corner is 0 and whose width and height are dimension.getWidth() and dimension.getHeight(), respectively.
    static javafx.geometry.Bounds
    bounds(javafx.geometry.Point2D point)
    Creates a new Bounds object whose top-left corner is the given point and whose width and height are 0.
    static javafx.geometry.Bounds
    bounds(javafx.geometry.Rectangle2D region)
    Converts the given region to a Bounds object.
    static javafx.geometry.Bounds
    bounds(javafx.scene.Scene scene)
    Bounds of Scene in Window.
    static javafx.geometry.Bounds
    bounds(javafx.stage.Window window)
    Bounds of Window on Screen.
    static javafx.geometry.Bounds
    boundsOnScreen(javafx.geometry.Bounds boundsOnScreen, javafx.geometry.Rectangle2D screenRegion)
    Translates the given bounds in the screen to a relative coordinate system where the given screenRegion's top-left corner represents coordinate (0, 0).
    static javafx.geometry.Bounds
    boundsOnScreen(javafx.geometry.Bounds boundsInScene, javafx.scene.Scene scene)
    Transforms the given bounds in the given scene to the screen's coordinate system.
    static javafx.geometry.Bounds
    boundsOnScreen(javafx.geometry.Bounds boundsInWindow, javafx.stage.Window window)
    Translates the given bounds in the given window to the screen's coordinate system
    static javafx.geometry.Bounds
    boundsOnScreen(javafx.scene.Node node)
    Retrieves the physical untransformed bounds (geom + effect + clip) of a Node before transforming that to the screen's coordinate system.
    static javafx.geometry.Bounds
    nodeBounds(javafx.scene.Node node)
    Retrieve the logical bounds (geom) of a Node.
    static javafx.geometry.Bounds
    nodeBoundsInLocal(javafx.scene.Node node)
    Retrieve the physical untransformed bounds (geom + effect + clip) of a Node.
    static javafx.geometry.Bounds
    nodeBoundsInParent(javafx.scene.Node node)
    Retrieve the physical transformed bounds (geom + effect + clip + transform) of a Node.
    static javafx.geometry.Bounds
    nodeBoundsInScene(javafx.scene.Node node)
    Retrieves the physical untransformed bounds (geom + effect + clip) of a Node before transforming that to the node's Scene's coordinate system.
    static javafx.geometry.Bounds
    scale(javafx.geometry.Bounds bounds)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • bounds

      public static javafx.geometry.Bounds bounds(double minX, double minY, double width, double height)
      Creates a new Bounds object with the given parameters.
    • bounds

      public static javafx.geometry.Bounds bounds(javafx.geometry.Point2D point)
      Creates a new Bounds object whose top-left corner is the given point and whose width and height are 0.
    • bounds

      public static javafx.geometry.Bounds bounds(javafx.geometry.Dimension2D dimension)
      Creates a new Bounds object whose top-left corner is 0 and whose width and height are dimension.getWidth() and dimension.getHeight(), respectively.
    • bounds

      public static javafx.geometry.Bounds bounds(javafx.geometry.Rectangle2D region)
      Converts the given region to a Bounds object.
    • bounds

      public static javafx.geometry.Bounds bounds(javafx.scene.Scene scene)
      Bounds of Scene in Window.
    • bounds

      public static javafx.geometry.Bounds bounds(javafx.stage.Window window)
      Bounds of Window on Screen.
    • nodeBounds

      public static javafx.geometry.Bounds nodeBounds(javafx.scene.Node node)
      Retrieve the logical bounds (geom) of a Node.
    • nodeBoundsInLocal

      public static javafx.geometry.Bounds nodeBoundsInLocal(javafx.scene.Node node)
      Retrieve the physical untransformed bounds (geom + effect + clip) of a Node.
    • nodeBoundsInParent

      public static javafx.geometry.Bounds nodeBoundsInParent(javafx.scene.Node node)
      Retrieve the physical transformed bounds (geom + effect + clip + transform) of a Node.
    • nodeBoundsInScene

      public static javafx.geometry.Bounds nodeBoundsInScene(javafx.scene.Node node)
      Retrieves the physical untransformed bounds (geom + effect + clip) of a Node before transforming that to the node's Scene's coordinate system.
    • boundsOnScreen

      public static javafx.geometry.Bounds boundsOnScreen(javafx.scene.Node node)
      Retrieves the physical untransformed bounds (geom + effect + clip) of a Node before transforming that to the screen's coordinate system.
    • boundsOnScreen

      public static javafx.geometry.Bounds boundsOnScreen(javafx.geometry.Bounds boundsInScene, javafx.scene.Scene scene)
      Transforms the given bounds in the given scene to the screen's coordinate system.
    • boundsOnScreen

      public static javafx.geometry.Bounds boundsOnScreen(javafx.geometry.Bounds boundsInWindow, javafx.stage.Window window)
      Translates the given bounds in the given window to the screen's coordinate system
    • boundsOnScreen

      public static javafx.geometry.Bounds boundsOnScreen(javafx.geometry.Bounds boundsOnScreen, javafx.geometry.Rectangle2D screenRegion)
      Translates the given bounds in the screen to a relative coordinate system where the given screenRegion's top-left corner represents coordinate (0, 0).
    • scale

      public static javafx.geometry.Bounds scale(javafx.geometry.Bounds bounds)