Package com.uppaal.model.core2
Class MoveTemplateCommand
java.lang.Object
com.uppaal.model.core2.AbstractCommand
com.uppaal.model.core2.MoveTemplateCommand
- All Implemented Interfaces:
Command
public class MoveTemplateCommand extends AbstractCommand
A transaction command for inserting elements. The transaction
supports optionally setting a position, repeatedly.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MoveTemplateCommand(Node parent, Node position, Node element)
-
Method Summary
Modifier and Type Method Description void
execute()
Element
getModifiedElement()
void
undo()
-
Constructor Details
-
Method Details
-
execute
public void execute() -
undo
public void undo() -
getModifiedElement
- Returns:
- the modified element or its closest relative (sibling or parent) if the element is not displayed.
-