Class AbstractTooltipTitleCallback
- java.lang.Object
-
- org.pepstock.charba.client.callbacks.AbstractTooltipTitleCallback
-
- All Implemented Interfaces:
TooltipTitleCallback
public abstract class AbstractTooltipTitleCallback extends Object implements TooltipTitleCallback
Abstract implementation of tooltip title 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 AbstractTooltipTitleCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>onAfterTitle(IsChart chart, List<TooltipItem> items)Returns text to render after the title.
If returnsnullor empty list, it will be ignored.List<String>onBeforeTitle(IsChart chart, List<TooltipItem> items)Returns the text to render before the title.
If returnsnullor empty list, it will be ignored.List<String>onTitle(IsChart chart, List<TooltipItem> items)Returns text to render as the title of the tooltip.
If returnsnullor empty list, it will be ignored.
-
-
-
Method Detail
-
onBeforeTitle
public List<String> onBeforeTitle(IsChart chart, List<TooltipItem> items)
Description copied from interface:TooltipTitleCallbackReturns the text to render before the title.
If returnsnullor empty list, it will be ignored.- Specified by:
onBeforeTitlein interfaceTooltipTitleCallback- Parameters:
chart- chart instanceitems- list of all tooltip items- Returns:
- a list of labels to apply to the title.
-
onTitle
public List<String> onTitle(IsChart chart, List<TooltipItem> items)
Description copied from interface:TooltipTitleCallbackReturns text to render as the title of the tooltip.
If returnsnullor empty list, it will be ignored.- Specified by:
onTitlein interfaceTooltipTitleCallback- Parameters:
chart- chart instanceitems- list of all tooltip items- Returns:
- a list of labels to apply to the title.
-
onAfterTitle
public List<String> onAfterTitle(IsChart chart, List<TooltipItem> items)
Description copied from interface:TooltipTitleCallbackReturns text to render after the title.
If returnsnullor empty list, it will be ignored.- Specified by:
onAfterTitlein interfaceTooltipTitleCallback- Parameters:
chart- chart instanceitems- list of all tooltip items- Returns:
- a list of labels to apply to the title.
-
-