Interface IPolygon

All Known Implementing Classes:
MultiPolygon.MultiPolygonPart, Polygon

public interface IPolygon
Interface with common methods to Polygon and MultiPolygon.MultiPolygonPart
  • Method Details

    • negativeSpace

      @NonNull List<List<Point>> negativeSpace()
      Get the mutable list of polygons which make up the negative space for this polygon.
      Returns:
      negative space
    • negativeSpace

      default void negativeSpace(@NonNull List<Point> @NonNull ... points)
      Set the negative space for this polygon. This will reset any negative space currently set.
      Parameters:
      points - new negative space
    • negativeSpace

      default void negativeSpace(@NonNull List<List<Point>> points)
      Set the negative space for this polygon. This will reset any negative space currently set.
      Parameters:
      points - new negative space
    • mainPolygon

      @NonNull List<Point> mainPolygon()
      Get the mutable list of the points which make up the main polygon
      Returns:
      main polygon
    • mainPolygon

      default void mainPolygon(@NonNull Point @NonNull ... points)
      Set the points which make up the main polygon for this polygon. This will reset any currently set points.
      Parameters:
      points - new main polygon
    • mainPolygon

      default void mainPolygon(@NonNull List<Point> points)
      Set the points which make up the main polygon for this polygon. This will reset any currently set points.
      Parameters:
      points - new main polygon