|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.commands.Command
pl.edu.agh.cast.backward.command.AddNodeCommand
public class AddNodeCommand
Command for adding a Node
to a diagram.
Constructor Summary | |
---|---|
AddNodeCommand(IDiagram model,
Node node,
org.eclipse.draw2d.geometry.Point location,
String imageId)
Creates new instance of command for adding a node to a diagram. |
Method Summary | |
---|---|
void |
execute()
|
void |
undo()
|
Methods inherited from class org.eclipse.gef.commands.Command |
---|
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AddNodeCommand(IDiagram model, Node node, org.eclipse.draw2d.geometry.Point location, String imageId)
model
- the diagramnode
- the node to addlocation
- location of the nodeimageId
- id of node's icon imageMethod Detail |
---|
public void execute()
execute
in class org.eclipse.gef.commands.Command
Command.execute()
public void undo()
undo
in class org.eclipse.gef.commands.Command
Command.undo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |