Class MultiPolygon
java.lang.Object
xyz.jpenilla.squaremap.api.marker.Marker
xyz.jpenilla.squaremap.api.marker.MultiPolygon
MultiPolygon marker, used to display multiple polygons while treating them as a single marker
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMultiPolygonPart is a class to represent sub polygons ofMultiPolygons -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()Create a newMultiPolygon.MultiPolygonPartfrom a list of points, and a secondary list polygons that make up the negative spaceCreate a newMultiPolygon.MultiPolygonPartfrom a list of points, and a secondary list polygons that make up the negative spaceCreate a newMultiPolygon.MultiPolygonPartfrom a list of pointsGet the mutable list of the sub polygons which make up this MultiPolygonvoidsubPolygons(@NonNull List<MultiPolygon.MultiPolygonPart> subPolygons) Set a new list of sub polygons.voidsubPolygons(@NonNull MultiPolygon.MultiPolygonPart @NonNull ... subPolygons) Set a new list of sub polygons.Methods inherited from class xyz.jpenilla.squaremap.api.marker.Marker
circle, ellipse, icon, icon, icon, markerOptions, markerOptions, markerOptions, markerOptionsMatch, multiPolygon, multiPolygon, multiPolyline, multiPolyline, polygon, polygon, polygon, polygon, polyline, polyline, rectangle
-
Method Details
-
part
Create a newMultiPolygon.MultiPolygonPartfrom a list of points- Parameters:
points- points- Returns:
- new part
-
part
@SafeVarargs public static @NonNull MultiPolygon.MultiPolygonPart part(@NonNull List<Point> points, @NonNull List<Point> @NonNull ... negativeSpace) Create a newMultiPolygon.MultiPolygonPartfrom a list of points, and a secondary list polygons that make up the negative space- Parameters:
points- pointsnegativeSpace- negative space- Returns:
- new part
-
part
public static @NonNull MultiPolygon.MultiPolygonPart part(@NonNull List<Point> points, @NonNull List<List<Point>> negativeSpace) Create a newMultiPolygon.MultiPolygonPartfrom a list of points, and a secondary list polygons that make up the negative space- Parameters:
points- pointsnegativeSpace- negative space- Returns:
- new part
-
subPolygons
Get the mutable list of the sub polygons which make up this MultiPolygon- Returns:
- sub polygons
-
subPolygons
Set a new list of sub polygons. Will remove existing sub polygons.- Parameters:
subPolygons- new sub polygons
-
subPolygons
Set a new list of sub polygons. Will remove existing sub polygons.- Parameters:
subPolygons- new sub polygons
-
equals
-
hashCode
public int hashCode()
-