Defines options for a polygon.
For more information, read the Shapes developer guide.
|
PolygonOptions()
Creates polygon options.
|
| PolygonOptions | |
| PolygonOptions | |
| PolygonOptions | |
| PolygonOptions | |
| PolygonOptions |
clickable(boolean clickable)
Specifies whether this polygon is clickable.
|
| PolygonOptions |
fillColor(int color)
Specifies the polygon's fill color, as 32-bit ARGB.
|
| PolygonOptions |
geodesic(boolean geodesic)
Specifies whether to draw each segment of this polygon as a geodesic.
|
| int |
getFillColor()
Gets the fill color set for this
PolygonOptions
object.
|
| List<List<LatLng>> |
getHoles()
Gets the holes set for this
PolygonOptions
object.
|
| List<LatLng> |
getPoints()
Gets the outline set for this
PolygonOptions
object.
|
| int |
getStrokeColor()
Gets the stroke color set for this
PolygonOptions
object.
|
| int |
getStrokeJointType()
Gets the stroke joint type set in this
PolygonOptions
object for all vertices of the polygon's outline.
|
| List<PatternItem> |
getStrokePattern()
Gets the stroke pattern set in this
PolygonOptions
object for the polygon's outline.
|
| float |
getStrokeWidth()
Gets the stroke width set for this
PolygonOptions
object.
|
| float |
getZIndex()
Gets the zIndex set for this
PolygonOptions
object.
|
| boolean |
isClickable()
Gets the clickability setting for this
PolygonOptions
object.
|
| boolean |
isGeodesic()
Gets the geodesic setting for this
PolygonOptions
object.
|
| boolean |
isVisible()
Gets the visibility setting for this
PolygonOptions
object.
|
| PolygonOptions |
strokeColor(int color)
Specifies the polygon's stroke color, as 32-bit ARGB.
|
| PolygonOptions |
strokeJointType(int jointType)
Specifies the joint type for all vertices of the polygon's outline.
|
| PolygonOptions | |
| PolygonOptions |
strokeWidth(float width)
Specifies the polygon's stroke width, in display pixels.
|
| PolygonOptions |
visible(boolean visible)
Specifies the visibility for the polygon.
|
| void |
writeToParcel(Parcel out, int
flags)
|
| PolygonOptions |
zIndex(float zIndex)
Specifies the polygon's zIndex, i.e., the order in which it will be drawn.
|
Creates polygon options.
Adds vertices to the outline of the polygon being built.
| points | an array of LatLngs
that are added to the outline of the polygon. Must not be null. |
|---|
PolygonOptions
object with the given points added to the outline.Adds a vertex to the outline of the polygon being built.
| point | a LatLng
that is added to the outline of the polygon. Must not be null. |
|---|
PolygonOptions
object with the given point added to the outline.Adds vertices to the outline of the polygon being built.
| points | a list of LatLngs
that are added to the outline of the polygon. Must not be null. |
|---|
PolygonOptions
object with the given points added to the outline.Adds a hole to the polygon being built.
| points | an iterable of LatLngs
that represents a hole. Must not be null. |
|---|
PolygonOptions
object with the given hole added.Specifies whether this polygon is clickable. The default setting is
false
PolygonOptions
object with a new clickability setting.Specifies the polygon's fill color, as 32-bit ARGB. The default color is black (
0xff000000).
PolygonOptions
object with a new fill color set.Specifies whether to draw each segment of this polygon as a geodesic. The default
setting is false
PolygonOptions
object with a new geodesic setting.Gets the fill color set for this PolygonOptions
object.
Gets the holes set for this PolygonOptions
object.
List<LatLng>s specifying the holes of the
polygon.Gets the outline set for this PolygonOptions
object.
LatLngs
specifying the vertices of the outline of the polygon.Gets the stroke color set for this PolygonOptions
object.
Gets the stroke joint type set in this PolygonOptions
object for all vertices of the polygon's outline. See JointType
for possible values.
Gets the stroke pattern set in this PolygonOptions
object for the polygon's outline.
Gets the stroke width set for this PolygonOptions
object.
Gets the zIndex set for this PolygonOptions
object.
Gets the clickability setting for this PolygonOptions
object.
true if the polygon is clickable; false if it is
not.Gets the geodesic setting for this PolygonOptions
object.
true if the polygon segments should be geodesics; false
if they should not be.Gets the visibility setting for this PolygonOptions
object.
true if the polygon is to be visible; false if it is
not.Specifies the polygon's stroke color, as 32-bit ARGB. The default color is black (
0xff000000).
PolygonOptions
object with a new stroke color set.Specifies the joint type for all vertices of the polygon's outline.
See JointType
for allowed values. The default value JointType.DEFAULT
will be used if joint type is undefined or is not one of the allowed values.
PolygonOptions
object with a new stroke joint type set.Specifies a stroke pattern for the polygon's outline. The default stroke pattern is
solid, represented by null.
PolygonOptions
object with a new stroke pattern set.Specifies the polygon's stroke width, in display pixels. The default width is 10.
PolygonOptions
object with a new stroke width set.Specifies the visibility for the polygon. The default visibility is
true.
PolygonOptions
object with a new visibility setting.Specifies the polygon's zIndex, i.e., the order in which it will be drawn. See the documentation at the top of this class for more information about zIndex.
PolygonOptions
object with a new zIndex set.