Module org.testfx

Class BoundsQueryUtils


  • public final class BoundsQueryUtils
    extends Object
    • Method Detail

      • bounds

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

        public static Bounds bounds​(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 Bounds bounds​(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 Bounds bounds​(Scene scene)
        Bounds of Scene in Window.
      • bounds

        public static Bounds bounds​(Window window)
        Bounds of Window on Screen.
      • nodeBounds

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

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

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

        public static Bounds nodeBoundsInScene​(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 Bounds boundsOnScreen​(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 Bounds boundsOnScreen​(Bounds boundsInScene,
                                            Scene scene)
        Transforms the given bounds in the given scene to the screen's coordinate system.
      • boundsOnScreen

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

        public static Bounds boundsOnScreen​(Bounds boundsOnScreen,
                                            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).