public class AddToContainerCmd extends Command
Modifier | Constructor and Description |
---|---|
protected |
AddToContainerCmd(ContainerNode container,
DiagramNodeList nodes,
boolean interactive)
Initializes a new instance of the AddToContainerCmd class.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
adopt(Command command)
Merges adjacent commands in the history queue if they are related.
|
void |
execute(boolean undoEnabled)
Carries out the command action.
|
ContainerNode |
getContainer()
Gets the container node associated with the command.
|
DiagramNodeList |
getNodes()
Gets the item associated with the command.
|
protected boolean |
isContainerOf(Command command)
Determines whether a command has been initiated by this command and should
be treated as a derivative.
|
void |
redo()
Redoes the command.
|
void |
undo()
Undoes the command.
|
addSubCmd, getContext, getSubCommands, getTitle, setTitle
protected AddToContainerCmd(ContainerNode container, DiagramNodeList nodes, boolean interactive)
public void execute(boolean undoEnabled)
protected boolean isContainerOf(Command command)
isContainerOf
in class Command
command
- The Command for which to determine whether it is a derivative.protected boolean adopt(Command command)
public ContainerNode getContainer()
public DiagramNodeList getNodes()