public class LegendTitle extends Object implements HasLegendText
| Modifier and Type | Method and Description |
|---|---|
IsChart |
getChart()
Returns the chart instance
|
IsColor |
getColor()
Returns the font color.
|
String |
getColorAsString()
Returns the font color as string.
|
protected ExtendedOptions |
getConfiguration()
Returns the configuration element.
|
Font |
getFont()
Returns the font element.
|
LegendTextHandler |
getLegendTextHandler()
Returns a legend text handler instance to use in the default methods of this interface.
|
protected ConfigurationOptions |
getOptions()
Returns the configuration options.
|
Padding |
getPadding()
Returns the padding element.
|
String |
getText()
Returns the title text to display.
|
SafeHtml |
getTextAsHtml()
Returns the text that will be displayed, as HTML.
If is not HTML, returns Undefined.STRING. |
boolean |
isDisplay()
Returns
true if the title is shown. |
boolean |
isHtmlText()
Returns
true if the text of legend's title is HTML.This field is used ONLY by HtmlLegend plugin and not by CHART.js. |
void |
setColor(IsColor color)
Sets the font color.
|
void |
setColor(String color)
Sets the font color.
|
void |
setDisplay(boolean display)
Sets
true if the title is shown. |
void |
setHtmlText(boolean htmlText)
Sets
true if the text of legend's titleis HTML.This field is used ONLY by HtmlLegend plugin and not by CHART.js. |
void |
setText(SafeHtml text)
Sets the text that will be displayed, as HTML.
This field is used ONLY by HtmlLegend plugin and not by CHART.js. |
void |
setText(String text)
Sets the title text to display.
|
public LegendTextHandler getLegendTextHandler()
HasLegendTextgetLegendTextHandler in interface HasLegendTextpublic Padding getPadding()
public Font getFont()
public void setColor(IsColor color)
color - font color.public void setColor(String color)
color - font color.public String getColorAsString()
public IsColor getColor()
public void setDisplay(boolean display)
true if the title is shown.display - if true the title is shown.public boolean isDisplay()
true if the title is shown.true the title is shown.public void setText(String text)
setText in interface HasLegendTexttext - the title text to display.public String getText()
getText in interface HasLegendTextpublic void setText(SafeHtml text)
HtmlLegend plugin and not by CHART.js.setText in interface HasLegendTexttext - the text that will be displayed, as HTMLpublic SafeHtml getTextAsHtml()
Undefined.STRING. This field is used ONLY by HtmlLegend plugin and not by CHART.js.getTextAsHtml in interface HasLegendTextpublic boolean isHtmlText()
true if the text of legend's title is HTML.HtmlLegend plugin and not by CHART.js.isHtmlText in interface HasLegendTexttrue if the text of legend's title is HTMLpublic void setHtmlText(boolean htmlText)
true if the text of legend's titleis HTML.HtmlLegend plugin and not by CHART.js.setHtmlText in interface HasLegendTexthtmlText - true if the text of legend's title is HTMLprotected final ConfigurationOptions getOptions()
protected final ExtendedOptions getConfiguration()
public final IsChart getChart()