Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/SalixLineCalculationSupraRegionalResult.java @ 9347:08f46ccd37ba
salix.regional refactoring
author | gernotbelger |
---|---|
date | Tue, 31 Jul 2018 16:04:01 +0200 |
parents | b3d3c958a594 |
children | 2aec052d4088 |
comparison
equal
deleted
inserted
replaced
9346:d89976700474 | 9347:08f46ccd37ba |
---|---|
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the | 7 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
8 * documentation coming with Dive4Elements River for details. | 8 * documentation coming with Dive4Elements River for details. |
9 */ | 9 */ |
10 package org.dive4elements.river.artifacts.uinfo.salix; | 10 package org.dive4elements.river.artifacts.uinfo.salix; |
11 | 11 |
12 import java.text.NumberFormat; | |
13 import java.util.Collection; | 12 import java.util.Collection; |
14 | 13 |
15 import org.dive4elements.river.artifacts.common.ExportContextCSV; | 14 import org.dive4elements.river.artifacts.common.ExportContextCSV; |
16 import org.dive4elements.river.artifacts.common.IExportContext; | 15 import org.dive4elements.river.artifacts.common.IExportContext; |
17 import org.dive4elements.river.artifacts.common.ResultRow; | 16 import org.dive4elements.river.artifacts.common.ResultRow; |
51 protected String[] formatRow(final IExportContext context, final ResultRow row) { | 50 protected String[] formatRow(final IExportContext context, final ResultRow row) { |
52 | 51 |
53 final Collection<String> lines = super.getNoScenarioFormat(row, context); | 52 final Collection<String> lines = super.getNoScenarioFormat(row, context); |
54 | 53 |
55 if (context instanceof ExportContextCSV) { // enum gespart - pdf-export hat ja nur die drei spalten | 54 if (context instanceof ExportContextCSV) { // enum gespart - pdf-export hat ja nur die drei spalten |
56 final NumberFormat formatter = ((ExportContextCSV) context).getSalixScenFormatter(); | |
57 | |
58 lines.add(context.formatRowValue(row, UInfoResultType.salix_line_scenario)); | 55 lines.add(context.formatRowValue(row, UInfoResultType.salix_line_scenario)); |
59 lines.add(context.formatRowValue(row, UInfoResultType.salix_line_scenario_dwspl)); | 56 lines.add(context.formatRowValue(row, UInfoResultType.salix_line_scenario_dwspl)); |
60 | 57 |
61 } | 58 } |
62 return lines.toArray(new String[lines.size()]); | 59 return lines.toArray(new String[lines.size()]); |