LegendItem
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
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.