Basics
Guides
API Reference
Basics
Guides
API Reference
[13:7] extends: FxObj
Rectangle2D wraps javafx.geometry.Rectangle2D, an immutable rectangle defined by a minimum x and y corner plus a width and height. It is used in places like an ImageView viewport. Extends FxObj.
Rectangle2D (MinX = null, MinY = null, Width = null, Height = null)
Creates a Rectangle2D from a minimum corner and a size. When an existing Rectangle2D AussomJavaObject is passed as the first argument it is wrapped directly.
MinX is the minimum x, or a Rectangle2D 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.getWidth ()
Returns the width.
A double with the width.getHeight ()
Returns the height.
A double with the height.getMaxX ()
Returns the maximum x coordinate (minimum x plus width).
A double with the maximum x.getMaxY ()
Returns the maximum y coordinate (minimum y plus height).
A double with the maximum y.contains (double X, double Y)
Returns whether the given point lies inside this rectangle.
X is the point x coordinate.Y is the point y coordinate.A bool, true when the point is contained.intersects (Rect)
Returns whether the given rectangle intersects this one.
Rect is a Rectangle2D wrapper (or Rectangle2D AJO).A bool, true when the two rectangles intersect.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.