Interface PolygonBuilder
- All Superinterfaces:
AreaBuilder
Definition of a builder for polygonal areas.
- Since:
- 5.2.2103
-
Method Summary
Modifier and TypeMethodDescription@NotNull PolygonBuilder
add
(int x, int y) Adds a new edge to the polygon positioned at the given coordinate.@NotNull PolyArea
build()
Produces a new polygonal area.@NotNull PolygonBuilder
Sets the link maintained by the area.
-
Method Details
-
add
Adds a new edge to the polygon positioned at the given coordinate.- Parameters:
x
- The x coordinate of the new edge.y
- The y coordinate of the new edge.- 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 polygonal area.- Specified by:
build
in interfaceAreaBuilder
- Returns:
- A new polygonal area.
- Since:
- 5.2.2103
-