Class AbstractTooltipBodyCallback
- java.lang.Object
-
- org.pepstock.charba.client.callbacks.AbstractTooltipBodyCallback
-
- All Implemented Interfaces:
TooltipBodyCallback
public abstract class AbstractTooltipBodyCallback extends Object implements TooltipBodyCallback
Abstract implementation of tooltip body 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 AbstractTooltipBodyCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
onAfterBody(IsChart chart, List<TooltipItem> items)
Returns text to render after the body section.
If returnsnull
or empty list, it will be ignored.List<String>
onBeforeBody(IsChart chart, List<TooltipItem> items)
Returns text to render before the body section.
If returnsnull
or empty list, it will be ignored.
-
-
-
Method Detail
-
onBeforeBody
public List<String> onBeforeBody(IsChart chart, List<TooltipItem> items)
Description copied from interface:TooltipBodyCallback
Returns text to render before the body section.
If returnsnull
or empty list, it will be ignored.- Specified by:
onBeforeBody
in interfaceTooltipBodyCallback
- Parameters:
chart
- chart instanceitems
- list of all tooltip items- Returns:
- a list of labels to apply to the body.
-
onAfterBody
public List<String> onAfterBody(IsChart chart, List<TooltipItem> items)
Description copied from interface:TooltipBodyCallback
Returns text to render after the body section.
If returnsnull
or empty list, it will be ignored.- Specified by:
onAfterBody
in interfaceTooltipBodyCallback
- Parameters:
chart
- chart instanceitems
- list of all tooltips items- Returns:
- a list of labels to apply to the body.
-
-