LineStroke

sealed interface LineStroke

Defines the style of a LineCartesianLayer line’s stroke.

Inheritors

Types

Link copied to clipboard
object Companion

Provides access to LineStroke factory functions.

Link copied to clipboard
data class Continuous(val thicknessDp: Float = Defaults.LINE_SPEC_THICKNESS_DP, val cap: Paint.Cap = Paint.Cap.ROUND) : LineCartesianLayer.LineStroke

Produces a continuous stroke.

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

Properties

Link copied to clipboard
abstract val thicknessDp: Float

The stroke thickness (in dp).

Functions

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

Applies the stroke style to paint.