Package org.testfx.util
Class BoundsQueryUtils
- java.lang.Object
-
- org.testfx.util.BoundsQueryUtils
-
public final class BoundsQueryUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privateBoundsQueryUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static booleanareBoundsVisible(javafx.geometry.Bounds bounds)static javafx.geometry.Boundsbounds(double minX, double minY, double width, double height)Creates a newBoundsobject with the given parameters.static javafx.geometry.Boundsbounds(javafx.geometry.Dimension2D dimension)Creates a newBoundsobject whose top-left corner is 0 and whose width and height aredimension.getWidth()anddimension.getHeight(), respectively.static javafx.geometry.Boundsbounds(javafx.geometry.Point2D point)Creates a newBoundsobject whose top-left corner is the given point and whose width and height are 0.static javafx.geometry.Boundsbounds(javafx.geometry.Rectangle2D region)Converts the given region to aBoundsobject.static javafx.geometry.Boundsbounds(javafx.scene.Scene scene)Bounds of Scene in Window.static javafx.geometry.Boundsbounds(javafx.stage.Window window)Bounds of Window on Screen.static javafx.geometry.BoundsboundsOnScreen(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.BoundsboundsOnScreen(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.BoundsboundsOnScreen(javafx.geometry.Bounds boundsInWindow, javafx.stage.Window window)Translates the given bounds in the given window to the screen's coordinate systemstatic javafx.geometry.BoundsboundsOnScreen(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.Point2DbyOffset(double x, double y)private static javafx.geometry.BoundsintersectBounds(javafx.geometry.Bounds a, javafx.geometry.Bounds b)private static javafx.geometry.BoundslimitToVisibleBounds(javafx.geometry.Bounds boundsInScene, javafx.scene.Scene scene)private static javafx.geometry.BoundsmakeSceneBounds(javafx.scene.Scene scene)static javafx.geometry.BoundsnodeBounds(javafx.scene.Node node)Retrieve the logical bounds (geom) of a Node.static javafx.geometry.BoundsnodeBoundsInLocal(javafx.scene.Node node)Retrieve the physical untransformed bounds (geom + effect + clip) of a Node.static javafx.geometry.BoundsnodeBoundsInParent(javafx.scene.Node node)Retrieve the physical transformed bounds (geom + effect + clip + transform) of a Node.static javafx.geometry.BoundsnodeBoundsInScene(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.Boundsscale(javafx.geometry.Bounds bounds)private static javafx.geometry.BoundstranslateBounds(javafx.geometry.Bounds bounds, javafx.geometry.Point2D offset)
-
-
-
Method Detail
-
bounds
public static javafx.geometry.Bounds bounds(double minX, double minY, double width, double height)Creates a newBoundsobject with the given parameters.
-
bounds
public static javafx.geometry.Bounds bounds(javafx.geometry.Point2D point)
Creates a newBoundsobject 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 newBoundsobject whose top-left corner is 0 and whose width and height aredimension.getWidth()anddimension.getHeight(), respectively.
-
bounds
public static javafx.geometry.Bounds bounds(javafx.geometry.Rectangle2D region)
Converts the given region to aBoundsobject.
-
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)
-
-