Class HTMLLabelItem
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.HTMLLabelItem
-
- All Implemented Interfaces:
Serializable
public class HTMLLabelItem extends AbstractConfigurationObject
A HTML label that can be positioned anywhere in the chart area.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HTMLLabelItem(String html)
Constructs a HTMLLabelItem with the given HTML contentHTMLLabelItem(String html, Style style)
Constructs a HTMLLabelItem with the given HTML content and style
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHtml()
Style
getStyle()
void
setHtml(String html)
Sets the inner HTML or text for the label.void
setStyle(Style style)
Sets the CSS style for the label.
-
-
-
Method Detail
-
getHtml
public String getHtml()
- See Also:
setHtml(String)
-
setHtml
public void setHtml(String html)
Sets the inner HTML or text for the label. Defaults to "".- Parameters:
html
-
-
getStyle
public Style getStyle()
- See Also:
setStyle(Style)
-
setStyle
public void setStyle(Style style)
Sets the CSS style for the label. To position the label, useStyle.setLeft(String)
andStyle.setTop(String)
.- Parameters:
style
-
-
-