Class HtmlLegend

  • All Implemented Interfaces:
    Plugin

    public final class HtmlLegend
    extends AbstractPlugin
    This plugin implements a HTML legend in order to give more flexibility to who needs to customize the legend.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • get

        public static HtmlLegend get()
        Returns the singleton instance of plugin.
        Returns:
        the singleton instance of plugin
      • onConfigure

        public void onConfigure​(IsChart chart)
        Description copied from interface: Plugin
        Called before initializing configuration of 'chart'.
        Parameters:
        chart - the chart instance.
      • onBeginDrawing

        public void onBeginDrawing​(IsChart chart,
                                   boolean overridePreviousUpdate)
        Description copied from interface: Plugin
        Called before every drawing cycle, coming from initialization, updating or rendering of chart.
        Parameters:
        chart - the chart instance
        overridePreviousUpdate - if true the drawing was already running.
      • onAfterDraw

        public void onAfterDraw​(IsChart chart)
        Description copied from interface: Plugin
        Called after the 'chart' has been drawn.
        Note that this hook will not be called if the drawing has been previously cancelled.
        Parameters:
        chart - the chart instance.
      • onEndDrawing

        public void onEndDrawing​(IsChart chart)
        Description copied from interface: Plugin
        Called after every drawing cycle, coming from initialization, updating or rendering of chart.
        Parameters:
        chart - the chart instance
      • onDestroy

        public void onDestroy​(IsChart chart)
        Description copied from interface: Plugin
        Called after the chart as been destroyed.
        Parameters:
        chart - the chart instance.