From fd51214ad32d4ac6f8f89e41474c79e2497a65b8 Mon Sep 17 00:00:00 2001 From: Jussi Koskela Date: Fri, 4 Sep 2020 09:09:31 +0300 Subject: [PATCH] Apply updates to font and color of monitor's prefix and suffix nodes Change-Id: I8a2290f0dfa232d6729acba25e1e560a723bde91 --- .../simantics/diagram/elements/MonitorClass.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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); } } -- 2.47.1