public static class PathOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
PathOptions |
build()
Builds the PathOptions new instance
|
PathOptions.Builder |
className(java.lang.String className)
Custom class name set on an element.
|
PathOptions.Builder |
clickable(java.lang.Boolean clickable)
If false, the vector will not emit mouse events and will act as a
part of the underlying map.
|
PathOptions.Builder |
color(java.lang.String color)
Stroke color.
|
PathOptions.Builder |
dashArray(java.lang.String dashArray)
A string that defines the stroke
dash pattern.
|
PathOptions.Builder |
fill(java.lang.Boolean fill)
Whether to fill the path with color.
|
PathOptions.Builder |
fillColor(java.lang.String fillColor)
Fill color.
|
PathOptions.Builder |
fillOpacity(java.lang.Number fillOpacity)
Fill opacity.
|
PathOptions.Builder |
fillRule(java.lang.String fillRule)
A string that defines how the inside of a shape is determined.
|
PathOptions.Builder |
lineCap(java.lang.String lineCap)
A string that defines
shape to be used at the end of the stroke.
|
PathOptions.Builder |
lineJoin(java.lang.String lineJoin)
A string that defines
shape to be used at the corners of the stroke.
|
PathOptions.Builder |
opacity(java.lang.Number opacity)
Stroke opacity.
|
PathOptions.Builder |
pointerEvents(java.lang.String pointerEvents)
Sets the pointer-events attribute on the path if SVG backend is used.
|
PathOptions.Builder |
stroke(java.lang.Boolean stroke)
Whether to draw stroke along the path.
|
PathOptions.Builder |
weight(java.lang.Number weight)
Stroke width in pixels.
|
public PathOptions.Builder stroke(java.lang.Boolean stroke)
stroke
- the strokepublic PathOptions.Builder color(java.lang.String color)
color
- the colorpublic PathOptions.Builder weight(java.lang.Number weight)
weight
- the weightpublic PathOptions.Builder opacity(java.lang.Number opacity)
opacity
- the opacitypublic PathOptions.Builder fill(java.lang.Boolean fill)
fill
- the fillpublic PathOptions.Builder fillColor(java.lang.String fillColor)
fillColor
- the fill colorpublic PathOptions.Builder fillOpacity(java.lang.Number fillOpacity)
fillOpacity
- the fill opacitypublic PathOptions.Builder fillRule(java.lang.String fillRule)
fillRule
- the fill rulepublic PathOptions.Builder dashArray(java.lang.String dashArray)
dashArray
- the dash arraypublic PathOptions.Builder lineCap(java.lang.String lineCap)
lineCap
- the line cappublic PathOptions.Builder lineJoin(java.lang.String lineJoin)
lineJoin
- the line joinpublic PathOptions.Builder clickable(java.lang.Boolean clickable)
clickable
- the clickablepublic PathOptions.Builder pointerEvents(java.lang.String pointerEvents)
pointerEvents
- the pointer eventspublic PathOptions.Builder className(java.lang.String className)
className
- the class namepublic PathOptions build()