changeset 1170:1e1ef8b750db

Partial fix flys/issue304 (3:Display ZeroBaseline). flys-artifacts/trunk@2732 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 14 Sep 2011 09:36:28 +0000
parents 0dc274b5f4ba
children a3108f0a2fe7
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/WDifferencesCurveGenerator.java
diffstat 2 files changed, 28 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Wed Sep 14 07:46:40 2011 +0000
+++ b/flys-artifacts/ChangeLog	Wed Sep 14 09:36:28 2011 +0000
@@ -1,3 +1,16 @@
+2011-09-14  Felix Wolfsteller <felix.wolfsteller@intevation.de>
+
+ Partial Fix flys/issue304 (3) (Baseline).
+
+	* src/main/java/de/intevation/flys/exports/WDifferencesCurveGenerator.java:
+	  Show Baseline in WDifferencesPlot.
+
+2011-09-14  Felix Wolfsteller <felix.wolfsteller@intevation.de>
+
+ Fix flys/issue310 (cross-section theme).
+
+	* doc/conf/themes.xml: CrossSection-Themes: profile thin, water blue.
+
 2011-09-14  Felix Wolfsteller <felix.wolfsteller@intevation.de>
 
  Fix flys/issue310 (cross-section theme).
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/WDifferencesCurveGenerator.java	Wed Sep 14 07:46:40 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/WDifferencesCurveGenerator.java	Wed Sep 14 09:36:28 2011 +0000
@@ -3,6 +3,7 @@
 import org.apache.log4j.Logger;
 
 import org.jfree.chart.JFreeChart;
+import org.jfree.chart.plot.XYPlot;
 import org.jfree.chart.title.TextTitle;
 import org.jfree.data.xy.XYSeries;
 
@@ -85,7 +86,7 @@
         }
     }
 
-    // TODO reenable inversion.
+
     /**
      * Add items to dataseries which describes the differences.
      */
@@ -120,6 +121,19 @@
 
 
     /**
+     * 
+     */
+    @Override
+    public JFreeChart generateChart() {
+        JFreeChart chart = super.generateChart();
+        if (chart != null && chart.getPlot() != null) {
+            XYPlot plot = (XYPlot) chart.getPlot();
+            plot.setRangeZeroBaselineVisible(true);
+        }
+        return chart;
+    }
+
+    /**
      * Get name of series (displayed in legend).
      * @return name of the series.
      */

http://dive4elements.wald.intevation.org