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 SummaryConstructors Constructor Description AbstractTooltipBodyCallback()
 - 
Method SummaryAll 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 returnsnullor empty list, it will be ignored.List<String>onBeforeBody(IsChart chart, List<TooltipItem> items)Returns text to render before the body section.
 If returnsnullor empty list, it will be ignored.
 
- 
- 
- 
Method Detail- 
onBeforeBodypublic List<String> onBeforeBody(IsChart chart, List<TooltipItem> items) Description copied from interface:TooltipBodyCallbackReturns text to render before the body section.
 If returnsnullor empty list, it will be ignored.- Specified by:
- onBeforeBodyin interface- TooltipBodyCallback
- Parameters:
- chart- chart instance
- items- list of all tooltip items
- Returns:
- a list of labels to apply to the body.
 
 - 
onAfterBodypublic List<String> onAfterBody(IsChart chart, List<TooltipItem> items) Description copied from interface:TooltipBodyCallbackReturns text to render after the body section.
 If returnsnullor empty list, it will be ignored.- Specified by:
- onAfterBodyin interface- TooltipBodyCallback
- Parameters:
- chart- chart instance
- items- list of all tooltips items
- Returns:
- a list of labels to apply to the body.
 
 
- 
 
-