Package net.pl3x.map.core.markers.marker
Class MultiPolyline
java.lang.Object
net.pl3x.map.core.Keyed
net.pl3x.map.core.markers.marker.Marker<@NotNull MultiPolyline>
net.pl3x.map.core.markers.marker.MultiPolyline
- All Implemented Interfaces:
JsonSerializable
Represents a multi-polyline marker.
-
Constructor Summary
ConstructorDescriptionMultiPolyline
(@NotNull String key, @NotNull Collection<@NotNull Polyline> polylines) Create a new multi-polyline.MultiPolyline
(@NotNull String key, @NotNull Polyline polyline) Create a new multi-polyline.MultiPolyline
(@NotNull String key, @NotNull Polyline @NotNull ... polylines) Create a new multi-polyline. -
Method Summary
Modifier and TypeMethodDescription@NotNull MultiPolyline
addPolyline
(@NotNull Collection<@NotNull Polyline> polylines) Add polylines to this multi-polyline.@NotNull MultiPolyline
addPolyline
(@NotNull Polyline polyline) Add a polyline to this multi-polyline.@NotNull MultiPolyline
addPolyline
(@NotNull Polyline @NotNull ... polylines) Add polylines to this multi-polyline.@NotNull MultiPolyline
Clear the list of polylines in this multi-polyline.boolean
static @NotNull MultiPolyline
fromJson
(@NotNull com.google.gson.JsonObject obj) Get the list of polylines in this multi-polyline.int
hashCode()
static @NotNull MultiPolyline
of
(@NotNull String key, @NotNull Collection<@NotNull Polyline> polylines) Create a new multi-polyline.static @NotNull MultiPolyline
Create a new multi-polyline.static @NotNull MultiPolyline
Create a new multi-polyline.@NotNull MultiPolyline
removePolyline
(@NotNull Collection<@NotNull Polyline> polylines) Remove polylines from this multi-polyline.@NotNull MultiPolyline
removePolyline
(@NotNull Polyline polyline) Remove a polyline from this multi-polyline.@NotNull MultiPolyline
removePolyline
(@NotNull Polyline @NotNull ... polylines) Remove polylines from this multi-polyline.@NotNull com.google.gson.JsonObject
toJson()
Jsonify this object.@NotNull String
toString()
Methods inherited from class net.pl3x.map.core.markers.marker.Marker
circle, circle, ellipse, ellipse, ellipse, ellipse, ellipse, ellipse, ellipse, ellipse, getOptions, getPane, getType, icon, icon, icon, icon, icon, icon, icon, multiPolygon, multiPolygon, multiPolygon, multiPolyline, multiPolyline, multiPolyline, polygon, polygon, polygon, polyline, polyline, polyline, rectangle, rectangle, setOptions, setOptions, setPane
-
Constructor Details
-
MultiPolyline
Create a new multi-polyline.- Parameters:
key
- identifying keypolyline
- polyline to add
-
MultiPolyline
public MultiPolyline(@NotNull @NotNull String key, @NotNull @NotNull Polyline @NotNull ... polylines) Create a new multi-polyline.- Parameters:
key
- identifying keypolylines
- polylines to add
-
MultiPolyline
public MultiPolyline(@NotNull @NotNull String key, @NotNull @NotNull Collection<@NotNull Polyline> polylines) Create a new multi-polyline.- Parameters:
key
- identifying keypolylines
- polylines to add
-
-
Method Details
-
of
@NotNull public static @NotNull MultiPolyline of(@NotNull @NotNull String key, @NotNull @NotNull Polyline polyline) Create a new multi-polyline.- Parameters:
key
- identifying keypolyline
- polyline to add- Returns:
- a new multi-polyline
-
of
@NotNull public static @NotNull MultiPolyline of(@NotNull @NotNull String key, @NotNull @NotNull Polyline @NotNull ... polylines) Create a new multi-polyline.- Parameters:
key
- identifying keypolylines
- polylines to add- Returns:
- a new multi-polyline
-
of
@NotNull public static @NotNull MultiPolyline of(@NotNull @NotNull String key, @NotNull @NotNull Collection<@NotNull Polyline> polylines) Create a new multi-polyline.- Parameters:
key
- identifying keypolylines
- polylines to add- Returns:
- a new multi-polyline
-
getPolylines
Get the list of polylines in this multi-polyline.- Returns:
- list of polylines
-
clearPolylines
Clear the list of polylines in this multi-polyline.- Returns:
- this multi-polyline
-
addPolyline
Add a polyline to this multi-polyline.- Parameters:
polyline
- polyline to add- Returns:
- this multi-polyline
-
addPolyline
@NotNull public @NotNull MultiPolyline addPolyline(@NotNull @NotNull Polyline @NotNull ... polylines) Add polylines to this multi-polyline.- Parameters:
polylines
- polylines to add- Returns:
- this multi-polyline
-
addPolyline
@NotNull public @NotNull MultiPolyline addPolyline(@NotNull @NotNull Collection<@NotNull Polyline> polylines) Add polylines to this multi-polyline.- Parameters:
polylines
- polylines to add- Returns:
- this multi-polyline
-
removePolyline
Remove a polyline from this multi-polyline.- Parameters:
polyline
- polyline to remove- Returns:
- this multi-polyline
-
removePolyline
@NotNull public @NotNull MultiPolyline removePolyline(@NotNull @NotNull Polyline @NotNull ... polylines) Remove polylines from this multi-polyline.- Parameters:
polylines
- polylines to remove- Returns:
- this multi-polyline
-
removePolyline
@NotNull public @NotNull MultiPolyline removePolyline(@NotNull @NotNull Collection<@NotNull Polyline> polylines) Remove polylines from this multi-polyline.- Parameters:
polylines
- polylines to remove- Returns:
- this multi-polyline
-
toJson
@NotNull public @NotNull com.google.gson.JsonObject toJson()Description copied from interface:JsonSerializable
Jsonify this object.- Returns:
- object as json element
-
fromJson
@NotNull public static @NotNull MultiPolyline fromJson(@NotNull @NotNull com.google.gson.JsonObject obj) -
equals
-
hashCode
public int hashCode() -
toString
-