]> gerrit.simantics Code Review - simantics/district.git/blob
3903b5540c359bf1c8c2bc08e284862c7a4e4e2d
[simantics/district.git] /
1 package org.simantics.district.network.visualisations.model;
2
3 import java.util.Map;
4
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;
9
10 public class DynamicVisualisation {
11
12     private final String name;
13     private final Resource visualisationResource;
14
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;
23     
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;
30     
31     private final boolean staticPropertiesNetworkBranches;
32     private final boolean staticPropertiesPoints;
33     private final boolean staticPropertiesConsumers;
34     
35     private final boolean dynamicSymbolsProducers;
36     private final boolean dynamicSymbolsShutoffValves;
37     private final boolean dynamicSymbolsValves;
38     private final boolean dynamicSymbolsPumpingStations;
39     
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,
47             boolean hideEdges,
48             boolean hidePoints,
49             boolean hideConsumers,
50             boolean hideProducers,
51             boolean hideValves,
52             boolean hidePumpingStations,
53             boolean staticPropertiesNetworkBranch,
54             boolean staticProperiesPoints,
55             boolean staticPropertiesConsumers,
56             boolean dynamicSymbolsProducers,
57             boolean dynamicSymbolsShutoffValves,
58             boolean dynamicSymbolsValves,
59             boolean dynamicSymbolsPumpingStations
60             ) {
61         this.name = name;
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;
71         
72         this.hidePoints = hidePoints;
73         this.hideConsumers = hideConsumers;
74         this.hideEdges = hideEdges;
75         this.hideProducers = hideProducers;
76         this.hideValves = hideValves;
77         this.hidePumpingStations = hidePumpingStations;
78         
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;
86     }
87
88     public String getName() {
89         return name;
90     }
91
92     public Resource getVisualisationResource() {
93         return visualisationResource;
94     }
95
96     public Map<String, DynamicColorContribution> getColorContributions() {
97         return colorContributions;
98     }
99
100     public Map<String, DynamicColoringObject> getDefaultColorContributions() {
101         return defaultColorContributions;
102     }
103
104     public ColorBarOptions getColorBarOptions() {
105         return colorBarOptions;
106     }
107
108     public Map<String, DynamicSizeContribution> getSizeContributions() {
109         return sizeContributions;
110     }
111
112     public Map<String, DynamicSizingObject> getDefaultSizeContributions() {
113         return defaultSizeContributions;
114     }
115
116     public SizeBarOptions getSizeBarOptions() {
117         return sizeBarOptions;
118     }
119
120     public Map<String, DynamicArrowObject> getDefaultArrowContributions() {
121         return defaultArrowContributions;
122     }
123
124     public Map<String, DynamicArrowContribution> getArrowContributions() {
125         return arrowContributions;
126     }
127     
128     public boolean isHideEdges() {
129         return hideEdges;
130     }
131     
132     public boolean isHidePoints() {
133         return hidePoints;
134     }
135     
136     public boolean isHideConsumers() {
137         return hideConsumers;
138     }
139     
140     public boolean isHideProducers() {
141         return hideProducers;
142     }
143     
144     public boolean isHideValves() {
145         return hideValves;
146     }
147     
148     public boolean isHidePumpingStations() {
149         return hidePumpingStations;
150     }
151     
152     public boolean isStaticPropertiesNetworkBranches() {
153         return staticPropertiesNetworkBranches;
154     }
155     
156     public boolean isStaticPropertiesPoints() {
157         return staticPropertiesPoints;
158     }
159     
160     public boolean isStaticPropertiesConsumers() {
161         return staticPropertiesConsumers;
162     }
163     
164     public boolean isDynamicSymbolsProducers() {
165         return dynamicSymbolsProducers;
166     }
167     
168     public boolean isDynamicSymbolsPumpingStations() {
169         return dynamicSymbolsPumpingStations;
170     }
171     
172     public boolean isDynamicSymbolsShutoffValves() {
173         return dynamicSymbolsShutoffValves;
174     }
175     
176     public boolean isDynamicSymbolsValves() {
177         return dynamicSymbolsValves;
178     }
179 }