Class BoundsQueryUtils


  • public final class BoundsQueryUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private BoundsQueryUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static boolean areBoundsVisible​(javafx.geometry.Bounds bounds)  
      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.
      private static javafx.geometry.Point2D byOffset​(double x, double y)  
      private static javafx.geometry.Bounds intersectBounds​(javafx.geometry.Bounds a, javafx.geometry.Bounds b)  
      private static javafx.geometry.Bounds limitToVisibleBounds​(javafx.geometry.Bounds boundsInScene, javafx.scene.Scene scene)  
      private static javafx.geometry.Bounds makeSceneBounds​(javafx.scene.Scene scene)  
      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)  
      private static javafx.geometry.Bounds translateBounds​(javafx.geometry.Bounds bounds, javafx.geometry.Point2D offset)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BoundsQueryUtils

        private BoundsQueryUtils()
    • Method Detail

      • 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)
      • limitToVisibleBounds

        private static javafx.geometry.Bounds limitToVisibleBounds​(javafx.geometry.Bounds boundsInScene,
                                                                   javafx.scene.Scene scene)
      • makeSceneBounds

        private static javafx.geometry.Bounds makeSceneBounds​(javafx.scene.Scene scene)
      • intersectBounds

        private static javafx.geometry.Bounds intersectBounds​(javafx.geometry.Bounds a,
                                                              javafx.geometry.Bounds b)
      • areBoundsVisible

        private static boolean areBoundsVisible​(javafx.geometry.Bounds bounds)
      • translateBounds

        private static javafx.geometry.Bounds translateBounds​(javafx.geometry.Bounds bounds,
                                                              javafx.geometry.Point2D offset)
      • byOffset

        private static javafx.geometry.Point2D byOffset​(double x,
                                                        double y)