Module xaos.ui.plot

Class AbstractBoundedPlugin

  • Direct Known Subclasses:
    AbstractCursorPlugin

    public abstract class AbstractBoundedPlugin
    extends AbstractNamedPlugin
    Abstract class base of all plugins needing to be notified when chart plotting bounds change.
    Author:
    claudio.rosati@esss.se
    • Constructor Detail

      • AbstractBoundedPlugin

        public AbstractBoundedPlugin​(String name)
        Parameters:
        name - The display name of this plugin.
    • Method Detail

      • boundsChanged

        protected abstract void boundsChanged()
        Called when lower and/or upper bounds of X and/or Y axis change.
      • chartConnected

        protected void chartConnected​(Chart chart)
        Description copied from class: Plugin
        Called when the plugin is added to a chart.

        Can be overridden by concrete implementations to register e.g. mouse listeners or perform any other initializations.

        Overrides:
        chartConnected in class Plugin
        Parameters:
        chart - The chart to which the plugin has been added.
      • chartDisconnected

        protected void chartDisconnected​(Chart chart)
        Description copied from class: Plugin
        Called when the plugin has been removed from the chart.

        Can be overridden by concrete implementations to unbind listeners and perform any other cleanup operations.

        Overrides:
        chartDisconnected in class Plugin
        Parameters:
        chart - The chart from which the plugin has been removed.