Defines options for a polyline.
For more information, read the Shapes developer guide.
|
PolylineOptions()
Creates polyline options.
|
| PolylineOptions | |
| PolylineOptions | |
| PolylineOptions | |
| PolylineOptions | |
| PolylineOptions | |
| PolylineOptions | |
| PolylineOptions |
clickable(boolean clickable)
Specifies whether this polyline is clickable.
|
| PolylineOptions |
color(int color)
Sets the color of the polyline as a 32-bit ARGB color.
|
| PolylineOptions | |
| PolylineOptions |
geodesic(boolean geodesic)
Specifies whether to draw each segment of this polyline as a geodesic.
|
| int |
getColor()
Gets the color set for this
PolylineOptions
object.
|
| Cap |
getEndCap()
Gets the cap set for the end vertex in this
PolylineOptions
object.
|
| int |
getJointType()
Gets the joint type set in this
PolylineOptions
object for all vertices except the start and end vertices.
|
| List<PatternItem> |
getPattern()
Gets the stroke pattern set in this
PolylineOptions
object for the polyline.
|
| List<LatLng> |
getPoints()
Gets the points set for this
PolylineOptions
object.
|
| Cap |
getStartCap()
Gets the cap set for the start vertex in this
PolylineOptions
object.
|
| float |
getWidth()
Gets the width set for this
PolylineOptions
object.
|
| float |
getZIndex()
Gets the zIndex set for this
PolylineOptions
object.
|
| boolean |
isClickable()
Gets the clickability setting for this
PolylineOptions
object.
|
| boolean |
isGeodesic()
Gets the geodesic setting for this
PolylineOptions
object.
|
| boolean |
isVisible()
Gets the visibility setting for this
PolylineOptions
object.
|
| PolylineOptions |
jointType(int jointType)
Sets the joint type for all vertices of the polyline except the start and end
vertices.
|
| PolylineOptions | |
| PolylineOptions | |
| PolylineOptions |
visible(boolean visible)
Specifies the visibility for the polyline.
|
| PolylineOptions |
width(float width)
Sets the width of the polyline in screen pixels.
|
| void |
writeToParcel(Parcel out, int
flags)
|
| PolylineOptions |
zIndex(float zIndex)
Specifies the polyline's zIndex, i.e., the order in which it will be drawn.
|
Creates polyline options.
Adds vertices to the end of the polyline being built.
| points | an array of LatLngs
that are added to the end of the polyline. Must not be null. |
|---|
PolylineOptions
object with the given points on the end.Adds a vertex to the end of the polyline being built.
| point | a LatLng
that is added to the end of the polyline. Must not be null. |
|---|
PolylineOptions
object with the given point on the end.Adds vertices to the end of the polyline being built.
| points | an list of LatLngs
that are added to the end of the polyline. Must not be null. |
|---|
PolylineOptions
object with the given points on the end.Adds new style spans to the polyline being built.
| spans | the style spans that will be added to the polyline. |
|---|
PolylineOptions
object with new style spans added.Adds a new style span to the polyline being built.
| span | the style span that will be added to the polyline. |
|---|
PolylineOptions
object with new style span added.Adds new style spans to the polyline being built.
| spans | the style spans that will be added to the polyline. |
|---|
PolylineOptions
object with new style spans added.Specifies whether this polyline is clickable. The default setting is
false
PolylineOptions
object with a new clickability setting.Sets the color of the polyline as a 32-bit ARGB color. The default color is black (
0xff000000).
PolylineOptions
object with a new color set.Sets the cap at the end vertex of the polyline. The default end cap is
ButtCap.
PolylineOptions
object with a new end cap set.Specifies whether to draw each segment of this polyline as a geodesic. The default
setting is false
PolylineOptions
object with a new geodesic setting.Gets the color set for this PolylineOptions
object.
Gets the cap set for the end vertex in this PolylineOptions
object.
Gets the joint type set in this PolylineOptions
object for all vertices except the start and end vertices. See JointType
for possible values.
Gets the stroke pattern set in this PolylineOptions
object for the polyline.
Gets the points set for this PolylineOptions
object.
LatLngs
specifying the vertices of the polyline.Gets the cap set for the start vertex in this PolylineOptions
object.
Gets the width set for this PolylineOptions
object.
Gets the zIndex set for this PolylineOptions
object.
Gets the clickability setting for this PolylineOptions
object.
true if the polyline is clickable; false if it is
not.Gets the geodesic setting for this PolylineOptions
object.
true if the polyline segments should be geodesics;
false they should not be.Gets the visibility setting for this PolylineOptions
object.
true if the polyline is visible; false if it is
not.Sets the joint type for all vertices of the polyline except the start and end vertices.
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.
PolylineOptions
object with a new joint type set.Sets the stroke pattern for the polyline. The default stroke pattern is solid,
represented by null.
PolylineOptions
object with a new stroke pattern set.Sets the cap at the start vertex of the polyline. The default start cap is
ButtCap.
PolylineOptions
object with a new start cap set.Specifies the visibility for the polyline. The default visibility is
true.
PolylineOptions
object with a new visibility setting.Sets the width of the polyline in screen pixels. The default is 10.
PolylineOptions
object with a new width set.Specifies the polyline'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.
PolylineOptions
object with a new zIndex set.