roneditor.objectnetview.commands
Class CreateONTransitionCommand
java.lang.Object
org.eclipse.gef.commands.Command
roneditor.objectnetview.commands.CreateONTransitionCommand
public class CreateONTransitionCommand
- extends org.eclipse.gef.commands.Command
Command for creating a Transition.
Methods inherited from class org.eclipse.gef.commands.Command |
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
onTransition
private ronmodel.ONTransition onTransition
x
private int x
y
private int y
objectNet
private ronmodel.ObjectNet objectNet
name
private java.lang.String name
mappingID
private int mappingID
CreateONTransitionCommand
public CreateONTransitionCommand()
- Constructor.
execute
public void execute()
- Entry point for command execution.
ein
ONTransition
wird in einem ObjectNet
eingefügt
- Overrides:
execute
in class org.eclipse.gef.commands.Command
redo
public void redo()
- Redo command execution.
- Overrides:
redo
in class org.eclipse.gef.commands.Command
undo
public void undo()
- Undo command execution.
- Overrides:
undo
in class org.eclipse.gef.commands.Command
getServer
public ronmodel.ONTransition getServer()
- Returns:
- the server
setServer
public void setServer(ronmodel.ONTransition onTransition)
- Parameters:
onTransition
- the server to set
getObjectNet
public ronmodel.ObjectNet getObjectNet()
- Returns:
- the network
setObjectNet
public void setObjectNet(ronmodel.ObjectNet objectNet)
- Parameters:
objectNet
- the network to set
getX
public int getX()
- Returns:
- the x
setX
public void setX(int x)
- Parameters:
x
- the x to set
getY
public int getY()
- Returns:
- the y
setY
public void setY(int y)
- Parameters:
y
- the y to set
getName
public java.lang.String getName()
- Returns:
- the name
setName
public void setName(java.lang.String name)
- Parameters:
name
- the name to set