public class SetLabelsOffsetOperation
extends java.lang.Object
SetLabelsOffsetCommmand and from the
SetConnectionBendpointsAndLabelCommmand.| Constructor and Description |
|---|
SetLabelsOffsetOperation() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEdgeWithObliqueRoutingStyle(org.eclipse.gef.ConnectionEditPart part) |
void |
setLabelsToUpdate(org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionEditPart connectionEditPart)
Set labels to update according to a connectionEditPart (all labels of this
connection will be update).
|
void |
setLabelsToUpdate(org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionEditPart connectionEditPart,
org.eclipse.draw2d.geometry.PointList originalPoints)
Set labels to update according to a connectionEditPart (all labels of this
connection will be update).
|
void |
setNewPointList(org.eclipse.draw2d.geometry.PointList newPointList)
Method to set the newPointList.
|
void |
updateGMFLabelsOffset()
Update the offset (
Bounds) of the labels Node. |
public void setNewPointList(org.eclipse.draw2d.geometry.PointList newPointList)
newPointList - The new points listpublic void setLabelsToUpdate(org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionEditPart connectionEditPart,
org.eclipse.draw2d.geometry.PointList originalPoints)
setNewPointList(PointList) method.connectionEditPart - The connection from which to get the potential three labels to
updateoriginalPoints - The points of the edge before the move.public void setLabelsToUpdate(org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionEditPart connectionEditPart)
setNewPointList(PointList) method.connectionEditPart - The connection from which to get the potential three labels to
updatepublic static boolean isEdgeWithObliqueRoutingStyle(org.eclipse.gef.ConnectionEditPart part)
public void updateGMFLabelsOffset()
Bounds) of the labels Node. This method
must be called after setting the newPointList and the labelToUpdate. If the
methods setLabelsToUpdate(ConnectionEditPart) or
setLabelsToUpdate(ConnectionEditPart, PointList) are not called,
this method has no effect.