org.argouml.uml.diagram.ui
Class ActionAddExistingNodes

java.lang.Object
  extended by UndoableAction
      extended by org.argouml.uml.diagram.ui.ActionAddExistingNodes

public class ActionAddExistingNodes
extends UndoableAction

ActionAddExistingNodes enables pasting of existing nodes into a Diagram.


Constructor Summary
ActionAddExistingNodes(java.lang.String name, java.util.Collection coll)
          The Constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
           
static void addNodes(java.util.Collection modelElements, java.awt.Point location, ArgoDiagram diagram)
           
 boolean isEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionAddExistingNodes

public ActionAddExistingNodes(java.lang.String name,
                              java.util.Collection coll)
The Constructor.

Parameters:
name - the localized name of the action
coll - the UML objects to be added
Method Detail

isEnabled

public boolean isEnabled()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)

addNodes

public static void addNodes(java.util.Collection modelElements,
                            java.awt.Point location,
                            ArgoDiagram diagram)
Parameters:
modelElements - the modelelements to add Nodes for
location - the point where to drop the node. Also null is acceptable.
diagram - the diagram to add the nodes to


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook