public abstract static class StaticPolylineAnnotation.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract StaticPolylineAnnotation |
build()
This uses the provided parameters set using the
StaticPolylineAnnotation.Builder and creates a new
StaticMarkerAnnotation object which can be passed into the MapboxStaticMap
request. |
StaticPolylineAnnotation.Builder |
fillColor(int red,
int green,
int blue)
Set the inner line fill color.
|
abstract StaticPolylineAnnotation.Builder |
fillColor(java.lang.String color)
Set the inner line fill color.
|
abstract StaticPolylineAnnotation.Builder |
fillOpacity(java.lang.Float fillOpacity)
Value between 0, completely transparent, and 1, opaque for the line fill.
|
abstract StaticPolylineAnnotation.Builder |
polyline(java.lang.String polyline)
The current polyline string being used for the paths geometry.
|
StaticPolylineAnnotation.Builder |
strokeColor(int red,
int green,
int blue)
Set the line outer stroke color.
|
abstract StaticPolylineAnnotation.Builder |
strokeColor(java.lang.String strokeColor)
Set the line outer stroke color.
|
abstract StaticPolylineAnnotation.Builder |
strokeOpacity(java.lang.Float strokeOpacity)
Value between 0, completely transparent, and 1, opaque for the line stroke.
|
abstract StaticPolylineAnnotation.Builder |
strokeWidth(java.lang.Double strokeWidth)
Defines the line stroke width for the path.
|
public abstract StaticPolylineAnnotation.Builder strokeWidth(@Nullable java.lang.Double strokeWidth)
strokeWidth - a double value defining the stroke widthpublic abstract StaticPolylineAnnotation.Builder strokeColor(@Nullable java.lang.String strokeColor)
strokeColor - string representing hex color for the stroke colorpublic StaticPolylineAnnotation.Builder strokeColor(int red, int green, int blue)
red - the value of the stroke colorgreen - the value of the stroke colorblue - the value of the stroke colorpublic abstract StaticPolylineAnnotation.Builder strokeOpacity(@Nullable java.lang.Float strokeOpacity)
strokeOpacity - value between 0 and 1 representing the stroke opacitypublic abstract StaticPolylineAnnotation.Builder fillColor(@Nullable java.lang.String color)
color - string representing hex color for the fill colorpublic StaticPolylineAnnotation.Builder fillColor(int red, int green, int blue)
red - the value of the fill colorgreen - the value of the fill colorblue - the value of the fill colorpublic abstract StaticPolylineAnnotation.Builder fillOpacity(@Nullable java.lang.Float fillOpacity)
fillOpacity - value between 0 and 1 representing the fill opacitypublic abstract StaticPolylineAnnotation.Builder polyline(@NonNull java.lang.String polyline)
PolylineUtils.decode(String, int) to decode the string using
precision 5.polyline - a String containing the paths geometry informationpublic abstract StaticPolylineAnnotation build()
StaticPolylineAnnotation.Builder and creates a new
StaticMarkerAnnotation object which can be passed into the MapboxStaticMap
request.StaticPolylineAnnotation