diff gnv-artifacts/src/main/java/de/intevation/gnv/chart/HorizontalProfileChart.java @ 370:061355435075

Changed depending value for gap detection in verticalprofile charts on meshes. gnv-artifacts/trunk@447 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 17 Dec 2009 13:21:43 +0000
parents 07a64cfafdf1
children 24a85678bd39
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/chart/HorizontalProfileChart.java	Thu Dec 17 11:42:21 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/chart/HorizontalProfileChart.java	Thu Dec 17 13:21:43 2009 +0000
@@ -266,6 +266,13 @@
         return (smallDelta > (3.0 / (count - 1) * delta));
     }
 
+    @Override
+    protected String getDependendAxisName(Result first, Result second) {
+        if (first.getInteger("IPOSITION") == second.getInteger("IPOSITION"))
+            return "JPOSITION";
+
+        return "IPOSITION";
+    }
 
     private Point getPoint(Result result)
     throws ParseException

http://dive4elements.wald.intevation.org