use of org.yakindu.base.xtext.utils.gmf.routing.EdgeLabelLocator in project statecharts by Yakindu.
the class ExternalXtextLabelEditPart method refreshBounds.
@Override
public void refreshBounds() {
int dx = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
int dy = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
Rectangle bounds = new Rectangle(dx, dy, -1, -1);
((AbstractGraphicalEditPart) getParent()).setLayoutConstraint(this, getFigure(), new EdgeLabelLocator(((AbstractConnectionEditPart) getParent()).getConnectionFigure(), bounds, getKeyPoint()));
}
Aggregations