Class HTMLLabels
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.HTMLLabels
-
- All Implemented Interfaces:
Serializable
public class HTMLLabels extends AbstractConfigurationObject
HTML labels that can be positioned anywhere in the chart area.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HTMLLabels()
HTMLLabels(HTMLLabelItem... items)
Constructs a HTMLLabels instance with the given label itemsHTMLLabels(Style style, HTMLLabelItem... items)
Constructs a HTMLLabels instance with a style shared for all the labels and the given label items
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HTMLLabelItem[]
getItems()
Style
getStyle()
void
setItems(HTMLLabelItem... items)
Sets the label itemsvoid
setStyle(Style style)
Sets the CSS style shared for all the labels.
-
-
-
Constructor Detail
-
HTMLLabels
public HTMLLabels()
-
HTMLLabels
public HTMLLabels(HTMLLabelItem... items)
Constructs a HTMLLabels instance with the given label items- Parameters:
items
-
-
HTMLLabels
public HTMLLabels(Style style, HTMLLabelItem... items)
Constructs a HTMLLabels instance with a style shared for all the labels and the given label items- Parameters:
items
-
-
-
Method Detail
-
getItems
public HTMLLabelItem[] getItems()
- Returns:
- An array of the label items
-
setItems
public void setItems(HTMLLabelItem... items)
Sets the label items- Parameters:
items
-
-
getStyle
public Style getStyle()
- See Also:
setStyle(Style)
-
setStyle
public void setStyle(Style style)
Sets the CSS style shared for all the labels.- Parameters:
style
-
-
-