Basics
Guides
API Reference
Basics
Guides
API Reference
[15:7] extends: FxObj
Wraps JavaFX Bounds, an immutable rectangular (2D) or box (3D) region described by a minimum corner and a size. Bounds is returned by the Node bounds accessors (getBoundsInParent, getBoundsInLocal, getLayoutBounds) and the bounds-based coordinate transforms. New instances are backed by a BoundingBox; adopted instances keep whatever concrete Bounds they wrap.
Bounds (MinX = null, MinY = null, Width = null, Height = null)
Creates a new 2D Bounds from a minimum corner and a size, or wraps an existing Bounds AJO passed as the first argument.
MinX is the minimum x, or a Bounds AJO to wrap.MinY is the minimum y.Width is the width.Height is the height.getMinX ()
Returns the minimum x coordinate.
A double with the minimum x.getMinY ()
Returns the minimum y coordinate.
A double with the minimum y.getMinZ ()
Returns the minimum z coordinate (0.0 for a 2D bounds).
A double with the minimum z.getWidth ()
Returns the width of the bounds.
A double with the width.getHeight ()
Returns the height of the bounds.
A double with the height.getDepth ()
Returns the depth of the bounds (0.0 for a 2D bounds).
A double with the depth.getMaxX ()
Returns the maximum x coordinate.
A double with the maximum x.getMaxY ()
Returns the maximum y coordinate.
A double with the maximum y.getMaxZ ()
Returns the maximum z coordinate (0.0 for a 2D bounds).
A double with the maximum z.isEmpty ()
Returns true when the bounds are empty (width or height negative).
A bool that is true when empty.contains (double X, double Y)
Returns true when the point (X, Y) lies inside these bounds.
X is a double with the x coordinate to test.Y is a double with the y coordinate to test.A bool that is true when the point is contained.intersects (object Other)
Returns true when these bounds intersect Other.
Other is a Bounds to test against.A bool that is true when the bounds intersect.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.