Constructor and Description |
---|
PathOptions()
Creates a PathOptions object
|
Modifier and Type | Method and Description |
---|---|
PathOptions |
setClassName(String className)
Sets className option
|
PathOptions |
setClickable(boolean clickable)
Sets clickable option
|
PathOptions |
setColor(String color)
Sets color option
|
PathOptions |
setDashArray(String dashArray)
Sets dashArray option
|
PathOptions |
setFill(boolean fill)
Sets fill option
|
PathOptions |
setFillColor(String fillColor)
Sets fillColor option
|
PathOptions |
setFillOpacity(double fillOpacity)
Sets fillOpacity option
|
PathOptions |
setLineCap(String lineCap)
Sets lineCap option
|
PathOptions |
setLineJoin(String lineJoin)
Sets lineJoin option
|
PathOptions |
setOpacity(double opacity)
Sets opacity option
|
PathOptions |
setPointerEvents(String pointerEvents)
Sets pointerEvents option
|
PathOptions |
setStroke(boolean stroke)
Sets stroke option
|
PathOptions |
setWeight(int weight)
Sets weight option
|
public PathOptions setStroke(boolean stroke)
stroke
- Whether to draw stroke along the path. Set it to
false
to disable borders on polygons or circles.public PathOptions setColor(String color)
color
- Stroke color.public PathOptions setWeight(int weight)
weight
- Stroke width in pixels.public PathOptions setOpacity(double opacity)
opacity
- Stroke opacity.public PathOptions setFill(boolean fill)
fill
- Whether to fill the path with color. Set it to
false
to disable filling on polygons or circles.public PathOptions setFillColor(String fillColor)
fillColor
- Fill color.public PathOptions setFillOpacity(double fillOpacity)
fillOpacity
- Fill opacity.public PathOptions setDashArray(String dashArray)
dashArray
- A string that defines the stroke
dash
pattern. Doesn't work on canvas-powered layers (e.g. Android 2).public PathOptions setLineCap(String lineCap)
lineCap
- A string that defines
shape
to be used at the end of the stroke.public PathOptions setLineJoin(String lineJoin)
lineJoin
- A string that defines
shape
to be used at the corners of the stroke.public PathOptions setClickable(boolean clickable)
clickable
- If false
, the vector will not emit mouse
events and will act as a part of the underlying map.public PathOptions setPointerEvents(String pointerEvents)
pointerEvents
- Sets the pointer-events
attribute on
the path if SVG backend is used.public PathOptions setClassName(String className)
className
- Custom class name set on an element.Copyright © 2017. All rights reserved.