Class BoundsQueryUtils
java.lang.Object
org.testfx.util.BoundsQueryUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.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)
-
Method Details
-
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)
-