Mercurial > dive4elements > river
changeset 4390:c624aa9ca4cf
ExtremeWQCurveGenerator: Respect theme prop about showing the extrapol-line.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 02 Nov 2012 15:12:22 +0100 |
parents | ecd237428af6 |
children | 19ab9e23bc21 |
files | flys-artifacts/src/main/java/de/intevation/flys/exports/extreme/ExtremeWQCurveGenerator.java |
diffstat | 1 files changed, 10 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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 <a href="mailto:christian.lins@intevation.de">Christian Lins</a> @@ -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); }