From: jsimomaa Date: Thu, 7 Nov 2019 12:21:35 +0000 (+0200) Subject: Add edge arrow contributions to visualisations X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=314680bcb969e7436eb1d3326fec11ef71b5e420;p=simantics%2Fdistrict.git Add edge arrow contributions to visualisations gitlab #59 Change-Id: Ie53f5509ba4e3545aa6858058376823af937ae58 --- diff --git a/org.simantics.district.network/src/org/simantics/district/network/visualisations/model/DynamicArrowContribution.java b/org.simantics.district.network/src/org/simantics/district/network/visualisations/model/DynamicArrowContribution.java index 6e05a999..6966ec56 100644 --- a/org.simantics.district.network/src/org/simantics/district/network/visualisations/model/DynamicArrowContribution.java +++ b/org.simantics.district.network/src/org/simantics/district/network/visualisations/model/DynamicArrowContribution.java @@ -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