Class ColorSchemes

  • All Implemented Interfaces:
    Plugin

    public final class ColorSchemes
    extends AbstractPlugin
    Default plugin implementation to use color schemes instead the single colors for border and background colors of chart.
    It enables to pick the color combination for charts from the predefined or custom color schemes.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • get

        public static ColorSchemes 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.
      • onBeforeUpdate

        public boolean onBeforeUpdate​(IsChart chart,
                                      PluginUpdateArgument argument)
        Description copied from interface: Plugin
        Called before updating 'chart'.
        If any plugin returns false, the update is cancelled (and thus subsequent render(s)) until another 'update' is triggered.
        Parameters:
        chart - the chart instance.
        argument - the argument passed for update
        Returns:
        false to cancel the chart update.
      • onDestroy

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