Class AChartPanelAction

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

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

Every subclass may delegate it's constructor-given ChartPanel instance as protected member m_chartpanel.

Version:
$Revision: 1.3 $
Author:
Achim Westermann
See Also:
  • Field Details

    • m_chartpanel

      protected ChartPanel m_chartpanel
      The target of this action.
  • Constructor Details

    • AChartPanelAction

      public AChartPanelAction(ChartPanel chartpanel, String description)
      Create an Action that accesses the chart and identifies itself with the given action String.
      Parameters:
      chartpanel - 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)).