From 13fa9b5bbd812f2627b069cf636287c91a4ac51b Mon Sep 17 00:00:00 2001 From: Ralph Soika Date: Sat, 11 Mar 2023 11:07:42 +0100 Subject: [PATCH] impl Issue #207 --- .../org/openbpmn/bpmn/elements/TextAnnotation.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/open-bpmn.metamodel/src/main/java/org/openbpmn/bpmn/elements/TextAnnotation.java b/open-bpmn.metamodel/src/main/java/org/openbpmn/bpmn/elements/TextAnnotation.java index 3287e04a..c800a4ff 100644 --- a/open-bpmn.metamodel/src/main/java/org/openbpmn/bpmn/elements/TextAnnotation.java +++ b/open-bpmn.metamodel/src/main/java/org/openbpmn/bpmn/elements/TextAnnotation.java @@ -2,9 +2,7 @@ import org.openbpmn.bpmn.BPMNModel; import org.openbpmn.bpmn.BPMNNS; -import org.openbpmn.bpmn.elements.core.BPMNBounds; import org.openbpmn.bpmn.elements.core.BPMNElementNode; -import org.openbpmn.bpmn.exceptions.BPMNMissingElementException; import org.openbpmn.bpmn.exceptions.BPMNModelException; import org.w3c.dom.Element; @@ -62,17 +60,19 @@ public void setText(String content) { /** * Remove any embedded bpmndi:BPMNLabel element within the bpmndi:BPMNShape + * + * Positioning of the label is part of the client. Any position update should + * ignore these settings in Open-BPMN. + * */ @Override - public BPMNBounds setBounds(double x, double y, double width, double height) throws BPMNMissingElementException { - - BPMNBounds result = super.setBounds(x, y, width, height); + public void setPosition(double x, double y) { + super.setPosition(x, y); // remove optional BPMNLabel Element bpmnLabel = getModel().findChildNodeByName(this.bpmnShape, BPMNNS.BPMNDI, "BPMNLabel"); if (bpmnLabel != null) { this.bpmnShape.removeChild(bpmnLabel); } - return result; } }