Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculationResult.java @ 9312:740d65e4aa14
Q [m³/s] one message
author | gernotbelger |
---|---|
date | Thu, 26 Jul 2018 15:54:20 +0200 |
parents | a4121ec450d6 |
children | 7b2b086e45f0 |
comparison
equal
deleted
inserted
replaced
9311:7c7f73e5e01e | 9312:740d65e4aa14 |
---|---|
72 header.add(exportContextCSV.msgUnitCSV(SInfoResultType.discharge)); | 72 header.add(exportContextCSV.msgUnitCSV(SInfoResultType.discharge)); |
73 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.waterlevelLabel)); | 73 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.waterlevelLabel)); |
74 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.gaugeLabel)); | 74 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.gaugeLabel)); |
75 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.meanBedHeight)); | 75 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.meanBedHeight)); |
76 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.soundingLabel)); | 76 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.soundingLabel)); |
77 header.add(exportContextCSV.formatCsvHeader(SInfoResultType.location)); | 77 header.add(exportContextCSV.formatCsvHeader(GeneralResultType.location)); |
78 | 78 |
79 exportContextCSV.writeCSVLine(header.toArray(new String[header.size()])); | 79 exportContextCSV.writeCSVLine(header.toArray(new String[header.size()])); |
80 | 80 |
81 } | 81 } |
82 | 82 |
121 exportContextPDF.addJRMetadata(source, "discharge_header", SInfoResultType.discharge); | 121 exportContextPDF.addJRMetadata(source, "discharge_header", SInfoResultType.discharge); |
122 exportContextPDF.addJRMetadata(source, "waterlevel_name_header", SInfoResultType.waterlevelLabel); | 122 exportContextPDF.addJRMetadata(source, "waterlevel_name_header", SInfoResultType.waterlevelLabel); |
123 exportContextPDF.addJRMetadata(source, "gauge_header", SInfoResultType.gaugeLabel); | 123 exportContextPDF.addJRMetadata(source, "gauge_header", SInfoResultType.gaugeLabel); |
124 exportContextPDF.addJRMetadata(source, "bedheight_header", SInfoResultType.meanBedHeight); | 124 exportContextPDF.addJRMetadata(source, "bedheight_header", SInfoResultType.meanBedHeight); |
125 exportContextPDF.addJRMetadata(source, "sounding_name_header", SInfoResultType.soundingLabel); | 125 exportContextPDF.addJRMetadata(source, "sounding_name_header", SInfoResultType.soundingLabel); |
126 exportContextPDF.addJRMetadata(source, "location_header", SInfoResultType.location); | 126 exportContextPDF.addJRMetadata(source, "location_header", GeneralResultType.location); |
127 } | 127 } |
128 | 128 |
129 private String[] formatRow(final ExportMode mode, final IExportContext exportContext, final ResultRow row) { | 129 private String[] formatRow(final ExportMode mode, final IExportContext exportContext, final ResultRow row) { |
130 | 130 |
131 final Collection<String> lines = new ArrayList<>(11); | 131 final Collection<String> lines = new ArrayList<>(11); |
143 lines.add(exportContext.formatRowValue(row, SInfoResultType.discharge)); | 143 lines.add(exportContext.formatRowValue(row, SInfoResultType.discharge)); |
144 lines.add(exportContext.formatRowValue(row, SInfoResultType.waterlevelLabel)); | 144 lines.add(exportContext.formatRowValue(row, SInfoResultType.waterlevelLabel)); |
145 lines.add(exportContext.formatRowValue(row, SInfoResultType.gaugeLabel)); | 145 lines.add(exportContext.formatRowValue(row, SInfoResultType.gaugeLabel)); |
146 lines.add(exportContext.formatRowValue(row, SInfoResultType.meanBedHeight)); | 146 lines.add(exportContext.formatRowValue(row, SInfoResultType.meanBedHeight)); |
147 lines.add(exportContext.formatRowValue(row, SInfoResultType.soundingLabel)); | 147 lines.add(exportContext.formatRowValue(row, SInfoResultType.soundingLabel)); |
148 lines.add(exportContext.formatRowValue(row, SInfoResultType.location)); | 148 lines.add(exportContext.formatRowValue(row, GeneralResultType.location)); |
149 | 149 |
150 return lines.toArray(new String[lines.size()]); | 150 return lines.toArray(new String[lines.size()]); |
151 } | 151 } |
152 | 152 |
153 } | 153 } |