LegendItem

open class LegendItem(val icon: Component, val labelComponent: TextComponent, val label: CharSequence)

Defines the appearance of an item of a Legend.

Parameters

icon

used as the icon.

labelComponent

the label TextComponent.

label

the label text.

Constructors

Link copied to clipboard
constructor(icon: Component, labelComponent: TextComponent, label: CharSequence)

Properties

Link copied to clipboard
open val icon: Component
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun getLabelHeight(context: MeasuringContext, maxWidth: Float, iconPaddingDp: Float, iconSizeDp: Float): Float

Measures the height of the label.

Link copied to clipboard
fun getLabelWidth(context: MeasuringContext, maxWidth: Float, iconPaddingDp: Float, iconSizeDp: Float): Float

Measures the width of the label.

Link copied to clipboard
fun getWidth(context: MeasuringContext, maxWidth: Float, iconPaddingDp: Float, iconSizeDp: Float): Float

Measures the width of this LegendItem.