@Deprecated
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
Deprecated.
|
| Constructor and Description |
|---|
PolygonOptions()
Deprecated.
Defines options for a polygon.
|
| Modifier and Type | Method and Description |
|---|---|
PolygonOptions |
add(LatLng... points)
Deprecated.
Adds vertices to the outline of the polygon being built.
|
PolygonOptions |
add(LatLng point)
Deprecated.
Adds a vertex to the outline of the polygon being built.
|
PolygonOptions |
addAll(java.lang.Iterable<LatLng> points)
Deprecated.
Adds vertices to the outline of the polygon being built.
|
PolygonOptions |
addAllHoles(java.lang.Iterable<java.util.List<LatLng>> holes)
Deprecated.
Adds holes to the outline of the polygon being built.
|
PolygonOptions |
addHole(java.util.List<LatLng>... holes)
Deprecated.
Adds holes to the outline of the polygon being built.
|
PolygonOptions |
addHole(java.util.List<LatLng> hole)
Deprecated.
Adds a hole to the outline of the polygon being built.
|
PolygonOptions |
alpha(float alpha)
Deprecated.
Set the alpha value of the polyline.
|
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
PolygonOptions object with another PolygonOptions and
determines if their color, alpha, stroke color, and vertices match. |
PolygonOptions |
fillColor(int color)
Deprecated.
Specifies the polygon's fill color, as 32-bit ARGB.
|
float |
getAlpha()
Deprecated.
Gets the alpha set for this
PolygonOptions object. |
int |
getFillColor()
Deprecated.
Gets the fill color set for this
PolygonOptions object. |
java.util.List<java.util.List<LatLng>> |
getHoles()
Deprecated.
Gets the holes set for this
PolygonOptions object. |
java.util.List<LatLng> |
getPoints()
Deprecated.
Gets the points set for this
PolygonOptions object. |
Polygon |
getPolygon()
Deprecated.
Do not use this method.
|
int |
getStrokeColor()
Deprecated.
Gets the stroke color set for this
PolygonOptions object. |
int |
hashCode()
Deprecated.
Gives an integer which can be used as the bucket number for storing elements of the set/map.
|
PolygonOptions |
strokeColor(int color)
Deprecated.
Specifies the polygon's stroke color, as 32-bit ARGB.
|
void |
writeToParcel(android.os.Parcel out,
int flags)
Deprecated.
Flatten this object in to a Parcel.
|
public static final android.os.Parcelable.Creator<PolygonOptions> CREATOR
public PolygonOptions()
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 PolygonOptions add(LatLng point)
point - LatLng point to be added to polygon geometry.PolygonOptions object with the given point added to the outline.public PolygonOptions add(LatLng... points)
points - LatLng points to be added to polygon geometry.PolygonOptions object with the given points added to the outline.public PolygonOptions addAll(java.lang.Iterable<LatLng> points)
points - Iterable list made up of LatLng points defining the polygon
geometryPolygonOptions object with the given points added to the outline.public PolygonOptions addHole(java.util.List<LatLng> hole)
hole - List list made up of LatLng points defining the holePolygonOptions object with the given hole added to the outline.public PolygonOptions addHole(java.util.List<LatLng>... holes)
holes - List list made up of LatLng holes to be added to polygon geometryPolygonOptions object with the given holes added to the outline.public PolygonOptions addAllHoles(java.lang.Iterable<java.util.List<LatLng>> holes)
holes - Iterable list made up of List list of LatLng holes defining the hole geometryPolygonOptions object with the given holes added to the outline.public PolygonOptions alpha(float alpha)
alpha - float value between 0 (not visible) and 1.PolygonOptions object with the given polygon alpha value.public float getAlpha()
PolygonOptions object.public PolygonOptions fillColor(int color)
color - 32-bit ARGB color.PolylineOptions object with a new color set.public int getFillColor()
PolygonOptions object.public Polygon getPolygon()
public PolygonOptions strokeColor(int color)
color - 32-bit ARGB color.PolygonOptions object with a new stroke color set.public int getStrokeColor()
PolygonOptions object.public java.util.List<LatLng> getPoints()
PolygonOptions object.LatLng points defining the polygon.public java.util.List<java.util.List<LatLng>> getHoles()
PolygonOptions object.List of List of LatLng points defining the holes.public boolean equals(java.lang.Object o)
PolygonOptions object with another PolygonOptions and
determines if their color, alpha, stroke color, and vertices match.equals in class java.lang.Objecto - Another PolygonOptions to compare with this object.PolygonOptions
PolygonOptions object. Else, false.public int hashCode()
hashCode in class java.lang.Object© 2015–2019 Mapbox. All rights reserved.