]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Merge "Add edge arrow contributions to visualisations" into release/1.35.2
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 7 Nov 2019 15:25:38 +0000 (15:25 +0000)
committerGerrit Code Review <gerrit2@simantics>
Thu, 7 Nov 2019 15:25:38 +0000 (15:25 +0000)
org.simantics.district.network/src/org/simantics/district/network/visualisations/model/DynamicArrowContribution.java

index 6e05a999a390e37d42f652c904d287929f33019f..6966ec56b18cf6a44e4d9b226c2605f3fdda1860 100644 (file)
@@ -55,4 +55,9 @@ public class DynamicArrowContribution {
     public boolean isUseDefault() {
         return useDefault;
     }
+
+    public double adjustedValue(double value) {
+        // here we do the adjusting according to spec in #15038
+        return value * getDefaultGain() + getDefaultBias();
+    }
 }
\ No newline at end of file