AI-generated Key Takeaways
-
FeatureStyle.Builder is a builder that helps configure an instance of FeatureStyle.
-
You can set the fill color, point radius, stroke color, and stroke width of a FeatureStyle using the builder.
-
The point radius is set in screen pixels and is between 0 and 128.
-
The stroke width is set in screen pixels and has a default value of 2.
A builder that helps configure an instance of FeatureStyle.
Public Constructor Summary
|
Builder()
|
Public Method Summary
| FeatureStyle |
build()
|
| FeatureStyle.Builder |
fillColor(int fillColor)
Sets the fillColor of this
FeatureStyle
in ARGB format as defined by the Color
class.
|
| FeatureStyle.Builder |
pointRadius(float pointRadius)
Sets the pointRadius between 0 and 128 of this
FeatureStyle
in screen pixels.
|
| FeatureStyle.Builder |
strokeColor(int strokeColor)
Sets the strokeColor of this
FeatureStyle
in ARGB format as defined by the Color
class.
|
| FeatureStyle.Builder |
strokeWidth(float strokeWidth)
Sets the strokeWidth of this
FeatureStyle
in screen pixels.
|
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public FeatureStyle build ()
public FeatureStyle.Builder fillColor (int fillColor)
Sets the fillColor of this FeatureStyle
in ARGB format as defined by the Color
class.
public FeatureStyle.Builder pointRadius (float pointRadius)
Sets the pointRadius between 0 and 128 of this FeatureStyle
in screen pixels. Only applies to point geometries.
public FeatureStyle.Builder strokeColor (int strokeColor)
Sets the strokeColor of this FeatureStyle
in ARGB format as defined by the Color
class.
public FeatureStyle.Builder strokeWidth (float strokeWidth)
Sets the strokeWidth of this FeatureStyle
in screen pixels. The default value is 2.