Class Polyline

java.lang.Object
xyz.jpenilla.squaremap.api.marker.Marker
xyz.jpenilla.squaremap.api.marker.Polyline

public final class Polyline extends Marker
Polyline marker, used to draw any number of lines
  • Method Details

    • points

      public @NonNull List<List<Point>> points()
      Get the points that make up this polyline. The inner lists each represent a line, with the outer list being the list of lines. If only a single line is represented by this polyline, the outer list will only have one element.
      Returns:
      points
    • points

      public void points(@NonNull List<Point> points)
      Set a new list of points for this line
      Parameters:
      points - new points
    • points

      public void points(@NonNull Point @NonNull ... points)
      Set a new list of points for this line
      Parameters:
      points - new points
    • multiPoints

      public void multiPoints(@NonNull List<List<Point>> points)
      Set a new list of lines for this multiline
      Parameters:
      points - new points
    • multiPoints

      @SafeVarargs public final void multiPoints(@NonNull List<Point> @NonNull ... points)
      Set a new list of lines for this multiline
      Parameters:
      points - new points
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object