changeset 2323:6bbb8295fd64

Fixed problems with incluing zeros in reference curves. flys-artifacts/trunk@4005 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 09 Feb 2012 14:51:50 +0000
parents c0eafd430244
children 867ebe191799
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/ReferenceCurveState.java flys-artifacts/src/main/java/de/intevation/flys/exports/NormalizedReferenceCurveGenerator.java flys-artifacts/src/main/java/de/intevation/flys/exports/ReferenceCurveExporter.java flys-artifacts/src/main/java/de/intevation/flys/exports/ReferenceCurveGenerator.java
diffstat 5 files changed, 16 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Thu Feb 09 14:37:51 2012 +0000
+++ b/flys-artifacts/ChangeLog	Thu Feb 09 14:51:50 2012 +0000
@@ -1,3 +1,13 @@
+2012-02-09	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/flys/exports/NormalizedReferenceCurveGenerator.java,
+	  src/main/java/de/intevation/flys/exports/ReferenceCurveGenerator.java:
+	  Fixed problem with including Y-Zeros.
+
+	* src/main/java/de/intevation/flys/artifacts/states/ReferenceCurveState.java,
+	  src/main/java/de/intevation/flys/exports/ReferenceCurveExporter.java:
+	  Removed superfluous imports.
+
 2012-02-09  Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	Allow points in "new chart"s.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/ReferenceCurveState.java	Thu Feb 09 14:37:51 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/ReferenceCurveState.java	Thu Feb 09 14:51:50 2012 +0000
@@ -14,8 +14,6 @@
 import de.intevation.flys.artifacts.model.ReportFacet;
 import de.intevation.flys.artifacts.model.WWQQ;
 
-import de.intevation.flys.artifacts.resources.Resources;
-
 import java.util.List;
 
 import org.apache.log4j.Logger;
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/NormalizedReferenceCurveGenerator.java	Thu Feb 09 14:37:51 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/NormalizedReferenceCurveGenerator.java	Thu Feb 09 14:51:50 2012 +0000
@@ -98,9 +98,12 @@
 
         NumberAxis axis = createNumberAxis(index, label);
         // TODO aspect-ratio settings.
+        /*
         if (index == YAXIS.W_M.idx) {
             axis.setAutoRangeIncludesZero(false);
         }
+        */
+        axis.setAutoRangeIncludesZero(false);
         axis.setLabelFont(labelFont);
         return axis;
     }
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ReferenceCurveExporter.java	Thu Feb 09 14:37:51 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ReferenceCurveExporter.java	Thu Feb 09 14:51:50 2012 +0000
@@ -33,7 +33,6 @@
 import de.intevation.flys.artifacts.model.WWQQ;
 import de.intevation.flys.artifacts.model.WWQQJRDataSource;
 import de.intevation.flys.artifacts.resources.Resources;
-import de.intevation.flys.utils.Formatter;
 
 import de.intevation.flys.utils.FLYSUtils;
 
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ReferenceCurveGenerator.java	Thu Feb 09 14:37:51 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ReferenceCurveGenerator.java	Thu Feb 09 14:51:50 2012 +0000
@@ -98,9 +98,12 @@
 
         NumberAxis axis = createNumberAxis(index, label);
         // TODO aspect-ratio settings.
+        /*
         if (index == YAXIS.W_M.idx) {
             axis.setAutoRangeIncludesZero(false);
         }
+        */
+        axis.setAutoRangeIncludesZero(false);
         axis.setLabelFont(labelFont);
         return axis;
     }

http://dive4elements.wald.intevation.org