Class AbstractTooltipFooterCallback

  • All Implemented Interfaces:
    TooltipFooterCallback

    public abstract class AbstractTooltipFooterCallback
    extends Object
    implements TooltipFooterCallback
    Abstract implementation of tooltip footer 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

      • AbstractTooltipFooterCallback

        public AbstractTooltipFooterCallback()
    • Method Detail

      • onBeforeFooter

        public List<String> onBeforeFooter​(IsChart chart,
                                           List<TooltipItem> items)
        Description copied from interface: TooltipFooterCallback
        Returns text to render before the footer section.
        If returns null or empty list, it will be ignored.
        Specified by:
        onBeforeFooter in interface TooltipFooterCallback
        Parameters:
        chart - chart instance
        items - list of all tooltip items
        Returns:
        a list of labels to apply to the title.
      • onFooter

        public List<String> onFooter​(IsChart chart,
                                     List<TooltipItem> items)
        Description copied from interface: TooltipFooterCallback
        Returns text to render as the footer of the tooltip.
        If returns null or empty list, it will be ignored.
        Specified by:
        onFooter in interface TooltipFooterCallback
        Parameters:
        chart - chart instance
        items - list of all tooltip items
        Returns:
        a list of labels to apply to the title.