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