- java.lang.Object
-
- eu.ess.xaos.ui.plot.Plugin
-
- eu.ess.xaos.ui.plot.plugins.AbstractNamedPlugin
-
- eu.ess.xaos.ui.plot.plugins.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 Summary
Constructors Constructor Description AbstractBoundedPlugin(String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
boundsChanged()
Called when lower and/or upper bounds of X and/or Y axis change.protected void
chartConnected(Chart chart)
Called when the plugin is added to a chart.protected void
chartDisconnected(Chart chart)
Called when the plugin has been removed from the chart.-
Methods inherited from class eu.ess.xaos.ui.plot.plugins.AbstractNamedPlugin
getName
-
Methods inherited from class eu.ess.xaos.ui.plot.Plugin
formattedValue, getChart, getChartLegend, getFailureMessage, getLocationInPlotArea, getLocationInPlotArea, getPlotAreaBounds, getPlotChildren, getXAxis, getXAxis, getXValueAxis, getXValueAxis, getXValueForDisplay, getXValueForDisplayAsDouble, getYAxis, getYAxis, getYValueAxis, getYValueAxis, getYValueForDisplay, getYValueForDisplayAsDouble, isBindFailed, isInsidePlotArea, isInsidePlotArea, isSeriesVisible, seriesVisibilityUpdated, setChart, toDataPoint, toDisplayPoint
-
-
-
-
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 classPlugin
- 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 classPlugin
- Parameters:
chart
- The chart from which the plugin has been removed.
-
-