Class 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 Detail

      • AbstractTooltipTitleCallback

        public AbstractTooltipTitleCallback()
    • 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 returns null or empty list, it will be ignored.
        Specified by:
        onBeforeTitle in interface TooltipTitleCallback
        Parameters:
        chart - chart instance
        items - 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 returns null or empty list, it will be ignored.
        Specified by:
        onTitle in interface TooltipTitleCallback
        Parameters:
        chart - chart instance
        items - 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 returns null or empty list, it will be ignored.
        Specified by:
        onAfterTitle in interface TooltipTitleCallback
        Parameters:
        chart - chart instance
        items - list of all tooltip items
        Returns:
        a list of labels to apply to the title.