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 SummaryConstructors Constructor Description AbstractTooltipTitleCallback()
 - 
Method SummaryAll 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- 
onBeforeTitlepublic 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 interface- TooltipTitleCallback
- Parameters:
- chart- chart instance
- items- list of all tooltip items
- Returns:
- a list of labels to apply to the title.
 
 - 
onTitlepublic 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 interface- TooltipTitleCallback
- Parameters:
- chart- chart instance
- items- list of all tooltip items
- Returns:
- a list of labels to apply to the title.
 
 - 
onAfterTitlepublic 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 interface- TooltipTitleCallback
- Parameters:
- chart- chart instance
- items- list of all tooltip items
- Returns:
- a list of labels to apply to the title.
 
 
- 
 
-