Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationExporter.java @ 9318:7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
author | gernotbelger |
---|---|
date | Fri, 27 Jul 2018 10:11:23 +0200 |
parents | 7a8b9331a946 |
children | a49fe0ebb297 |
comparison
equal
deleted
inserted
replaced
9317:61b5de0b673b | 9318:7b2b086e45f0 |
---|---|
11 import java.util.List; | 11 import java.util.List; |
12 | 12 |
13 import org.dive4elements.river.artifacts.common.AbstractCommonExporter; | 13 import org.dive4elements.river.artifacts.common.AbstractCommonExporter; |
14 import org.dive4elements.river.artifacts.common.ExportContextCSV; | 14 import org.dive4elements.river.artifacts.common.ExportContextCSV; |
15 import org.dive4elements.river.artifacts.common.ExportContextPDF; | 15 import org.dive4elements.river.artifacts.common.ExportContextPDF; |
16 import org.dive4elements.river.artifacts.common.GeneralResultType; | |
16 import org.dive4elements.river.artifacts.common.JasperDesigner; | 17 import org.dive4elements.river.artifacts.common.JasperDesigner; |
17 import org.dive4elements.river.artifacts.common.MetaAndTableJRDataSource; | 18 import org.dive4elements.river.artifacts.common.MetaAndTableJRDataSource; |
18 import org.dive4elements.river.artifacts.common.ResultRow; | 19 import org.dive4elements.river.artifacts.common.ResultRow; |
19 import org.dive4elements.river.artifacts.sinfo.common.SInfoI18NStrings; | 20 import org.dive4elements.river.artifacts.sinfo.common.SInfoI18NStrings; |
20 import org.dive4elements.river.artifacts.sinfo.common.SInfoResultType; | |
21 | 21 |
22 /** | 22 /** |
23 * Generates different output formats (csv, pdf) of data that resulted from a flood duration computation. | 23 * Generates different output formats (csv, pdf) of data that resulted from a flood duration computation. |
24 * | 24 * |
25 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 25 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
53 exportContext.writeCSVMetaEntry(SInfoI18NStrings.CSV_META_HEADER_WATERLEVEL_NAME, String.format("%d: %s", i + 1, label)); | 53 exportContext.writeCSVMetaEntry(SInfoI18NStrings.CSV_META_HEADER_WATERLEVEL_NAME, String.format("%d: %s", i + 1, label)); |
54 } | 54 } |
55 | 55 |
56 // "# Bezugspegel: " | 56 // "# Bezugspegel: " |
57 for (final ResultRow row : result.getRows()) { | 57 for (final ResultRow row : result.getRows()) { |
58 exportContext.writeCSVMetaEntry(SInfoI18NStrings.CSV_META_HEADER_WATERLEVEL_GAUGE, row.getValue(SInfoResultType.gaugeLabel)); | 58 exportContext.writeCSVMetaEntry(SInfoI18NStrings.CSV_META_HEADER_WATERLEVEL_GAUGE, row.getValue(GeneralResultType.gaugeLabel)); |
59 break; | 59 break; |
60 } | 60 } |
61 } | 61 } |
62 } | 62 } |
63 | 63 |