LineType

sealed class LineType

Represent different types of line to be drawn

See also

Draws straight lines with no curves, just a connection from one point to another.

Draws curved lines using cubic paths It has @param isDotted true if line has to be dotted else false. Also @param intervals Array of "on" and "off" distances for the dashed line segments phase - Pixel offset into the intervals array

Inheritors

Types

Link copied to clipboard
data class SmoothCurve(val isDotted: Boolean = false, var intervals: FloatArray = floatArrayOf(30f, 10f)) : LineType
Link copied to clipboard
data class Straight(val isDotted: Boolean = false, var intervals: FloatArray = floatArrayOf(30f, 10f)) : LineType

Properties

Link copied to clipboard
abstract var intervals: FloatArray
Link copied to clipboard
abstract val isDotted: Boolean