# HG changeset patch # User Felix Wolfsteller # Date 1315992988 0 # Node ID 1e1ef8b750dba40263fa8df98e559e4cb701e7fd # Parent 0dc274b5f4bab4fb3bcdf8000caa17d484608072 Partial fix flys/issue304 (3:Display ZeroBaseline). flys-artifacts/trunk@2732 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 0dc274b5f4ba -r 1e1ef8b750db flys-artifacts/ChangeLog --- 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 + + Partial Fix flys/issue304 (3) (Baseline). + + * src/main/java/de/intevation/flys/exports/WDifferencesCurveGenerator.java: + Show Baseline in WDifferencesPlot. + +2011-09-14 Felix Wolfsteller + + Fix flys/issue310 (cross-section theme). + + * doc/conf/themes.xml: CrossSection-Themes: profile thin, water blue. + 2011-09-14 Felix Wolfsteller Fix flys/issue310 (cross-section theme). diff -r 0dc274b5f4ba -r 1e1ef8b750db flys-artifacts/src/main/java/de/intevation/flys/exports/WDifferencesCurveGenerator.java --- 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. */