LegendItem

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

Defines the appearance of an item of a Legend.

Parameters

icon

the Component used as the item’s icon.

label

the TextComponent used for the label.

labelText

the text content of the label.

Inheritors

Constructors

Link copied to clipboard
constructor(icon: Component, label: TextComponent, labelText: 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: MeasureContext, availableWidth: Float, iconPaddingDp: Float, iconSizeDp: Float): Float

Measures the height of the label.

Link copied to clipboard
fun getLabelWidth(context: MeasureContext, availableWidth: Float, iconPaddingDp: Float, iconSizeDp: Float): Float

Measures the width of the label.

Link copied to clipboard
fun getWidth(context: MeasureContext, availableWidth: Float, iconPaddingDp: Float, iconSizeDp: Float): Float

Measures the width of this LegendItem.