roneditor.objectnetview.commands
Class EditONArcCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by roneditor.objectnetview.commands.EditONArcCommand

public class EditONArcCommand
extends org.eclipse.gef.commands.Command

Edit onArc properties.


Field Summary
private  int newWeight
           
private  int oldWeight
           
private  ronmodel.ONArc onArc
           
 
Constructor Summary
EditONArcCommand()
           
 
Method Summary
 void execute()
          Properties von einem ONArc ändern
 int getNewWeight()
           
 ronmodel.ONArc getOnArc()
           
 void redo()
           
 void setNewWeight(int newWeight)
           
 void setOnArc(ronmodel.ONArc onArc)
           
 void undo()
           
 
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
 

Field Detail

onArc

private ronmodel.ONArc onArc

oldWeight

private int oldWeight

newWeight

private int newWeight
Constructor Detail

EditONArcCommand

public EditONArcCommand()
Method Detail

execute

public void execute()
Properties von einem ONArc ändern

Overrides:
execute in class org.eclipse.gef.commands.Command
See Also:
Command.execute()

undo

public void undo()
Overrides:
undo in class org.eclipse.gef.commands.Command
See Also:
Command.undo()

redo

public void redo()
Overrides:
redo in class org.eclipse.gef.commands.Command
See Also:
Command.redo()

getNewWeight

public int getNewWeight()

setNewWeight

public void setNewWeight(int newWeight)

getOnArc

public ronmodel.ONArc getOnArc()

setOnArc

public void setOnArc(ronmodel.ONArc onArc)