From: Jussi Koskela Date: Fri, 4 Sep 2020 06:09:31 +0000 (+0300) Subject: Apply updates to font and color of monitor's prefix and suffix nodes X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F23%2F4423%2F1;p=simantics%2Fplatform.git Apply updates to font and color of monitor's prefix and suffix nodes Change-Id: I8a2290f0dfa232d6729acba25e1e560a723bde91 --- diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/elements/MonitorClass.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/elements/MonitorClass.java index fd1498d0c..4e64751df 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/elements/MonitorClass.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/elements/MonitorClass.java @@ -551,6 +551,21 @@ public class MonitorClass { shape.setTransform(at2); } + TextNode prefixNode = e.getHint(KEY_SG_PREFIX_NODE); + if (prefixNode != null) { + if (prefixNode.getFont() != font) { + prefixNode.setFont(font); + } + prefixNode.setColor(color); + } + TextNode suffixNode = e.getHint(KEY_SG_SUFFIX_NODE); + if (suffixNode != null) { + if (suffixNode.getFont() != font) { + suffixNode.setFont(font); + } + suffixNode.setColor(color); + } + updatePrefixAndSuffixPositions(e); } }