Dashed

data class Dashed(val thicknessDp: Float = Defaults.LINE_SPEC_THICKNESS_DP, val cap: Paint.Cap = Paint.Cap.ROUND, val dashLengthDp: Float = Defaults.LINE_DASH_LENGTH, val gapLengthDp: Float = Defaults.LINE_GAP_LENGTH) : LineCartesianLayer.LineStroke

Produces a dashed stroke.

Constructors

Link copied to clipboard
constructor(thicknessDp: Float = Defaults.LINE_SPEC_THICKNESS_DP, cap: Paint.Cap = Paint.Cap.ROUND, dashLengthDp: Float = Defaults.LINE_DASH_LENGTH, gapLengthDp: Float = Defaults.LINE_GAP_LENGTH)

Properties

Link copied to clipboard

the stroke cap.

Link copied to clipboard

the dash length (in dp).

Link copied to clipboard

the gap length (in dp).

Link copied to clipboard
open override val thicknessDp: Float

The stroke thickness (in dp).

Functions

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

Applies the stroke style to paint.