Class BasicAction

java.lang.Object
javax.swing.AbstractAction
uk.ac.starlink.topcat.BasicAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
GraphicsWindow.ExportAction, LayerControlAction, LinesWindow.RescaleAction, TopcatWindowAction, WindowAction

public abstract class BasicAction extends AbstractAction
Convenience class extending AbstractAction.
Author:
Mark Taylor (Starlink)
See Also:
  • Constructor Details

    • BasicAction

      public BasicAction(String name, String shortdesc)
    • BasicAction

      public BasicAction(String name, Icon icon, String shortdesc)
  • Method Details

    • getEventWindow

      public Component getEventWindow(ActionEvent evt)
      Returns the window from which this action was invoked. This is currently the Frame in which the event originated.
      Parameters:
      evt - event to check the window for
      Returns:
      window in which evt originated if it can be determined - may be null