public class AddAnchorCommand extends AbstractTransaction
| Modifier and Type | Field and Description |
|---|---|
protected InstanceLine |
anchor |
protected Condition |
element |
commandManager, committedversion| Constructor and Description |
|---|
AddAnchorCommand(CommandManager commandManager,
Element element)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAnchor(InstanceLine anchor,
int x) |
protected void |
doCancel()
Undo the translation.
|
protected void |
doExecute() |
protected void |
doUndo() |
Element |
getModifiedElement() |
cancel, commit, execute, move, undogetVersion, setVersionprotected Condition element
protected InstanceLine anchor
public AddAnchorCommand(CommandManager commandManager, Element element)
commandManager - - The command managerelement - - The element objectpublic void addAnchor(InstanceLine anchor, int x)
protected void doCancel()
doCancel in class AbstractTransactionprotected void doExecute()
doExecute in class AbstractTransactionprotected void doUndo()
doUndo in class AbstractTransactionpublic Element getModifiedElement()
Copyright © 2014 Uppsala University and Aalborg University. All Rights Reserved.