A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/android/reference/com/google/android/gms/maps/model/PolygonOptions below:

PolygonOptions | Google Play services

PolygonOptions

Stay organized with collections Save and categorize content based on your preferences.

Defines options for a polygon.

Developer Guide

For more information, read the Shapes developer guide.

Inherited Constant Summary From interface android.os.Parcelable int CONTENTS_FILE_DESCRIPTOR int PARCELABLE_WRITE_RETURN_VALUE Public Constructor Summary Public Method Summary Inherited Method Summary From class java.lang.Object Object

clone()

boolean void

finalize()

final Class<?>

getClass()

int

hashCode()

final void

notify()

final void

notifyAll()

String

toString()

final void

wait(long arg0, int arg1)

final void

wait(long arg0)

final void

wait()

From interface android.os.Parcelable abstract int

describeContents()

abstract void writeToParcel

(

Parcel

arg0, int arg1)

Public Constructors Public Methods public PolygonOptions add (LatLng... points)

Adds vertices to the outline of the polygon being built.

Parameters points an array of LatLngs that are added to the outline of the polygon. Must not be null. Returns public PolygonOptions add (LatLng point)

Adds a vertex to the outline of the polygon being built.

Parameters point a LatLng that is added to the outline of the polygon. Must not be null. Returns public PolygonOptions addAll (Iterable<LatLng> points)

Adds vertices to the outline of the polygon being built.

Parameters points a list of LatLngs that are added to the outline of the polygon. Must not be null. Returns public PolygonOptions addHole (Iterable<LatLng> points)

Adds a hole to the polygon being built.

Parameters points an iterable of LatLngs that represents a hole. Must not be null. public PolygonOptions clickable (boolean clickable)

Specifies whether this polygon is clickable. The default setting is false

public PolygonOptions fillColor (int color)

Specifies the polygon's fill color, as 32-bit ARGB. The default color is black ( 0xff000000).

public PolygonOptions geodesic (boolean geodesic)

Specifies whether to draw each segment of this polygon as a geodesic. The default setting is false

public int getFillColor ()

Gets the fill color set for this PolygonOptions object.

Returns public List<List<LatLng>> getHoles ()

Gets the holes set for this PolygonOptions object.

Returns public List<LatLng> getPoints ()

Gets the outline set for this PolygonOptions object.

Returns public int getStrokeColor ()

Gets the stroke color set for this PolygonOptions object.

Returns public int getStrokeJointType ()

Gets the stroke joint type set in this PolygonOptions object for all vertices of the polygon's outline. See JointType for possible values.

Returns public List<PatternItem> getStrokePattern ()

Gets the stroke pattern set in this PolygonOptions object for the polygon's outline.

Returns public float getStrokeWidth ()

Gets the stroke width set for this PolygonOptions object.

Returns public float getZIndex ()

Gets the zIndex set for this PolygonOptions object.

Returns public boolean isClickable ()

Gets the clickability setting for this PolygonOptions object.

Returns public boolean isGeodesic ()

Gets the geodesic setting for this PolygonOptions object.

Returns public boolean isVisible ()

Gets the visibility setting for this PolygonOptions object.

Returns public PolygonOptions strokeColor (int color)

Specifies the polygon's stroke color, as 32-bit ARGB. The default color is black ( 0xff000000).

public PolygonOptions strokeJointType (int jointType)

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.

public PolygonOptions strokePattern (List<PatternItem> pattern)

Specifies a stroke pattern for the polygon's outline. The default stroke pattern is solid, represented by null.

public PolygonOptions strokeWidth (float width)

Specifies the polygon's stroke width, in display pixels. The default width is 10.

public PolygonOptions visible (boolean visible)

Specifies the visibility for the polygon. The default visibility is true.

public void writeToParcel (Parcel out, int flags) public PolygonOptions zIndex (float zIndex)

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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-31 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`PolygonOptions` defines properties like fill color, stroke color, width, and zIndex for polygons on a map."],["You can customize the polygon's outline by adding vertices and holes using methods like `add`, `addAll`, and `addHole`."],["Control the polygon's appearance with options for geodesic lines, stroke patterns, and joint types."],["Set the visibility and clickability of the polygon to manage user interaction."],["For detailed information and examples, refer to the Shapes developer guide."]]],["`PolygonOptions` defines settings for a polygon. Key actions include adding vertices or holes to the polygon's outline via `add`, `addAll`, and `addHole`. Users can set polygon properties like `fillColor`, `strokeColor`, `strokeWidth`, `strokePattern`, `strokeJointType`, `geodesic`, `zIndex`, `clickable`, and `visible`. Methods are also provided to get the current settings of these properties, for example using `getFillColor` or `isClickable`. Additionally, `writeToParcel` is available for data serialization.\n"]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4