LineBuilder

interface LineBuilder

A fluent-style builder interface for configuring optional properties of lines pointing from one Participant to another.

Functions

Link copied to clipboard
abstract fun label(content: @Composable () -> Unit): LineBuilder

Specifies a composable to use as the label for the line. In most cases this should be a Note or Label composable.

Link copied to clipboard
abstract fun style(style: LineStyle): LineBuilder

Specifies the LineStyle to use for the line and arrow. See the LineStyle documentation for more information.

Extensions

Link copied to clipboard
fun LineBuilder.arrowHeadType(type: ArrowHeadType): LineBuilder

The style of the arrow head drawn at the end of the line. See ArrowHeadType for possible values.

Link copied to clipboard
fun LineBuilder.color(color: Color): LineBuilder

Specifies the color of the line.

Sources

Link copied to clipboard