Class Polygon

java.lang.Object
xyz.jpenilla.squaremap.api.marker.Marker
xyz.jpenilla.squaremap.api.marker.Polygon
All Implemented Interfaces:
IPolygon

public final class Polygon extends Marker implements IPolygon
Polygon marker
  • Method Details

    • negativeSpace

      public @NonNull List<List<Point>> negativeSpace()
      Description copied from interface: IPolygon
      Get the mutable list of polygons which make up the negative space for this polygon.
      Specified by:
      negativeSpace in interface IPolygon
      Returns:
      negative space
    • mainPolygon

      public @NonNull List<Point> mainPolygon()
      Description copied from interface: IPolygon
      Get the mutable list of the points which make up the main polygon
      Specified by:
      mainPolygon in interface IPolygon
      Returns:
      main polygon
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object