public class InsertMessageCommand extends AbstractTransaction
commandManager, committed
version
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, undo
getVersion, setVersion
public 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 AbstractTransaction
protected void doExecute()
doExecute
in class AbstractTransaction
protected void doUndo()
doUndo
in class AbstractTransaction
public 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.