Class AZoomableChartAction

java.lang.Object
javax.swing.AbstractAction
info.monitorenter.gui.chart.events.AZoomableChartAction
All Implemented Interfaces:
ActionListener, PropertyChangeListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
ZoomableChartZoomOutAction

public abstract class AZoomableChartAction extends AbstractAction implements PropertyChangeListener
The base class that connects triggered actions with an ZoomableChart instance.

Every subclass may delegate it's constructor-given Chart2D instance as protected member m_chart.

Version:
$Revision: 1.4 $
Author:
Vasilis Pappas
See Also:
  • Field Details

    • m_chart

      protected ZoomableChart m_chart
      The target of this action.
  • Constructor Details

    • AZoomableChartAction

      public AZoomableChartAction(ZoomableChart chart, String description)
      Create an Action that accesses the chart and identifies itself with the given action String.
      Parameters:
      chart - the target the action will work on
      description - the descriptive String that will be displayed by AbstractButton subclasses that get this Action assigned ( AbstractButton.setAction(javax.swing.Action)).