public interface HasLegendText
LegendItem
and LegendTitle
.Modifier and Type | Method and Description |
---|---|
LegendTextHandler |
getLegendTextHandler()
Returns a legend text handler instance to use in the default methods of this interface.
|
default String |
getText()
Returns the text that will be displayed
|
default SafeHtml |
getTextAsHtml()
Returns the label that will be displayed, as HTML.
If is not HTML, returns Undefined.STRING . |
default boolean |
isHtmlText()
Returns
true if the text of legend item is HTML.This field is used ONLY by HtmlLegend plugin and not by CHART.js. |
default void |
setHtmlText(boolean htmlText)
Sets
true if the text of legend item is HTML.This field is used ONLY by HtmlLegend plugin and not by CHART.js. |
default void |
setText(SafeHtml text)
Sets the label that will be displayed, as HTML.
This field is used ONLY by HtmlLegend plugin and not by CHART.js. |
default void |
setText(String text)
Sets the text that will be displayed.
|
LegendTextHandler getLegendTextHandler()
default String getText()
default void setText(String text)
text
- the text that will be displayeddefault void setText(SafeHtml text)
HtmlLegend
plugin and not by CHART.js.text
- the label that will be displayed, as HTMLdefault SafeHtml getTextAsHtml()
Undefined.STRING
. This field is used ONLY by HtmlLegend
plugin and not by CHART.js.default boolean isHtmlText()
true
if the text of legend item is HTML.HtmlLegend
plugin and not by CHART.js.true
if the text of legend item is HTMLdefault void setHtmlText(boolean htmlText)
true
if the text of legend item is HTML.HtmlLegend
plugin and not by CHART.js.htmlText
- true
if the text of legend item is HTML