public class InsertMessageCommand extends AbstractTransaction
commandManager, committedversion| Constructor and Description |
|---|
InsertMessageCommand(InstanceLine source,
Message message)
The hot sections touched by the message (and split)
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doCancel() |
protected void |
doExecute() |
protected void |
doUndo() |
Element |
getElement()
Get the element
|
Element |
getModifiedElement() |
InstanceLine |
getSource()
Get message source
|
void |
move(int x)
Move the 'x' value of the message
|
void |
moveY(int y)
Move the 'y' value of the messge
|
void |
setTarget(InstanceLine target)
Set the target
|
cancel, commit, execute, move, undogetVersion, setVersionpublic InsertMessageCommand(InstanceLine source, Message message)
source - - The sourcemessage - - The messagepublic InstanceLine getSource()
public void setTarget(InstanceLine target)
target - - the target of the messagepublic Element getElement()
protected void doCancel()
doCancel in class AbstractTransactionprotected void doExecute()
doExecute in class AbstractTransactionprotected void doUndo()
doUndo in class AbstractTransactionpublic Element getModifiedElement()
public void move(int x)
x - - The new 'x' valuepublic void moveY(int y)
y - - The new 'y' valueCopyright © 2014 Uppsala University and Aalborg University. All Rights Reserved.