Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java @ 3215:750e98fc8b76
FixA: Tweaked the derivate diagram a bit and added chart info.
flys-artifacts/trunk@4838 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 29 Jun 2012 15:40:43 +0000 |
parents | abc2db630815 |
children | 9a4707ec7800 |
comparison
equal
deleted
inserted
replaced
3214:3287019ad04b | 3215:750e98fc8b76 |
---|---|
25 | 25 |
26 import org.jfree.chart.annotations.XYTextAnnotation; | 26 import org.jfree.chart.annotations.XYTextAnnotation; |
27 | 27 |
28 import org.jfree.data.xy.XYSeries; | 28 import org.jfree.data.xy.XYSeries; |
29 | 29 |
30 | |
31 import org.w3c.dom.Document; | 30 import org.w3c.dom.Document; |
32 | 31 |
33 public class FixWQCurveGenerator | 32 public class FixWQCurveGenerator |
34 extends FixChartGenerator | 33 extends FixChartGenerator |
35 implements FacetTypes | 34 implements FacetTypes |
36 { | 35 { |
37 private static Logger logger = | 36 private static Logger logger = |
38 Logger.getLogger(FixWQCurveGenerator.class); | 37 Logger.getLogger(FixWQCurveGenerator.class); |
39 | 38 |
40 public static final String I18N_CHART_TITLE = | 39 public static final String I18N_CHART_TITLE = |
139 return; | 138 return; |
140 } | 139 } |
141 | 140 |
142 double maxQ = func.getMaxQ(); | 141 double maxQ = func.getMaxQ(); |
143 | 142 |
144 if(maxQ > 0) { | 143 if (maxQ > 0) { |
145 StyledXYSeries series = JFreeUtil.sampleFunction2D( | 144 StyledXYSeries series = JFreeUtil.sampleFunction2D( |
146 func.getFunction(), | 145 func.getFunction(), |
147 doc, | 146 doc, |
148 aaf.getFacetDescription(), | 147 aaf.getFacetDescription(), |
149 500, // number of samples | 148 500, // number of samples |
150 0.0 , // start | 149 0.0 , // start |
151 func.getMaxQ()); // end | 150 maxQ); // end |
152 | 151 |
153 addAxisSeries(series, 0, visible); | 152 addAxisSeries(series, 0, visible); |
154 } | 153 } |
155 else { | 154 else { |
156 logger.warn("doWQCurveOut: maxQ <= 0"); | 155 logger.warn("doWQCurveOut: maxQ <= 0"); |