public final class PolygonOptions
extends java.lang.Object
implements android.os.Parcelable
Polygon objects.| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<PolygonOptions> |
CREATOR |
| Constructor and Description |
|---|
PolygonOptions() |
| Modifier and Type | Method and Description |
|---|---|
PolygonOptions |
add(LatLng... points) |
PolygonOptions |
add(LatLng point) |
PolygonOptions |
addAll(java.lang.Iterable<LatLng> points) |
PolygonOptions |
alpha(float alpha) |
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
PolygonOptions |
fillColor(int color)
Sets the color of the polygon.
|
float |
getAlpha() |
int |
getFillColor() |
java.util.List<LatLng> |
getPoints() |
Polygon |
getPolygon()
Do not use this method.
|
int |
getStrokeColor() |
int |
hashCode() |
PolygonOptions |
strokeColor(int color)
Sets the color of the stroke of the polygon.
|
void |
writeToParcel(android.os.Parcel out,
int flags) |
public static final android.os.Parcelable.Creator<PolygonOptions> CREATOR
public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel out,
int flags)
writeToParcel in interface android.os.Parcelablepublic PolygonOptions add(LatLng point)
public PolygonOptions add(LatLng... points)
public PolygonOptions addAll(java.lang.Iterable<LatLng> points)
public PolygonOptions alpha(float alpha)
public float getAlpha()
public PolygonOptions fillColor(int color)
color - - the color in ARGB formatpublic int getFillColor()
public Polygon getPolygon()
public PolygonOptions strokeColor(int color)
color - - the color in ARGB formatpublic int getStrokeColor()
public 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