Class CopyAction

All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class CopyAction
extends SelectionAction
Represents a graph element copy action.
Version:
$Revision: 1.10 $
See Also:
Serialized Form
  • Constructor Details

    • CopyAction

      public CopyAction​(MainFrame mainFrame)
      Constructs a new copy action.
      Parameters:
      mainFrame - DOCUMENT ME!
  • Method Details

    • getHelpContext

      public HelpContext getHelpContext()
      Returns the help context for the action.
      Overrides:
      getHelpContext in class GraffitiAction
      Returns:
      HelpContext, the help context for the action
    • actionPerformed

      public void actionPerformed​(ActionEvent e)
      Executes this action.
      Parameters:
      e - DOCUMENT ME!
    • doCopyGraph

      public static void doCopyGraph​(Graph sourceGraph, Selection selection)
    • doCopyGraphMethodImproved

      public static void doCopyGraphMethodImproved​(Graph sourceGraph, Selection selection)
    • doCopyGraphMethodImproved

      public static Graph doCopyGraphMethodImproved​(Graph sourceGraph, Selection selection, boolean returnGraphInsteadPastingInClipboard)
    • doCopyGraphMethodImproved

      public static Graph doCopyGraphMethodImproved​(Graph sourceGraph, Selection selection, boolean returnGraphInsteadPastingInClipboard, OutputSerializer os) throws IOException
      Throws:
      IOException
    • isEnabled

      public 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 SelectionAction
      Returns:
      true, if this action is enabled.