public class TranslationCommand extends AbstractTransaction
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<Element> |
elements |
protected int |
xd |
protected int |
yd |
committed, documentversion| Constructor and Description |
|---|
TranslationCommand(Document document,
ArrayList<Element> elements) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doCancel()
Undo the translation.
|
protected void |
doExecute() |
protected void |
doUndo() |
Element |
getModifiedElement() |
void |
move(int x,
int y)
Move elements by (x, y).
|
protected void |
moveElements(int x,
int y) |
cancel, commit, execute, undogetVersion, setVersionprotected void moveElements(int x,
int y)
public void move(int x,
int y)
move in class AbstractTransactionprotected void doCancel()
doCancel in class AbstractTransactionprotected void doExecute()
doExecute in class AbstractTransactionprotected void doUndo()
doUndo in class AbstractTransactionpublic Element getModifiedElement()
Copyright © 2012 Uppsala University and Aalborg University. All Rights Reserved.