From 2fcb89ca1c7e676ec93c648c162eae989e7c84e9 Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Thu, 7 Nov 2019 14:21:35 +0200 Subject: [PATCH] Add edge arrow contributions to visualisations gitlab #59 Change-Id: Ie53f5509ba4e3545aa6858058376823af937ae58 (cherry picked from commit 314680bcb969e7436eb1d3326fec11ef71b5e420) --- .../visualisations/model/DynamicArrowContribution.java | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.47.1