roneditor.objectnetview.commands
Class MoveBendpointCommand

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

public class MoveBendpointCommand
extends AbstractBendpointCommand

MoveBendpoints enables a Bendpoint to be moved. It stores the new and the old position of a Bendpoint


Field Summary
 
Fields inherited from class roneditor.objectnetview.commands.AbstractBendpointCommand
bendPoint, d1, d2, hlArc, index, location, onArc
 
Constructor Summary
MoveBendpointCommand()
           
 
Method Summary
 void execute()
           
protected  ronmodel.BendPoint getOldBendpoint()
           
 void setOldBendpoint(ronmodel.BendPoint bp)
          setzt den BendPoint auf alte Position
 void undo()
           
 
Methods inherited from class roneditor.objectnetview.commands.AbstractBendpointCommand
getBendPoint, getFirstRelativeDimension, getHLArc, getIndex, getLocation, getONArc, getSecondRelativeDimension, redo, setBendPoint, setHLArc, setIndex, setLocation, setONArc, setRelativeDimensions
 
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
 

Constructor Detail

MoveBendpointCommand

public MoveBendpointCommand()
Method Detail

execute

public void execute()
Overrides:
execute in class org.eclipse.gef.commands.Command

getOldBendpoint

protected ronmodel.BendPoint getOldBendpoint()
Returns:
BendPoint mit alten Position

setOldBendpoint

public void setOldBendpoint(ronmodel.BendPoint bp)
setzt den BendPoint auf alte Position


undo

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