Class GraffitiAction

java.lang.Object
javax.swing.AbstractAction
org.graffiti.plugin.actions.GraffitiAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
CloneViewAction, CloseViewAction, EditRedoAction, EditUndoAction, ExitAction, FileCloseAction, FileNewAction, FileOpenAction, FileOpenAction, FileSaveAction, FileSaveAllAction, FileSaveAsAction, FileSaveAsAction, PluginManagerEditAction, RedrawViewAction, RunAlgorithm, SelectionAction, SelectionChangeAction, SelectionSaveAction, ShowPreferencesAction, ViewNewAction

public abstract class GraffitiAction
extends AbstractAction
Represents the basic action in the graffiti system.
Version:
$Revision: 1.9 $
See Also:
Serialized Form
  • Constructor Details

    • GraffitiAction

      public GraffitiAction​(String name, MainFrame mainFrame, String helpID)
      Constructs a new GraffitiAction from the given name.
      Parameters:
      name - the name for the action
      mainFrame - DOCUMENT ME!
  • Method Details

    • performAction

      public static boolean performAction​(String name)
    • isEnabled

      public abstract boolean isEnabled()
      Returns true, if this action is enabled.
      Specified by:
      isEnabled in interface Action
      Overrides:
      isEnabled in class AbstractAction
      Returns:
      true, if this action is enabled.
    • getHelpContext

      public HelpContext getHelpContext()
      Returns the help context for this action.
      Returns:
      the help context for this action.
    • setEnabled

      public void setEnabled​(boolean enableNow)
      Specified by:
      setEnabled in interface Action
      Overrides:
      setEnabled in class AbstractAction
      See Also:
      AbstractAction.setEnabled(boolean)
    • getName

      public String getName()
      Returns the abstract name of the action.
      Returns:
      the abstract name of the action.
    • update

      public void update()
      Updates the state of the action. Calls: setEnabled(isEnabled());.
    • updateAllActions

      public static void updateAllActions()