Interface PolygonBuilder

All Superinterfaces:
AreaBuilder

public interface PolygonBuilder extends AreaBuilder
Definition of a builder for polygonal areas.
Since:
5.2.2103
  • Method Summary

    Modifier and Type
    Method
    Description
    add(int x, int y)
    Adds a new edge to the polygon positioned at the given coordinate.
    @NotNull PolyArea
    Produces a new polygonal area.
    link(@NotNull Link link)
    Sets the link maintained by the area.
  • Method Details

    • add

      @NotNull @NotNull PolygonBuilder add(int x, int y)
      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

      @NotNull @NotNull PolygonBuilder link(@NotNull @NotNull Link link)
      Sets the link maintained by the area.
      Specified by:
      link in interface AreaBuilder
      Parameters:
      link - The link to be used.
      Returns:
      This builder.
      Since:
      5.2.2103
    • build

      @NotNull @NotNull PolyArea build()
      Produces a new polygonal area.
      Specified by:
      build in interface AreaBuilder
      Returns:
      A new polygonal area.
      Since:
      5.2.2103