Class SetLabelsOffsetOperation


  • public class SetLabelsOffsetOperation
    extends Object
    Operation concerning the label offset. Used to delegate from the SetLabelsOffsetCommmand and from the SetConnectionBendpointsAndLabelCommmand.
    • Constructor Detail

      • SetLabelsOffsetOperation

        public SetLabelsOffsetOperation()
    • Method Detail

      • setNewPointList

        public void setNewPointList​(org.eclipse.draw2d.geometry.PointList newPointList)
        Method to set the newPointList.
        Parameters:
        newPointList - The new points list
      • setLabelsToUpdate

        public 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). This method must be used if the edge figure is updated (through feedback) during the move. Indeed, in this case, we can not use the figure to retrieve the old points.
        This method must be called after having called the setNewPointList(PointList) method.
        Parameters:
        connectionEditPart - The connection from which to get the potential three labels to update
        originalPoints - The points of the edge before the move.
      • setLabelsToUpdate

        public 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).
        This method must be called after having called the setNewPointList(PointList) method.
        Parameters:
        connectionEditPart - The connection from which to get the potential three labels to update
      • isEdgeWithObliqueRoutingStyle

        public static boolean isEdgeWithObliqueRoutingStyle​(org.eclipse.gef.ConnectionEditPart part)