Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixAnalysisCompute.java @ 5380:75371c9ef472
I1174: Changed label for some themes in fix analysis.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Fri, 22 Mar 2013 11:55:14 +0100 |
parents | acfd48384835 |
children | 14009b194871 |
comparison
equal
deleted
inserted
replaced
5360:02f6741f80d4 | 5380:75371c9ef472 |
---|---|
60 private static final String I18N_REFERENCEDEVIATION = "fix.reference.deviation"; | 60 private static final String I18N_REFERENCEDEVIATION = "fix.reference.deviation"; |
61 | 61 |
62 private static final String I18N_REFERENCEPERIOD = "state.fix.analysis.referenceperiod"; | 62 private static final String I18N_REFERENCEPERIOD = "state.fix.analysis.referenceperiod"; |
63 | 63 |
64 public static final String [] SECTOR_LABELS = { | 64 public static final String [] SECTOR_LABELS = { |
65 "[0 - (MNQ+MQ)/2)", | 65 "fix.mnq", |
66 "[(MNQ+MQ)/2 - (MQ+MHQ)/2)", | 66 "fix.mq", |
67 "[(MQ+MHQ)/2 - HQ5)", | 67 "fix.mhq", |
68 "[HQ5 - \u221e)" | 68 "fix.hq5" |
69 }; | 69 }; |
70 | 70 |
71 // TODO Why does this happen here? In other cases its implemented in the | 71 // TODO Why does this happen here? In other cases its implemented in the |
72 // respective artifact, not State. | 72 // respective artifact, not State. |
73 static { | 73 static { |
178 if ((sectorMask & (1 << j)) == 0) { | 178 if ((sectorMask & (1 << j)) == 0) { |
179 continue; | 179 continue; |
180 } | 180 } |
181 | 181 |
182 String sector = SECTOR_LABELS[j]; | 182 String sector = SECTOR_LABELS[j]; |
183 String description = sector + ": " + | 183 String description = "\u0394W (" + |
184 startDate + " - " + | 184 Resources.getMsg(context.getMeta(), |
185 endDate; | 185 sector, |
186 sector) + | |
187 ")"; | |
186 | 188 |
187 int sectorNdx = j - qsS; | 189 int sectorNdx = j - qsS; |
188 int facetNdx = i << 2; | 190 int facetNdx = i << 2; |
189 facetNdx = facetNdx | j; | 191 facetNdx = facetNdx | j; |
190 | 192 |
199 description)); | 201 description)); |
200 facets.add( | 202 facets.add( |
201 new FixLongitudinalAvSectorFacet( | 203 new FixLongitudinalAvSectorFacet( |
202 facetNdx, | 204 facetNdx, |
203 FIX_SECTOR_AVERAGE_LS + "_" + sectorNdx, | 205 FIX_SECTOR_AVERAGE_LS + "_" + sectorNdx, |
204 description)); | 206 description + ":" + startDate + " - " + endDate)); |
205 // TODO: i18n | 207 // TODO: i18n |
206 String dev = "Abweichung: " + description; | 208 String dev = "Abweichung: " + description; |
207 facets.add( | 209 facets.add( |
208 new FixLongitudinalAvSectorFacet( | 210 new FixLongitudinalAvSectorFacet( |
209 facetNdx, | 211 facetNdx, |