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 returnsnull
or empty list, it will be ignored.List<String>
onBeforeFooter(IsChart chart, List<TooltipItem> items)
Returns text to render before the footer section.
If returnsnull
or 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 returnsnull
or empty list, it will be ignored.
-
-
-
Method Detail
-
onBeforeFooter
public List<String> onBeforeFooter(IsChart chart, List<TooltipItem> items)
Description copied from interface:TooltipFooterCallback
Returns text to render before the footer section.
If returnsnull
or empty list, it will be ignored.- Specified by:
onBeforeFooter
in 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:TooltipFooterCallback
Returns text to render as the footer of the tooltip.
If returnsnull
or empty list, it will be ignored.- Specified by:
onFooter
in 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:TooltipFooterCallback
Text to render after the footer section.
If returnsnull
or empty list, it will be ignored.- Specified by:
onAfterFooter
in interfaceTooltipFooterCallback
- Parameters:
chart
- chart instanceitems
- list of all tooltip items- Returns:
- a list of labels to apply to the title.
-
-