public class TranslationCommand extends AbstractTransaction
Modifier and Type | Field and Description |
---|---|
protected ArrayList<Element> |
elements |
protected int |
xd |
protected int |
yd |
committed, document
version
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, undo
getVersion, setVersion
protected void moveElements(int x, int y)
public void move(int x, int y)
move
in class AbstractTransaction
protected void doCancel()
doCancel
in class AbstractTransaction
protected void doExecute()
doExecute
in class AbstractTransaction
protected void doUndo()
doUndo
in class AbstractTransaction
public Element getModifiedElement()
Copyright © 2012 Uppsala University and Aalborg University. All Rights Reserved.