1 package org.simantics.district.network.visualisations.model;
5 import org.simantics.db.Resource;
7 public class DynamicVisualisation {
10 private Resource visualisationResource;
12 private Map<String, DynamicColorContribution> colorContributions;
13 private ColorBarOptions colorBarOptions;
14 private Map<String, DynamicSizeContribution> sizeContributions;
15 private SizeBarOptions sizeBarOptions;
17 public DynamicVisualisation(String name, Resource visualisationResource, Map<String, DynamicColorContribution> colorContributions, ColorBarOptions colorBarOptions, Map<String, DynamicSizeContribution> sizeContributions, SizeBarOptions sizeBarOptions) {
19 this.visualisationResource = visualisationResource;
20 this.colorContributions = colorContributions;
21 this.colorBarOptions = colorBarOptions;
22 this.sizeContributions = sizeContributions;
23 this.sizeBarOptions = sizeBarOptions;
26 public String getName() {
30 public Resource getVisualisationResource() {
31 return visualisationResource;
34 public Map<String, DynamicColorContribution> getColorContributions() {
35 return colorContributions;
38 public ColorBarOptions getColorBarOptions() {
39 return colorBarOptions;
42 public Map<String, DynamicSizeContribution> getSizeContributions() {
43 return sizeContributions;
46 public SizeBarOptions getSizeBarOptions() {
47 return sizeBarOptions;