Interface HtmlLegendCallback<T extends HasLegendText>
-
- Type Parameters:
T- type of legend element which contains the text
- All Known Subinterfaces:
HtmlLegendItemCallback,HtmlLegendTitleCallback
public interface HtmlLegendCallback<T extends HasLegendText>This callback is the base interface for HTML legend callbacks to change the text of legend for a specific item or legend's title, as HTML.
This callback is used ONLY byHtmlLegendplugin.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SafeHtmlgenerateText(IsChart chart, T item, String currentText)Returns a text of legend for a specific item or legend's title, as HTML
-
-
-
Method Detail
-
generateText
SafeHtml generateText(IsChart chart, T item, String currentText)
Returns a text of legend for a specific item or legend's title, as HTML- Parameters:
chart- chart instanceitem- item which represents the text to createcurrentText- current text provided by legend labels callback.- Returns:
- HTML legend representation as SafeHTML
-
-