1 package org.simantics.district.network.visualisations.model;
5 import org.simantics.db.Resource;
6 import org.simantics.district.network.visualisations.DynamicVisualisationsContributions.DynamicArrowObject;
7 import org.simantics.district.network.visualisations.DynamicVisualisationsContributions.DynamicColoringObject;
8 import org.simantics.district.network.visualisations.DynamicVisualisationsContributions.DynamicSizingObject;
10 public class DynamicVisualisation {
12 private final String name;
13 private final Resource visualisationResource;
15 private final Map<String, DynamicColorContribution> colorContributions;
16 private final Map<String, DynamicColoringObject> defaultColorContributions;
17 private final ColorBarOptions colorBarOptions;
18 private final Map<String, DynamicSizeContribution> sizeContributions;
19 private final Map<String, DynamicSizingObject> defaultSizeContributions;
20 private final SizeBarOptions sizeBarOptions;
21 private final Map<String, DynamicArrowObject> defaultArrowContributions;
22 private final Map<String, DynamicArrowContribution> arrowContributions;
24 private final boolean hideEdges;
25 private final boolean hidePoints;
26 private final boolean hideConsumers;
27 private final boolean hideProducers;
28 private final boolean hideValves;
29 private final boolean hidePumpingStations;
31 private final boolean staticPropertiesNetworkBranches;
32 private final boolean staticPropertiesPoints;
33 private final boolean staticPropertiesConsumers;
35 private final boolean dynamicSymbolsProducers;
36 private final boolean dynamicSymbolsShutoffValves;
37 private final boolean dynamicSymbolsValves;
38 private final boolean dynamicSymbolsPumpingStations;
40 public DynamicVisualisation(String name, Resource visualisationResource,
41 Map<String, DynamicColorContribution> colorContributions,
42 Map<String, DynamicColoringObject> defaultColoringObjects, ColorBarOptions colorBarOptions,
43 Map<String, DynamicSizeContribution> sizeContributions,
44 Map<String, DynamicSizingObject> defaultSizingObjects, SizeBarOptions sizeBarOptions,
45 Map<String, DynamicArrowObject> defaultArrowContributions,
46 Map<String, DynamicArrowContribution> arrowContributions,
49 boolean hideConsumers,
50 boolean hideProducers,
52 boolean hidePumpingStations,
53 boolean staticPropertiesNetworkBranch,
54 boolean staticProperiesPoints,
55 boolean staticPropertiesConsumers,
56 boolean dynamicSymbolsProducers,
57 boolean dynamicSymbolsShutoffValves,
58 boolean dynamicSymbolsValves,
59 boolean dynamicSymbolsPumpingStations
62 this.visualisationResource = visualisationResource;
63 this.colorContributions = colorContributions;
64 this.defaultColorContributions = defaultColoringObjects;
65 this.colorBarOptions = colorBarOptions;
66 this.sizeContributions = sizeContributions;
67 this.defaultSizeContributions = defaultSizingObjects;
68 this.sizeBarOptions = sizeBarOptions;
69 this.defaultArrowContributions = defaultArrowContributions;
70 this.arrowContributions = arrowContributions;
72 this.hidePoints = hidePoints;
73 this.hideConsumers = hideConsumers;
74 this.hideEdges = hideEdges;
75 this.hideProducers = hideProducers;
76 this.hideValves = hideValves;
77 this.hidePumpingStations = hidePumpingStations;
79 this.staticPropertiesConsumers = staticPropertiesConsumers;
80 this.staticPropertiesNetworkBranches = staticPropertiesNetworkBranch;
81 this.staticPropertiesPoints = staticProperiesPoints;
82 this.dynamicSymbolsProducers = dynamicSymbolsProducers;
83 this.dynamicSymbolsPumpingStations = dynamicSymbolsPumpingStations;
84 this.dynamicSymbolsShutoffValves = dynamicSymbolsShutoffValves;
85 this.dynamicSymbolsValves = dynamicSymbolsValves;
88 public String getName() {
92 public Resource getVisualisationResource() {
93 return visualisationResource;
96 public Map<String, DynamicColorContribution> getColorContributions() {
97 return colorContributions;
100 public Map<String, DynamicColoringObject> getDefaultColorContributions() {
101 return defaultColorContributions;
104 public ColorBarOptions getColorBarOptions() {
105 return colorBarOptions;
108 public Map<String, DynamicSizeContribution> getSizeContributions() {
109 return sizeContributions;
112 public Map<String, DynamicSizingObject> getDefaultSizeContributions() {
113 return defaultSizeContributions;
116 public SizeBarOptions getSizeBarOptions() {
117 return sizeBarOptions;
120 public Map<String, DynamicArrowObject> getDefaultArrowContributions() {
121 return defaultArrowContributions;
124 public Map<String, DynamicArrowContribution> getArrowContributions() {
125 return arrowContributions;
128 public boolean isHideEdges() {
132 public boolean isHidePoints() {
136 public boolean isHideConsumers() {
137 return hideConsumers;
140 public boolean isHideProducers() {
141 return hideProducers;
144 public boolean isHideValves() {
148 public boolean isHidePumpingStations() {
149 return hidePumpingStations;
152 public boolean isStaticPropertiesNetworkBranches() {
153 return staticPropertiesNetworkBranches;
156 public boolean isStaticPropertiesPoints() {
157 return staticPropertiesPoints;
160 public boolean isStaticPropertiesConsumers() {
161 return staticPropertiesConsumers;
164 public boolean isDynamicSymbolsProducers() {
165 return dynamicSymbolsProducers;
168 public boolean isDynamicSymbolsPumpingStations() {
169 return dynamicSymbolsPumpingStations;
172 public boolean isDynamicSymbolsShutoffValves() {
173 return dynamicSymbolsShutoffValves;
176 public boolean isDynamicSymbolsValves() {
177 return dynamicSymbolsValves;