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