StrokeStyle

public final classStrokeStyleextendsObject
implementsParcelable

Describes the drawing style for one-dimensional entities such as polylines.

Nested Class Summary

class StrokeStyle.Builder Builder forStrokeStyle.

Inherited Constant Summary

Public Method Summary

staticStrokeStyle.Builder
colorBuilder(int color)
Creates a solid color stroke style builder.
StampStyle
getStamp()
Gets stamp style of a stroke.
staticStrokeStyle.Builder
gradientBuilder(int fromColor, int toColor)
Creates a gradient stroke style interpolating fromfromColorto toColorbuilder.
boolean
isVisible()
Gets visibility of thisStrokeStyle.
staticStrokeStyle.Builder
transparentColorBuilder()
Creates a transparent stroke style builder.

Inherited Method Summary

Public Methods

public staticStrokeStyle.Builder colorBuilder(int color)

Creates a solid color stroke style builder.

Parameters
color the color of the stroke.
Returns
  • a builder of solid color stroke style.

publicStampStyle getStamp()

Gets stamp style of a stroke.

The stamp style's image is repeated over the stroke. If the image has transparent or semi-transparent portions, the underlying stroke color will show through in those places. Otherwise, the stamped texture/image will completely cover the base stroke.

Returns
  • the stamp style of a stroke.

public staticStrokeStyle.Builder gradientBuilder(int fromColor, int toColor)

Creates a gradient stroke style interpolating fromfromColorto toColorbuilder.

Parameters
fromColor color at the beginning of the stroke.
toColor color at the end of the stroke.
Returns
  • a builder of a gradient stroke style.

public booleanisVisible()

Gets visibility of thisStrokeStyle.

public staticStrokeStyle.Builder transparentColorBuilder()

Creates a transparent stroke style builder.

Returns
  • a builder of transparent color stroke style.