roneditor.objectnetview.commands
Class AbstractBendpointCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by roneditor.objectnetview.commands.AbstractBendpointCommand
Direct Known Subclasses:
CreateBendpointCommand, CreateHLBendpointCommand, DeleteBendpointCommand, DeleteHLBendpointCommand, MoveBendpointCommand, MoveHLBendpointCommand

public abstract class AbstractBendpointCommand
extends org.eclipse.gef.commands.Command

Allgemeine Klasse für Einfügen, Löschen, ändern von einem BendPoint


Field Summary
protected  ronmodel.BendPoint bendPoint
           
protected  org.eclipse.draw2d.geometry.Dimension d1
           
protected  org.eclipse.draw2d.geometry.Dimension d2
           
protected  ronmodel.HLArc hlArc
           
protected  int index
           
protected  org.eclipse.draw2d.geometry.Point location
           
protected  ronmodel.ONArc onArc
           
 
Constructor Summary
AbstractBendpointCommand()
           
 
Method Summary
 ronmodel.BendPoint getBendPoint()
           
protected  org.eclipse.draw2d.geometry.Dimension getFirstRelativeDimension()
           
protected  ronmodel.HLArc getHLArc()
           
protected  int getIndex()
           
protected  org.eclipse.draw2d.geometry.Point getLocation()
           
protected  ronmodel.ONArc getONArc()
           
protected  org.eclipse.draw2d.geometry.Dimension getSecondRelativeDimension()
           
 void redo()
           
 void setBendPoint(ronmodel.BendPoint bendPoint)
           
 void setHLArc(ronmodel.HLArc w)
           
 void setIndex(int i)
          Sets the BendpointIndex.
 void setLocation(org.eclipse.draw2d.geometry.Point p)
           
 void setONArc(ronmodel.ONArc w)
           
 void setRelativeDimensions(org.eclipse.draw2d.geometry.Dimension dim1, org.eclipse.draw2d.geometry.Dimension dim2)
           
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canUndo, chain, dispose, execute, getDebugLabel, getLabel, setDebugLabel, setLabel, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

protected int index

location

protected org.eclipse.draw2d.geometry.Point location

onArc

protected ronmodel.ONArc onArc

bendPoint

protected ronmodel.BendPoint bendPoint

d1

protected org.eclipse.draw2d.geometry.Dimension d1

d2

protected org.eclipse.draw2d.geometry.Dimension d2

hlArc

protected ronmodel.HLArc hlArc
Constructor Detail

AbstractBendpointCommand

public AbstractBendpointCommand()
Method Detail

getFirstRelativeDimension

protected org.eclipse.draw2d.geometry.Dimension getFirstRelativeDimension()
Returns:
the relative Dimension to the source Node

getSecondRelativeDimension

protected org.eclipse.draw2d.geometry.Dimension getSecondRelativeDimension()
Returns:
the relative Dimension to the target Node

getIndex

protected int getIndex()
Returns:
The index of the Bendpoint

getLocation

protected org.eclipse.draw2d.geometry.Point getLocation()
Returns:
The Location of the Bendpoint

getONArc

protected ronmodel.ONArc getONArc()
Returns:
the ONArc to which the Bendpoint belongs to

redo

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

setRelativeDimensions

public void setRelativeDimensions(org.eclipse.draw2d.geometry.Dimension dim1,
                                  org.eclipse.draw2d.geometry.Dimension dim2)
Parameters:
dim1 - Relative Dimension to the source Node
dim2 - Relative Dimension to the target Node

setIndex

public void setIndex(int i)
Sets the BendpointIndex. Each Bendpoint has exactly one Index

Parameters:
i -

setLocation

public void setLocation(org.eclipse.draw2d.geometry.Point p)
Parameters:
p - Point to set

setONArc

public void setONArc(ronmodel.ONArc w)
Parameters:
w - Arc to set

getBendPoint

public ronmodel.BendPoint getBendPoint()
Returns:
BendPoint

setBendPoint

public void setBendPoint(ronmodel.BendPoint bendPoint)

getHLArc

protected ronmodel.HLArc getHLArc()

setHLArc

public void setHLArc(ronmodel.HLArc w)