@Deprecated
public final class PolylineOptions
extends java.lang.Object
implements android.os.Parcelable
Polyline objects.| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<PolylineOptions> |
CREATOR
Deprecated.
|
| Constructor and Description |
|---|
PolylineOptions()
Deprecated.
Defines options for a polyline.
|
| Modifier and Type | Method and Description |
|---|---|
PolylineOptions |
add(LatLng... points)
Deprecated.
Adds vertices to the end of the polyline being built.
|
PolylineOptions |
add(LatLng point)
Deprecated.
Adds a vertex to the end of the polyline being built.
|
PolylineOptions |
addAll(java.lang.Iterable<LatLng> points)
Deprecated.
Adds vertices to the end of the polyline being built.
|
PolylineOptions |
alpha(float alpha)
Deprecated.
Set the alpha value of the polyline.
|
PolylineOptions |
color(int color)
Deprecated.
Sets the color of the polyline as a 32-bit ARGB color.
|
int |
describeContents()
Deprecated.
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
|
boolean |
equals(java.lang.Object o)
Deprecated.
Compares this
PolylineOptions object with another PolylineOptions and
determines if their color, alpha, width, and vertices match. |
float |
getAlpha()
Deprecated.
Gets the alpha set for this
PolylineOptions object. |
int |
getColor()
Deprecated.
Gets the color set for this
PolylineOptions object. |
java.util.List<LatLng> |
getPoints()
Deprecated.
Gets the points set for this
PolylineOptions object. |
Polyline |
getPolyline()
Deprecated.
Do not use this method.
|
float |
getWidth()
Deprecated.
Gets the width set for this
PolylineOptions object. |
int |
hashCode()
Deprecated.
Gives an integer which can be used as the bucket number for storing elements of the set/map.
|
PolylineOptions |
width(float width)
Deprecated.
Sets the width of the polyline in screen pixels.
|
void |
writeToParcel(android.os.Parcel out,
int flags)
Deprecated.
Flatten this object in to a Parcel.
|
public static final android.os.Parcelable.Creator<PolylineOptions> CREATOR
public PolylineOptions()
public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel out,
int flags)
writeToParcel in interface android.os.Parcelableout - The Parcel in which the object should be written.flags - Additional flags about how the object should be written. May be 0 or
Parcelable.PARCELABLE_WRITE_RETURN_VALUE.public PolylineOptions add(LatLng point)
point - LatLng point to be added to polyline geometry.PolylineOptions object with the given point on the end.public PolylineOptions add(LatLng... points)
points - LatLng points defining the polyline geometry.PolylineOptions object with the given point on the end.public PolylineOptions addAll(java.lang.Iterable<LatLng> points)
points - Iterable list made up of LatLng points defining the polyline
geometryPolylineOptions object with the given points on the end.public PolylineOptions alpha(float alpha)
alpha - float value between 0 (not visible) and 1.PolylineOptions object with the given polyline alpha value.public float getAlpha()
PolylineOptions object.public PolylineOptions color(int color)
color - 32-bit ARGB color.PolylineOptions object with a new color set.public int getColor()
PolylineOptions object.public Polyline getPolyline()
public float getWidth()
PolylineOptions object.public PolylineOptions width(float width)
width - float value defining width of polyline using unit pixels.PolylineOptions object with a new width set.public java.util.List<LatLng> getPoints()
PolylineOptions object.List of LatLngs specifying the vertices of the polyline.public boolean equals(java.lang.Object o)
PolylineOptions object with another PolylineOptions and
determines if their color, alpha, width, and vertices match.equals in class java.lang.Objecto - Another PolylineOptions to compare with this object.PolylineOptions object.
Else, false.public int hashCode()
hashCode in class java.lang.Object© 2015–2019 Mapbox. All rights reserved.