Interface RectangleBuilder
- All Superinterfaces:
AreaBuilder
Definition of a builder for rectangular areas.
- Since:
- 5.2.2103
-
Method Summary
Modifier and TypeMethodDescription@NotNull RectangleBuilder
bounds
(int left, int top, int right, int bottom) Defines the bounds for the rectangle.@NotNull RectArea
build()
Produces a new rectangular area.@NotNull RectangleBuilder
Sets the link maintained by the area.
-
Method Details
-
bounds
Defines the bounds for the rectangle.- Parameters:
left
- The x coordinate of the top-left corner.top
- The y coordinate of the top-left corner.right
- The x coordinate of the bottom-right corner.bottom
- The y coordinate of the bottom-right corner.- Returns:
- This builder.
- Since:
- 5.2.2103
-
link
Sets the link maintained by the area.- Specified by:
link
in interfaceAreaBuilder
- Parameters:
link
- The link to be used.- Returns:
- This builder.
- Since:
- 5.2.2103
-
build
Produces a new rectangular area.- Specified by:
build
in interfaceAreaBuilder
- Returns:
- A new rectangular area.
- Since:
- 5.2.2103
-