public final class BoundsQueryUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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(double minX,
double minY,
double width,
double height)
Creates a new
Bounds object with the given parameters. |
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.
|
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) |
public static javafx.geometry.Bounds bounds(double minX,
double minY,
double width,
double height)
Bounds object with the given parameters.public static javafx.geometry.Bounds bounds(javafx.geometry.Point2D point)
Bounds object whose top-left corner is the given point and whose width and height
are 0.public static javafx.geometry.Bounds bounds(javafx.geometry.Dimension2D dimension)
Bounds object whose top-left corner is 0 and whose width and height are
dimension.getWidth() and dimension.getHeight(), respectively.public static javafx.geometry.Bounds bounds(javafx.geometry.Rectangle2D region)
Bounds object.public static javafx.geometry.Bounds bounds(javafx.scene.Scene scene)
public static javafx.geometry.Bounds bounds(javafx.stage.Window window)
public static javafx.geometry.Bounds nodeBounds(javafx.scene.Node node)
public static javafx.geometry.Bounds nodeBoundsInLocal(javafx.scene.Node node)
public static javafx.geometry.Bounds nodeBoundsInParent(javafx.scene.Node node)
public static javafx.geometry.Bounds nodeBoundsInScene(javafx.scene.Node node)
public static javafx.geometry.Bounds boundsOnScreen(javafx.scene.Node node)
public static javafx.geometry.Bounds boundsOnScreen(javafx.geometry.Bounds boundsInScene,
javafx.scene.Scene scene)
public static javafx.geometry.Bounds boundsOnScreen(javafx.geometry.Bounds boundsInWindow,
javafx.stage.Window window)
public static javafx.geometry.Bounds boundsOnScreen(javafx.geometry.Bounds boundsOnScreen,
javafx.geometry.Rectangle2D screenRegion)
public static javafx.geometry.Bounds scale(javafx.geometry.Bounds bounds)