HorizontalLegend
open class HorizontalLegend(var items: Collection<LegendItem>, var iconSizeDp: Float, var iconPaddingDp: Float, var lineSpacingDp: Float = 0.0f, var spacingDp: Float = 0.0f, val padding: MutableDimensions = emptyDimensions()) : Legend, Padding
HorizontalLegend displays legend items beside one another in lines.
Parameters
items
a Collection of LegendItems to be displayed by this HorizontalLegend.
iconSizeDp
defines the size of all LegendItem.icons.
iconPaddingDp
defines the padding between each LegendItem.icon and its corresponding LegendItem.label.
lineSpacingDp
defines the spacing between adjacent lines.
spacingDp
defines the horizontal spacing between adjacent LegendItems.
padding
defines the padding of the content.
Constructors
Link copied to clipboard
constructor(items: Collection<LegendItem>, iconSizeDp: Float, iconPaddingDp: Float, lineSpacingDp: Float = 0.0f, spacingDp: Float = 0.0f, padding: MutableDimensions = emptyDimensions())