Package com.uppaal.model.core2
Class SnapCommand
java.lang.Object
com.uppaal.model.core2.AbstractCommand
com.uppaal.model.core2.SnapCommand
- All Implemented Interfaces:
Command
public class SnapCommand extends AbstractCommand
Command to snap template elements to a grid.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SnapCommand(AbstractTemplate template, double diameter)
Snap command -
Method Summary
Modifier and Type Method Description void
execute()
Element
getModifiedElement()
void
undo()
-
Constructor Details
-
SnapCommand
Snap command- Parameters:
template
- - the template objectdiameter
- - the position value
-
-
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.
-