# HG changeset patch # User Felix Wolfsteller # Date 1351865542 -3600 # Node ID c624aa9ca4cf57e45ab9f99123fcda9cd4b0608e # Parent ecd237428af62f0aa544d34f545bc153af797466 ExtremeWQCurveGenerator: Respect theme prop about showing the extrapol-line. diff -r ecd237428af6 -r c624aa9ca4cf flys-artifacts/src/main/java/de/intevation/flys/exports/extreme/ExtremeWQCurveGenerator.java --- a/flys-artifacts/src/main/java/de/intevation/flys/exports/extreme/ExtremeWQCurveGenerator.java Fri Nov 02 15:10:39 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/extreme/ExtremeWQCurveGenerator.java Fri Nov 02 15:12:22 2012 +0100 @@ -24,6 +24,9 @@ import de.intevation.flys.jfree.JFreeUtil; import de.intevation.flys.jfree.StyledXYSeries; +import de.intevation.flys.utils.ThemeUtil; + + /** * Generator for WQ fixing charts. * @author Christian Lins @@ -119,12 +122,14 @@ maxQ); // end // Add marker from where on its extrapolated. - double[] qs = curve.getQs(); - double extrapolateFrom = qs[qs.length-1]; + if (ThemeUtil.parseShowExtraMark(theme)) { + double[] qs = curve.getQs(); + double extrapolateFrom = qs[qs.length-1]; - Marker m = new ValueMarker(extrapolateFrom); - m.setPaint(Color.black); - addDomainMarker(m); + Marker m = new ValueMarker(extrapolateFrom); + m.setPaint(Color.black); + addDomainMarker(m); + } addAxisSeries(series, 0, visible); }