Mercurial > dive4elements > river
annotate artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BunduWstExporter.java @ 9318:7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
author | gernotbelger |
---|---|
date | Fri, 27 Jul 2018 10:11:23 +0200 |
parents | 6ffcbb4f35d5 |
children | a49fe0ebb297 |
rev | line source |
---|---|
9313 | 1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU AGPL (>=v3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the | |
6 * documentation coming with Dive4Elements River for details. | |
7 */ | |
8 | |
9 package org.dive4elements.river.artifacts.bundu.bezugswst; | |
10 | |
11 import org.apache.log4j.Logger; | |
12 import org.dive4elements.river.artifacts.common.AbstractCommonExporter; | |
13 import org.dive4elements.river.artifacts.common.ExportContextCSV; | |
14 import org.dive4elements.river.artifacts.common.ExportContextPDF; | |
15 import org.dive4elements.river.artifacts.common.MetaAndTableJRDataSource; | |
16 | |
17 /** | |
18 * Generates different output formats (wst, csv, pdf) of data that resulted from | |
19 * a waterlevel computation. | |
20 * | |
21 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
22 */ | |
23 public class BunduWstExporter extends AbstractCommonExporter<BezugswstCalculationResult, BezugswstCalculationResults> { | |
24 | |
25 /** The log used in this exporter. */ | |
26 private static Logger log = Logger.getLogger(BunduWstExporter.class); | |
27 | |
28 @Override | |
29 protected void writeCSVGlobalMetadata(final ExportContextCSV exportContext, final BezugswstCalculationResults results) { | |
30 exportContext.writeCSVGlobalMetadataDefaults(); | |
31 } | |
32 | |
33 @Override | |
34 protected void writePDFGlobalMetadata(final ExportContextPDF exportContext, final MetaAndTableJRDataSource source) { | |
35 exportContext.addJRMetaDataUSINFO(source); | |
9318
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
9313
diff
changeset
|
36 // TODO: add custom stuff here |
9313 | 37 // source.addMetaData("flowdepthdevelopment_header_label", |
38 // SInfoResultType.flowdepthDevelopment.getCsvHeader(this.context.getMeta()));// (this.context.getMeta())); | |
39 | |
40 } | |
9318
7b2b086e45f0
collision pdf details, ResultType refactoring, bezugswst result
gernotbelger
parents:
9313
diff
changeset
|
41 } |