-
@Deprecated(message = Use `LegendItem` instead.) public final class VerticalLegend.Item extends LegendItem
Defines the appearance of an item of a VerticalLegend.
-
-
Field Summary
Fields Modifier and Type Field Description private final Componenticonprivate final TextComponentlabelprivate final CharSequencelabelText
-
Constructor Summary
Constructors Constructor Description VerticalLegend.Item(Component icon, TextComponent label, CharSequence labelText)
-
Method Summary
Modifier and Type Method Description ComponentgetIcon()TextComponentgetLabel()CharSequencegetLabelText()-
-
Constructor Detail
-
VerticalLegend.Item
VerticalLegend.Item(Component icon, TextComponent label, CharSequence labelText)
- Parameters:
icon- the Component used as the item’s icon.label- the TextComponent used for the label.labelText- the text content of the label.
-
-
Method Detail
-
getLabel
TextComponent getLabel()
-
getLabelText
CharSequence getLabelText()
-
-
-
-