roneditor.objectnetview.commands
Class CreateONPlaceCommand
java.lang.Object
org.eclipse.gef.commands.Command
roneditor.objectnetview.commands.CreateONPlaceCommand
public class CreateONPlaceCommand
- extends org.eclipse.gef.commands.Command
Command for creating a place.
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 |
onPlace
private ronmodel.ONPlace onPlace
x
private int x
y
private int y
objectNet
private ronmodel.ObjectNet objectNet
name
private java.lang.String name
tokens
private int tokens
mappingID
private int mappingID
CreateONPlaceCommand
public CreateONPlaceCommand()
- Constructor.
execute
public void execute()
- Entry point for command execution.
Ein
ONPlace
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
getONPlace
public ronmodel.ONPlace getONPlace()
- Returns:
- the client
setONPlace
public void setONPlace(ronmodel.ONPlace onPlace)
- Parameters:
onPlace
- the client 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
getTokens
public int getTokens()
setTokens
public void setTokens(int tokens)