Interface RectangleBuilder
- All Superinterfaces:
AreaBuilder
Definition of a builder for rectangular areas.
- Since:
- 5.2.2103
-
Method Summary
Modifier and TypeMethodDescription@NotNull RectangleBuilderbounds(int left, int top, int right, int bottom) Defines the bounds for the rectangle.@NotNull RectAreabuild()Produces a new rectangular area.@NotNull RectangleBuilderSets 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:
linkin interfaceAreaBuilder- Parameters:
link- The link to be used.- Returns:
- This builder.
- Since:
- 5.2.2103
-
build
Produces a new rectangular area.- Specified by:
buildin interfaceAreaBuilder- Returns:
- A new rectangular area.
- Since:
- 5.2.2103
-