org.argouml.uml.diagram.ui
Class AddExistingNodeCommand

java.lang.Object
  extended byorg.argouml.uml.diagram.ui.AddExistingNodeCommand
All Implemented Interfaces:
Command, GraphFactory

public class AddExistingNodeCommand
extends Object
implements Command, GraphFactory

ActionAddExistingNode enables pasting of an existing node into a Diagram.


Constructor Summary
AddExistingNodeCommand(Object o)
          The constructor.
AddExistingNodeCommand(Object o, DropTargetDropEvent event, int cnt)
          The constructor.
 
Method Summary
 void execute()
           
 Object makeEdge()
           
 GraphModel makeGraphModel()
           
 Object makeNode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddExistingNodeCommand

public AddExistingNodeCommand(Object o)
The constructor.

Parameters:
o - the UML modelelement to be added

AddExistingNodeCommand

public AddExistingNodeCommand(Object o,
                              DropTargetDropEvent event,
                              int cnt)
The constructor.

Parameters:
o - the UML modelelement to be added
event - the DropTargetDropEvent that caused this. Also null is acceptable
cnt - 0 if this is the 1st element dropped here, n if this is the (n+1)-th element dropped here.
Method Detail

execute

public void execute()
Specified by:
execute in interface Command
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

makeGraphModel

public GraphModel makeGraphModel()
Specified by:
makeGraphModel in interface GraphFactory
See Also:
GraphFactory.makeGraphModel()

makeEdge

public Object makeEdge()
Specified by:
makeEdge in interface GraphFactory
See Also:
GraphFactory.makeEdge()

makeNode

public Object makeNode()
Specified by:
makeNode in interface GraphFactory
See Also:
GraphFactory.makeNode()


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook