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 |
| Constructor and Description |
|---|
PolylineOptions() |
| Modifier and Type | Method and Description |
|---|---|
PolylineOptions |
add(LatLng... points) |
PolylineOptions |
add(LatLng point) |
PolylineOptions |
addAll(java.lang.Iterable<LatLng> points) |
PolylineOptions |
alpha(float alpha) |
PolylineOptions |
color(int color)
Sets the color of the polyline.
|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
float |
getAlpha() |
int |
getColor() |
java.util.List<LatLng> |
getPoints() |
Polyline |
getPolyline()
Do not use this method.
|
float |
getWidth() |
int |
hashCode() |
PolylineOptions |
width(float width)
Sets the width of the polyline.
|
void |
writeToParcel(android.os.Parcel out,
int flags) |
public static final android.os.Parcelable.Creator<PolylineOptions> CREATOR
public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel out,
int flags)
writeToParcel in interface android.os.Parcelablepublic PolylineOptions add(LatLng point)
public PolylineOptions add(LatLng... points)
public PolylineOptions addAll(java.lang.Iterable<LatLng> points)
public PolylineOptions alpha(float alpha)
public float getAlpha()
public PolylineOptions color(int color)
color - - the color in ARGB formatpublic int getColor()
public Polyline getPolyline()
public float getWidth()
public PolylineOptions width(float width)
width - in pixelspublic java.util.List<LatLng> getPoints()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object