HorizontalLegend

open class HorizontalLegend<M : MeasuringContext, D : DrawingContext>(items: AdditionScope<LegendItem>.(ExtraStore) -> Unit, iconSize: Dp = Defaults.LEGEND_ICON_SIZE.dp, iconLabelSpacing: Dp = Defaults.LEGEND_ICON_LABEL_SPACING.dp, rowSpacing: Dp = Defaults.LEGEND_ROW_SPACING.dp, columnSpacing: Dp = Defaults.LEGEND_COLUMN_SPACING.dp, padding: Insets = Insets.Zero) : Legend<M, D>

HorizontalLegend displays legend items beside one another in lines.

Constructors

Link copied to clipboard
constructor(items: AdditionScope<LegendItem>.(ExtraStore) -> Unit, iconSize: Dp = Defaults.LEGEND_ICON_SIZE.dp, iconLabelSpacing: Dp = Defaults.LEGEND_ICON_LABEL_SPACING.dp, rowSpacing: Dp = Defaults.LEGEND_ROW_SPACING.dp, columnSpacing: Dp = Defaults.LEGEND_COLUMN_SPACING.dp, padding: Insets = Insets.Zero)

Properties

Link copied to clipboard
open override var bounds: Rect

The bounds of the abstract component.

Functions

Link copied to clipboard
open override fun draw(context: D)

Draws the legend.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun getHeight(context: M, maxWidth: Float): Float

Returns the height of the legend.

Link copied to clipboard
open override fun hashCode(): Int