LegendItem
open class LegendItem(val icon: Component, val labelComponent: TextComponent, val label: CharSequence)
Defines the appearance of an item of a Legend.
Parameters
Functions
Link copied to clipboard
fun getLabelHeight(context: MeasuringContext, iconSizeDp: Float, iconLabelSpacingDp: Float, maxWidth: Float): Float
Measures the height of the label.
Link copied to clipboard
fun getLabelWidth(context: MeasuringContext, iconSizeDp: Float, iconLabelSpacingDp: Float, maxWidth: Float): Float
Measures the width of the label.
Link copied to clipboard
fun getWidth(context: MeasuringContext, iconSizeDp: Float, iconLabelSpacingDp: Float, maxWidth: Float): Float
Measures the width of this LegendItem.