1 package org.simantics.district.network.visualisations.model;
5 import org.simantics.db.Resource;
6 import org.simantics.district.network.visualisations.DynamicVisualisationsContributions.DynamicColoringObject;
7 import org.simantics.district.network.visualisations.DynamicVisualisationsContributions.DynamicSizingObject;
9 public class DynamicVisualisation {
12 private Resource visualisationResource;
14 private Map<String, DynamicColorContribution> colorContributions;
15 private Map<String, DynamicColoringObject> defaultColorContributions;
16 private ColorBarOptions colorBarOptions;
17 private Map<String, DynamicSizeContribution> sizeContributions;
18 private Map<String, DynamicSizingObject> defaultSizeContributions;
19 private SizeBarOptions sizeBarOptions;
21 public DynamicVisualisation(String name, Resource visualisationResource, Map<String, DynamicColorContribution> colorContributions, Map<String, DynamicColoringObject> defaultColoringObjects, ColorBarOptions colorBarOptions, Map<String, DynamicSizeContribution> sizeContributions, Map<String, DynamicSizingObject> defaultSizingObjects, SizeBarOptions sizeBarOptions) {
23 this.visualisationResource = visualisationResource;
24 this.colorContributions = colorContributions;
25 this.defaultColorContributions = defaultColoringObjects;
26 this.colorBarOptions = colorBarOptions;
27 this.sizeContributions = sizeContributions;
28 this.defaultSizeContributions = defaultSizingObjects;
29 this.sizeBarOptions = sizeBarOptions;
32 public String getName() {
36 public Resource getVisualisationResource() {
37 return visualisationResource;
40 public Map<String, DynamicColorContribution> getColorContributions() {
41 return colorContributions;
44 public Map<String, DynamicColoringObject> getDefaultColorContributions() {
45 return defaultColorContributions;
48 public ColorBarOptions getColorBarOptions() {
49 return colorBarOptions;
52 public Map<String, DynamicSizeContribution> getSizeContributions() {
53 return sizeContributions;
56 public Map<String, DynamicSizingObject> getDefaultSizeContributions() {
57 return defaultSizeContributions;
60 public SizeBarOptions getSizeBarOptions() {
61 return sizeBarOptions;