Class SelectionAction

All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
AddAttributeAction, ChangeAttributeValueAction, CopyAction, CutAction, DeleteAction, DeleteAttributeAction, PasteAction, PopupAction, SelectAllAction

public abstract class SelectionAction
extends GraffitiAction
Represents an action, which depends on a selection.
Version:
$Revision: 1.6 $
See Also:
Serialized Form
  • Constructor Details

    • SelectionAction

      public SelectionAction​(String name, MainFrame mainFrame)
      Constructs a new selection action with the given name.
      Parameters:
      name - DOCUMENT ME!
      mainFrame - DOCUMENT ME!
  • Method Details

    • isEnabled

      public abstract boolean isEnabled()
      Description copied from class: GraffitiAction
      Returns true, if this action is enabled.
      Specified by:
      isEnabled in interface Action
      Specified by:
      isEnabled in class GraffitiAction
      Returns:
      true, if this action is enabled.
    • getSelectedItems

      public List<GraphElement> getSelectedItems()
      Returns the current list of selected items of this action.
      Returns:
      the current list of selected items of this action.
    • getSelection

      public Selection getSelection()
    • surviveFocusChange

      public boolean surviveFocusChange()
      Returns true, if this action should survive a focus change.
      Returns:
      true, if this action should survive a focus change.