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()
HasLegendText
getLegendTextHandler
in interface HasLegendText
public 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 HasLegendText
text
- the title text to display.public String getText()
getText
in interface HasLegendText
public void setText(SafeHtml text)
HtmlLegend
plugin and not by CHART.js.setText
in interface HasLegendText
text
- 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 HasLegendText
public boolean isHtmlText()
true
if the text of legend's title is HTML.HtmlLegend
plugin and not by CHART.js.isHtmlText
in interface HasLegendText
true
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 HasLegendText
htmlText
- true
if the text of legend's title is HTMLprotected final ConfigurationOptions getOptions()
protected final ExtendedOptions getConfiguration()
public final IsChart getChart()