public static class StaticPolylineAnnotation.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
StaticPolylineAnnotation |
build()
Call to build a new instance of a StaticPolylineAnnotation object.
|
java.lang.String |
getFillColor()
Provides a String representing the hex code for the fill color.
|
java.lang.Float |
getFillOpacity()
If set, a number between 0 (transparent) and 1 (opaque) for the fill opacity.
|
java.lang.String |
getPolyline()
The current polyline string being used for the paths geometry.
|
java.lang.String |
getStrokeColor()
Provides a String representing the hex code for the line stroke.
|
java.lang.Float |
getStrokeOpacity()
A Float between 0 (transparent) and 1 (opaque) representing the lines opacity.
|
java.lang.Double |
getStrokeWidth()
Get the currently set stroke width for the line.
|
StaticPolylineAnnotation.Builder |
setFillColor(java.lang.String fillColor)
Optionally pass a 3- or 6-digit hexadecimal color code for the fill.
|
StaticPolylineAnnotation.Builder |
setFillOpacity(float fillOpacity)
Optionally pass a number between 0 (transparent) and 1 (opaque) for the fill opacity.
|
StaticPolylineAnnotation.Builder |
setPolyline(java.lang.String polyline)
A valid encoded polyline encoded as a URI component.
|
StaticPolylineAnnotation.Builder |
setStrokeColor(java.lang.String strokeColor)
A 3- or 6-digit hexadecimal color code for the line stroke.
|
StaticPolylineAnnotation.Builder |
setStrokeOpacity(float strokeOpacity)
A number between 0 (transparent) and 1 (opaque) for line stroke opacity.
|
StaticPolylineAnnotation.Builder |
setStrokeWidth(double strokeWidth)
Positive Double value for line stroke width.
|
public java.lang.Double getStrokeWidth()
public StaticPolylineAnnotation.Builder setStrokeWidth(double strokeWidth)
ServicesException will
occur.strokeWidth - A positive double value.public java.lang.String getStrokeColor()
public StaticPolylineAnnotation.Builder setStrokeColor(java.lang.String strokeColor)
ServicesException will occur.strokeColor - A string containing a 3 or 6 digit hexadecimal color code.public java.lang.Float getStrokeOpacity()
public StaticPolylineAnnotation.Builder setStrokeOpacity(float strokeOpacity)
ServicesException will occur.strokeOpacity - a float value between 0 and 1 representing the lines opacity.public java.lang.String getFillColor()
public StaticPolylineAnnotation.Builder setFillColor(java.lang.String fillColor)
ServicesException will occur.fillColor - a string containing a 3 or 6 digit hexadecimal color code.public java.lang.Float getFillOpacity()
public StaticPolylineAnnotation.Builder setFillOpacity(float fillOpacity)
ServicesException will occur.fillOpacity - a Float value between 0 and 1.public java.lang.String getPolyline()
PolylineUtils.decode(String, int) to decode the string using
precision 5.public StaticPolylineAnnotation.Builder setPolyline(java.lang.String polyline)
PolylineUtils.encode(List, int) utility.polyline - A string containing the paths geometry information.public StaticPolylineAnnotation build() throws ServicesException
ServicesException - If any issues are recognized that could cause API errors.