public final class RemoveGroupCmd extends Command
Constructor and Description |
---|
RemoveGroupCmd(Group group,
DiagramItem item)
Initializes a new RemoveGroupCmd instance.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Removes the group from the flowchart.
|
void |
execute(boolean undoEnabled)
This method is called internally by JDiagram when destroying a group.
|
Group |
getGroup()
Gets the group related to 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 RemoveGroupCmd(Group group, DiagramItem item)
group
- A Group
destroyed by this command.item
- The master DiagramItem
of the group.public void execute(boolean undoEnabled)
public void undo()
UndoManager
when undoing actions.public void redo()
UndoManager
when redoing actions.public void execute()