public final class AddGroupCmd extends Command
Constructor and Description |
---|
AddGroupCmd(Group group,
DiagramItem item)
Initializes a new instance of the AddGroupCmd class.
|
AddGroupCmd(Group group,
DiagramItem item,
boolean saveAttachments)
Initializes a new instance of the AddGroupCmd class.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(boolean undoEnabled)
This method is called internally by JDiagram when creating groups
via the
Factory.createGroup(com.mindfusion.diagramming.DiagramItem) of DiagramNode.attachTo(com.mindfusion.diagramming.DiagramLink, com.mindfusion.diagramming.AttachToLink, int) methods. |
Group |
getGroup()
Gets the group added to the flowchart by this command.
|
void |
redo()
This method is called by the
UndoManager when redoing actions. |
void |
undo()
This method is called by the
UndoManager when undoing actions. |
addSubCmd, adopt, getContext, getSubCommands, getTitle, isContainerOf, setTitle
public AddGroupCmd(Group group, DiagramItem item)
group
- The group that is added to the diagram by this command.item
- The master item of the group.public AddGroupCmd(Group group, DiagramItem item, boolean saveAttachments)
group
- The group that is added to the diagram by this command.item
- The master item of the group.saveAttachments
- Specifies whether to save the attachment information for later redo.public void execute(boolean undoEnabled)
Factory.createGroup(com.mindfusion.diagramming.DiagramItem)
of DiagramNode.attachTo(com.mindfusion.diagramming.DiagramLink, com.mindfusion.diagramming.AttachToLink, int)
methods.public void undo()
UndoManager
when undoing actions.public void redo()
UndoManager
when redoing actions.