Class ChartPointer

  • All Implemented Interfaces:
    Plugin

    public final class ChartPointer
    extends AbstractPlugin
    This plugin is changing the cursor when mouse over on dataset, title on canvas if a dataset selection, title handler have been defined.
    Author:
    Andrea "Stock" Stocchero
    See Also:
    CursorType
    • Method Detail

      • get

        public static ChartPointer get()
        Returns the singleton instance of plugin.
        Returns:
        the singleton instance of plugin
      • 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.
      • onAfterEvent

        public void onAfterEvent​(IsChart chart,
                                 PluginEventArgument argument)
        Description copied from interface: Plugin
        Called after the 'event' has been consumed.
        Note that this hook will not be called if the 'event' has been previously discarded.
        Parameters:
        chart - the chart instance.
        argument - instance which contains event context
      • onDestroy

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