org.argouml.uml.diagram.ui
Class AddExistingNodeCommand
java.lang.Object
org.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 addedevent - the DropTargetDropEvent that caused this.
Also null is acceptablecnt - 0 if this is the 1st element dropped here,
n if this is the (n+1)-th element dropped here.
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()