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