1 package org.simantics.district.network.visualisations.model;
3 public class DynamicColorContribution {
6 private String moduleName;
7 private String attributeName;
9 private double variableGain;
10 private double variableBias;
11 private DynamicColorMap defaultColorMap;
12 private double defaultMin;
13 private double defaultMax;
15 // for graph persistence only
17 private boolean useDefault;
19 public DynamicColorContribution(String label, String moduleName, String attributeName, String unit,
20 double variableGain, double variableBias, DynamicColorMap defaultColorMap, double defaultMin, double defaultMax) {
22 this.moduleName = moduleName;
23 this.attributeName = attributeName;
25 this.variableGain = variableGain;
26 this.variableBias = variableBias;
27 this.defaultColorMap = defaultColorMap;
28 this.defaultMin = defaultMin;
29 this.defaultMax = defaultMax;
32 public String getLabel() {
36 public String getModuleName() {
40 public String getAttributeName() {
44 public String getUnit() {
48 public double getVariableGain() {
52 public double getVariableBias() {
56 public DynamicColorMap getDefaultColorMap() {
57 return defaultColorMap;
60 public double getDefaultMin() {
64 public double getDefaultMax() {
68 public void setUsed(boolean used) {
72 public boolean isUsed() {
76 public void setUseDefault(boolean useDefault) {
77 this.useDefault = useDefault;
80 public boolean isUseDefault() {