org.argouml.uml.diagram.ui
Class ActionAddExistingNodes
java.lang.Object
UndoableAction
org.argouml.uml.diagram.ui.ActionAddExistingNodes
public class ActionAddExistingNodes
- extends UndoableAction
ActionAddExistingNodes enables pasting of existing nodes into a Diagram.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionAddExistingNodes
public ActionAddExistingNodes(java.lang.String name,
java.util.Collection coll)
- The Constructor.
- Parameters:
name - the localized name of the actioncoll - the UML objects to be added
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 forlocation - the point where to drop the node.
Also null is acceptable.diagram - the diagram to add the nodes to