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

      • AbstractTooltipBodyCallback

        public AbstractTooltipBodyCallback()
    • 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 returns null or empty list, it will be ignored.
        Specified by:
        onBeforeBody in interface TooltipBodyCallback
        Parameters:
        chart - chart instance
        items - 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 returns null or empty list, it will be ignored.
        Specified by:
        onAfterBody in interface TooltipBodyCallback
        Parameters:
        chart - chart instance
        items - list of all tooltips items
        Returns:
        a list of labels to apply to the body.