Rectangle2D (API Reference)
Class Rectangle2D
Represents a 2D rectangle defined by the origin and size.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
origin
The origin specifies the top-left corner of the rectangle. When this point is used to indicate the coordinates on a view, then (0,0) will mark the top-left corner of the view. The size determines the width and height of the rectangle. The width expands towards the right of the view. The height expands towards the bottom of the view.
-
size
The size specifies the width and height of the rectangle.
-
-
Constructor Details
-
Rectangle2D
Creates a new instance.
- Parameters:
origin-The origin specifies the top-left corner of the rectangle. When this point is used to indicate the coordinates on a view, then (0,0) will mark the top-left corner of the view. The size determines the width and height of the rectangle. The width expands towards the right of the view. The height expands towards the bottom of the view.
size-The size specifies the width and height of the rectangle.
-
-
Method Details