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