roneditor.objectnetview.commands
Class AbstractBendpointCommand
java.lang.Object
org.eclipse.gef.commands.Command
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
|
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 |
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
AbstractBendpointCommand
public AbstractBendpointCommand()
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 Nodedim2
- 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)