Modifier and Type | Method and Description |
---|---|
static Bounds |
bounds(Dimension2D dimension)
Creates a
Bounds object whose top-left corner = 0 and whose width & height = {code dimension.getWidth()}
and dimension.getHeight() , respectively. |
static Bounds |
bounds(double minX,
double minY,
double width,
double height)
Creates a new
Bounds object with the given parameters |
static Bounds |
bounds(Point2D point)
Creates a Bounds object whose top-left corner is the given point and whose width/height = 0
|
static Bounds |
bounds(Rectangle2D region)
Converts the given region into a
Bounds object. |
static Bounds |
bounds(Scene scene)
Bounds of Scene in Window.
|
static Bounds |
bounds(Window window)
Bounds of Window on Screen.
|
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).
|
static Bounds |
boundsOnScreen(Bounds boundsInScene,
Scene scene)
Transforms the given bounds in the given scene to the screen's coordinate system.
|
static Bounds |
boundsOnScreen(Bounds boundsInWindow,
Window window)
Translates the given bounds in the given window to the screen's coordinate system
|
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.
|
static Bounds |
nodeBounds(Node node)
Retrieve the logical bounds (geom) of a Node.
|
static Bounds |
nodeBoundsInLocal(Node node)
Retrieve the physical untransformed bounds (geom + effect + clip) of a Node.
|
static Bounds |
nodeBoundsInParent(Node node)
Retrieve the physical transformed bounds (geom + effect + clip + transform) of a Node.
|
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.
|
public static Bounds bounds(double minX, double minY, double width, double height)
Bounds
object with the given parameterspublic static Bounds bounds(Point2D point)
public static Bounds bounds(Dimension2D dimension)
Bounds
object whose top-left corner = 0 and whose width & height = {code dimension.getWidth()}
and dimension.getHeight()
, respectively.public static Bounds bounds(Rectangle2D region)
Bounds
object.public static Bounds nodeBoundsInLocal(Node node)
public static Bounds nodeBoundsInParent(Node node)
public static Bounds nodeBoundsInScene(Node node)
public static Bounds boundsOnScreen(Node node)
public static Bounds boundsOnScreen(Bounds boundsInScene, Scene scene)
public static Bounds boundsOnScreen(Bounds boundsInWindow, Window window)
public static Bounds boundsOnScreen(Bounds boundsOnScreen, Rectangle2D screenRegion)