Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/SalixLineCalculationResult.java @ 9531:267ac3012150
Salix line: reference gauge column removed
author | mschaefer |
---|---|
date | Tue, 02 Oct 2018 18:08:02 +0200 |
parents | 76c0665888a3 |
children |
comparison
equal
deleted
inserted
replaced
9530:144a184a414d | 9531:267ac3012150 |
---|---|
87 | 87 |
88 for (int i = 1; i <= getScenarioCount(); i++) { | 88 for (int i = 1; i <= getScenarioCount(); i++) { |
89 header.add(exportContextCSV.msg(SalixScenario.getDeltaWHeader())); | 89 header.add(exportContextCSV.msg(SalixScenario.getDeltaWHeader())); |
90 header.add(exportContextCSV.msg(SalixScenario.getScenarioValueHeader())); | 90 header.add(exportContextCSV.msg(SalixScenario.getScenarioValueHeader())); |
91 } | 91 } |
92 header.add(exportContextCSV.formatCsvHeader(GeneralResultType.gaugeLabel)); | |
93 exportContextCSV.writeCSVLine(header.toArray(new String[header.size()])); | 92 exportContextCSV.writeCSVLine(header.toArray(new String[header.size()])); |
94 } | 93 } |
95 | 94 |
96 @Override | 95 @Override |
97 protected String[] formatCSVRow(final ExportContextCSV exportContextCSV, final ResultRow row) { | 96 protected String[] formatCSVRow(final ExportContextCSV exportContextCSV, final ResultRow row) { |
117 exportContextPDF.addJRMetadata(source, "salix_delta_mw", UInfoResultType.salix_mw_mnw); | 116 exportContextPDF.addJRMetadata(source, "salix_delta_mw", UInfoResultType.salix_mw_mnw); |
118 | 117 |
119 for (int i = 1; i <= this.getScenarioCount(); i++) { | 118 for (int i = 1; i <= this.getScenarioCount(); i++) { |
120 // TODO Spaltenueberschriften der Scenarios (falls gefordert) | 119 // TODO Spaltenueberschriften der Scenarios (falls gefordert) |
121 } | 120 } |
122 exportContextPDF.addJRMetadata(source, "gauge_header", GeneralResultType.gaugeLabel); | |
123 } | 121 } |
124 | 122 |
125 private String[] formatRow(final IExportContext context, final ResultRow row) { | 123 private String[] formatRow(final IExportContext context, final ResultRow row) { |
126 | 124 |
127 final Collection<String> lines = new ArrayList<>(); | 125 final Collection<String> lines = new ArrayList<>(); |
143 lines.add(""); | 141 lines.add(""); |
144 lines.add(""); | 142 lines.add(""); |
145 } | 143 } |
146 } | 144 } |
147 } | 145 } |
148 lines.add(context.formatRowValue(row, GeneralResultType.gaugeLabel)); | |
149 return lines.toArray(new String[lines.size()]); | 146 return lines.toArray(new String[lines.size()]); |
150 } | 147 } |
151 | 148 |
152 @Override | 149 @Override |
153 protected void writeCSVResultMetadata(final ExportContextCSV exportContextCSV) { | 150 protected void writeCSVResultMetadata(final ExportContextCSV exportContextCSV) { |