Dashed

data class Dashed(    val thickness: Dp = Defaults.LINE_SPEC_THICKNESS_DP.dp,     val cap: StrokeCap = StrokeCap.Butt,     val dashLength: Dp = Defaults.LINE_DASH_LENGTH.dp,     val gapLength: Dp = Defaults.LINE_GAP_LENGTH.dp) : LineCartesianLayer.LineStroke

Produces a dashed stroke.

Constructors

Link copied to clipboard
constructor(    thickness: Dp = Defaults.LINE_SPEC_THICKNESS_DP.dp,     cap: StrokeCap = StrokeCap.Butt,     dashLength: Dp = Defaults.LINE_DASH_LENGTH.dp,     gapLength: Dp = Defaults.LINE_GAP_LENGTH.dp)

Properties

Link copied to clipboard

the stroke cap.

Link copied to clipboard

the dash length.

Link copied to clipboard

the gap length.

Link copied to clipboard
open override val thickness: Dp

The stroke thickness.

Functions

Link copied to clipboard
open override fun apply(context: CartesianDrawingContext, paint: Paint)

Applies the stroke style to paint.