public final class
StyleSpan
extends AbstractSafeParcelable
Describes the style for some region of a polyline.
Inherited Constant Summary
Public Constructor Summary
|
StyleSpan(StrokeStyle style, double segments)
Constructor for generated SafeParcelable creator class.
|
|
|
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)
Constructor for generated SafeParcelable creator class. 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.