LineStroke

sealed interface LineStroke

Defines the style of a LineCartesianLayer line’s stroke.

Inheritors

Types

Link copied to clipboard
data class Continuous(val thickness: Dp = Defaults.LINE_SPEC_THICKNESS_DP.dp, val cap: StrokeCap = StrokeCap.Butt) : LineCartesianLayer.LineStroke

Produces a continuous stroke.

Link copied to clipboard
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.

Properties

Link copied to clipboard
abstract val thickness: Dp

The stroke thickness.

Functions

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

Applies the stroke style to paint.