changeset 187:92a43d90a0b8

Adding 5% bigger Valuearea to the Chart according to GT0030.011 gnv-artifacts/trunk@231 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 16 Oct 2009 13:05:40 +0000
parents 8ae596be276b
children 693f7b676ade
files gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/chart/HorizontalProfileChartFactory.java
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Fri Oct 16 12:39:18 2009 +0000
+++ b/gnv-artifacts/ChangeLog	Fri Oct 16 13:05:40 2009 +0000
@@ -1,3 +1,7 @@
+2009-10-16  Tim Englich  <tim.englich@intevation.de>
+
+	* src/main/java/de/intevation/gnv/chart/HorizontalProfileChartFactory.java (createXYSeries): 
+	  Adding 5% bigger Valuearea to the Chart according to GT0030.011
 2009-10-16  Tim Englich  <tim.englich@intevation.de>
 
 	* src/main/java/de/intevation/gnv/transition/profile/vertical/VerticalProfileOutputTransition.java (VerticalProfileOutputTransition): 
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/chart/HorizontalProfileChartFactory.java	Fri Oct 16 12:39:18 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/chart/HorizontalProfileChartFactory.java	Fri Oct 16 13:05:40 2009 +0000
@@ -93,6 +93,13 @@
                 }
                 i++;
             }
+            
+            if (distance > 0){
+                double scaleDistance = distance * 0.05;
+                series.add(-scaleDistance, null);
+                series.add(distance+scaleDistance, null);
+            }
+            
         } catch (OutOfMemoryError e) {
             sLogger.error(e.getMessage(), e);
             return series;

http://dive4elements.wald.intevation.org