Class AbstractTooltipFooterCallback
- java.lang.Object
-
- org.pepstock.charba.client.callbacks.AbstractTooltipFooterCallback
-
- All Implemented Interfaces:
TooltipFooterCallback
public abstract class AbstractTooltipFooterCallback extends Object implements TooltipFooterCallback
Abstract implementation of tooltip footer callback in order to help who will implement it to override ONLY needed methods and use the default for the others.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description AbstractTooltipFooterCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>onAfterFooter(IsChart chart, List<TooltipItem> items)Text to render after the footer section.
If returnsnullor empty list, it will be ignored.List<String>onBeforeFooter(IsChart chart, List<TooltipItem> items)Returns text to render before the footer section.
If returnsnullor empty list, it will be ignored.List<String>onFooter(IsChart chart, List<TooltipItem> items)Returns text to render as the footer of the tooltip.
If returnsnullor empty list, it will be ignored.
-
-
-
Method Detail
-
onBeforeFooter
public List<String> onBeforeFooter(IsChart chart, List<TooltipItem> items)
Description copied from interface:TooltipFooterCallbackReturns text to render before the footer section.
If returnsnullor empty list, it will be ignored.- Specified by:
onBeforeFooterin interfaceTooltipFooterCallback- Parameters:
chart- chart instanceitems- list of all tooltip items- Returns:
- a list of labels to apply to the title.
-
onFooter
public List<String> onFooter(IsChart chart, List<TooltipItem> items)
Description copied from interface:TooltipFooterCallbackReturns text to render as the footer of the tooltip.
If returnsnullor empty list, it will be ignored.- Specified by:
onFooterin interfaceTooltipFooterCallback- Parameters:
chart- chart instanceitems- list of all tooltip items- Returns:
- a list of labels to apply to the title.
-
onAfterFooter
public List<String> onAfterFooter(IsChart chart, List<TooltipItem> items)
Description copied from interface:TooltipFooterCallbackText to render after the footer section.
If returnsnullor empty list, it will be ignored.- Specified by:
onAfterFooterin interfaceTooltipFooterCallback- Parameters:
chart- chart instanceitems- list of all tooltip items- Returns:
- a list of labels to apply to the title.
-
-