Interface IPolygon
- All Known Implementing Classes:
MultiPolygon.MultiPolygonPart,Polygon
public interface IPolygon
Interface with common methods to
Polygon and MultiPolygon.MultiPolygonPart-
Method Summary
Modifier and TypeMethodDescriptionGet the mutable list of the points which make up the main polygondefault voidmainPolygon(@NonNull List<Point> points) Set the points which make up the main polygon for this polygon.default voidmainPolygon(@NonNull Point @NonNull ... points) Set the points which make up the main polygon for this polygon.Get the mutable list of polygons which make up the negative space for this polygon.default voidnegativeSpace(@NonNull List<List<Point>> points) Set the negative space for this polygon.default voidnegativeSpace(@NonNull List<Point> @NonNull ... points) Set the negative space for this polygon.
-
Method Details
-
negativeSpace
Get the mutable list of polygons which make up the negative space for this polygon.- Returns:
- negative space
-
negativeSpace
Set the negative space for this polygon. This will reset any negative space currently set.- Parameters:
points- new negative space
-
negativeSpace
Set the negative space for this polygon. This will reset any negative space currently set.- Parameters:
points- new negative space
-
mainPolygon
Get the mutable list of the points which make up the main polygon- Returns:
- main polygon
-
mainPolygon
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
Set the points which make up the main polygon for this polygon. This will reset any currently set points.- Parameters:
points- new main polygon
-