AI-generated Key Takeaways
-
StyleSpan describes the style for a region of a polyline.
-
StyleSpan implements the Parcelable interface.
-
StyleSpan has several constructors to create a span with a specified style or color and length in segments.
-
StyleSpan provides methods to get the length of the span in segments and its style.
Describes the style for some region of a polyline.
Inherited Constant Summary
Public Constructor Summary
|
StyleSpan(StrokeStyle
style, double segments)
Creates a span with the given
style and length in number of
segments.
|
|
|
StyleSpan(int color)
Creates a solid color span of length one segment.
|
|
|
StyleSpan(int color, double segments)
Creates a solid color span with a given number of segments.
|
Public Method Summary
| double |
getSegments()
Gets the length of this span in number of segments.
|
| StrokeStyle |
getStyle()
Gets the style of this span.
|
Inherited Method Summary
Public Constructors
public StyleSpan (StrokeStyle style, double segments)
Creates a span with the given style and length in number of
segments.
Parameters
| style | the style of this span. |
|---|---|
| segments | the length of this span in number of segments. |
public StyleSpan (StrokeStyle style)
Creates a span with the given style of length one segment.
Parameters
| style | the style of this span. |
|---|
public StyleSpan (int color)
Creates a solid color span of length one segment.
Parameters
| color | the color of this span. |
|---|
public StyleSpan (int color, double segments)
Creates a solid color span with a given number of segments.
Parameters
| color | the color of this span. |
|---|---|
| segments | the length of this span in number of segments. |
Public Methods
public double getSegments ()
Gets the length of this span in number of segments.
public StrokeStyle getStyle ()
Gets the style of this span.