We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.charts.model.
Class HTMLLabelItem
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.HTMLLabelItem
-
All Implemented Interfaces:
public class HTMLLabelItem extends AbstractConfigurationObject
A HTML label that can be positioned anywhere in the chart area.
See Also:
-
-
Constructor Summary
Constructors Constructor and Description HTMLLabelItem(String html)
Constructs a HTMLLabelItem with the given HTML content
HTMLLabelItem(String html, LabelStyle style)
Constructs a HTMLLabelItem with the given HTML content and style
-
Method Summary
All Methods Modifier and Type Method and Description String
getHtml()
LabelStyle
getStyle()
void
setHtml(String html)
Sets the inner HTML or text for the label.
void
setStyle(LabelStyle style)
Sets the CSS style for the label.
-
-
-
Constructor Detail
-
HTMLLabelItem
public HTMLLabelItem(String html)
Constructs a HTMLLabelItem with the given HTML content
Parameters:
html
-
-
HTMLLabelItem
public HTMLLabelItem(String html, LabelStyle style)
Constructs a HTMLLabelItem with the given HTML content and style
Parameters:
html
-style
-
-
-
Method Detail
-
getHtml
public String getHtml()
See Also:
-
setHtml
public void setHtml(String html)
Sets the inner HTML or text for the label. Defaults to "".
Parameters:
html
-
-
getStyle
public LabelStyle getStyle()
See Also:
-
setStyle
public void setStyle(LabelStyle style)
Sets the CSS style for the label. To position the label, use
LabelStyle.setLeft(String)
andLabelStyle.setTop(String)
.Parameters:
style
-
-
-