Interface CircleBuilder
- All Superinterfaces:
AreaBuilder
Definition of a builder for circular areas.
- Since:
- 5.2.2103
-
Method Summary
Modifier and TypeMethodDescription@NotNull CircleArea
build()
Produces a new circle area.@NotNull CircleBuilder
center
(int x, int y) Sets the center coordinates for the circle.@NotNull CircleBuilder
Sets the link maintained by the area.@NotNull CircleBuilder
radius
(int radius) Sets the radius for the circle.
-
Method Details
-
center
Sets the center coordinates for the circle.- Parameters:
x
- The x coordinate.y
- The y coordinate.- Returns:
- This builder.
- Since:
- 5.2.2103
-
radius
Sets the radius for the circle.- Parameters:
radius
- The radius.- 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 circle area.- Specified by:
build
in interfaceAreaBuilder
- Returns:
- A new circle area.
- Since:
- 5.2.2103
-