From 12f7720a7e4055ead86f6b2b2926fbf31c5cf37e Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Sat, 16 Nov 2019 08:44:49 +0200 Subject: [PATCH] Fix dynamic visualisations UI initialization * Show if elements are hidden when first initializing the view gitlab #59 Change-Id: I3156ecdfb8f2e8580885dc5c45159947100a5ff9 --- .../network/ui/visualisations/DynamicVisualisationsUI.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/visualisations/DynamicVisualisationsUI.java b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/visualisations/DynamicVisualisationsUI.java index 055b503a..a1b21629 100644 --- a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/visualisations/DynamicVisualisationsUI.java +++ b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/visualisations/DynamicVisualisationsUI.java @@ -1455,6 +1455,13 @@ public class DynamicVisualisationsUI { hoveringVertexEnabledButton.setSelection(visualisation.isKeyVariablesVertexHover()); hoveringEdgesEnabledButton.setSelection(visualisation.isKeyVariablesEdgesHover()); + hideConsumersButton.setSelection(visualisation.isHideConsumers()); + hideEdgesButton.setSelection(visualisation.isHideEdges()); + hideProducersButton.setSelection(visualisation.isHideProducers()); + hideValvesButton.setSelection(visualisation.isHideValves()); + hidePumpingStationsButton.setSelection(visualisation.isHidePumpingStations()); + hidePointsButton.setSelection(visualisation.isHidePoints()); + Map colorContributions = visualisation.getColorContributions(); for (Entry entry : colorContributions.entrySet()) { -- 2.47.1