comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/SalixLineCalculationNoScenarioResult.java @ 9347:08f46ccd37ba

salix.regional refactoring
author gernotbelger
date Tue, 31 Jul 2018 16:04:01 +0200
parents b3d3c958a594
children
comparison
equal deleted inserted replaced
9346:d89976700474 9347:08f46ccd37ba
71 exportContextPDF.addJRMetadata(source, "salix_line", UInfoResultType.salixline); 71 exportContextPDF.addJRMetadata(source, "salix_line", UInfoResultType.salixline);
72 exportContextPDF.addJRMetadata(source, "salix_delta_mw", UInfoResultType.salix_delta_mw); 72 exportContextPDF.addJRMetadata(source, "salix_delta_mw", UInfoResultType.salix_delta_mw);
73 } 73 }
74 74
75 protected String[] formatRow(final IExportContext context, final ResultRow row) { 75 protected String[] formatRow(final IExportContext context, final ResultRow row) {
76
77 final Collection<String> lines = getNoScenarioFormat(row, context); 76 final Collection<String> lines = getNoScenarioFormat(row, context);
78
79 // // ??
80 // // wenn "historisch" gewählt wurde, nur "historisch" anzeigen; sonst für jeden scen-wert ne neue Spalte und "hist"
81 // // ausblenden!...!..!!
82 // lines.add(context.formatRowValue(row, UInfoResultType.salixlinehist));
83 // lines.add(context.formatRowValue(row, UInfoResultType.salixlinescen));
84
85 return lines.toArray(new String[lines.size()]); 77 return lines.toArray(new String[lines.size()]);
86 } 78 }
87 79
88 protected final Collection<String> getNoScenarioFormat(final ResultRow row, final IExportContext context) { 80 protected final Collection<String> getNoScenarioFormat(final ResultRow row, final IExportContext context) {
89 81
104 } 96 }
105 97
106 @Override 98 @Override
107 protected void writeCSVResultMetadata(final ExportContextCSV exportContextCSV) { 99 protected void writeCSVResultMetadata(final ExportContextCSV exportContextCSV) {
108 // do nothing. subclass may override 100 // do nothing. subclass may override
109
110 } 101 }
111 } 102 }

http://dive4elements.wald.intevation.org