Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/HistoricalDischargeCurveExporter.java @ 2406:84cdde4bc482
Fixed broken PDF export for historical discharge curves.
flys-artifacts/trunk@4034 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 10 Feb 2012 14:04:07 +0000 |
parents | b8df8d1476ba |
children | 7dd45896e941 |
comparison
equal
deleted
inserted
replaced
2405:f008c3335a77 | 2406:84cdde4bc482 |
---|---|
211 protected void addWQTData(WQTJRDataSource source, WQTimerange wqt) { | 211 protected void addWQTData(WQTJRDataSource source, WQTimerange wqt) { |
212 DateFormat df = Formatter.getShortDateFormat(context); | 212 DateFormat df = Formatter.getShortDateFormat(context); |
213 NumberFormat wf = Formatter.getHistoricalDischargeW(context); | 213 NumberFormat wf = Formatter.getHistoricalDischargeW(context); |
214 NumberFormat qf = Formatter.getHistoricalDischargeQ(context); | 214 NumberFormat qf = Formatter.getHistoricalDischargeQ(context); |
215 | 215 |
216 double[] wq = new double[2]; | 216 double[] wq = new double[3]; |
217 | 217 |
218 String gaugeName = getReferenceGaugename(); | 218 String gaugeName = getReferenceGaugename(); |
219 | 219 |
220 for (int i = 0, n = wqt.size(); i < n; i++) { | 220 for (int i = 0, n = wqt.size(); i < n; i++) { |
221 Timerange tr = wqt.getTimerange(i); | 221 Timerange tr = wqt.getTimerange(i); |
226 | 226 |
227 source.addData(new String[] { | 227 source.addData(new String[] { |
228 df.format(start) + " - " + df.format(end), | 228 df.format(start) + " - " + df.format(end), |
229 wf.format(wq[0]), | 229 wf.format(wq[0]), |
230 qf.format(wq[1]), | 230 qf.format(wq[1]), |
231 "TODO: Difference to reference curve", | 231 qf.format(wq[2]), |
232 gaugeName | 232 gaugeName |
233 }); | 233 }); |
234 } | 234 } |
235 } | 235 } |
236 | 236 |