diff 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
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixAnalysisCompute.java	Thu Mar 21 10:49:38 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixAnalysisCompute.java	Fri Mar 22 11:55:14 2013 +0100
@@ -62,10 +62,10 @@
     private static final String I18N_REFERENCEPERIOD = "state.fix.analysis.referenceperiod";
 
     public static final String [] SECTOR_LABELS = {
-        "[0 - (MNQ+MQ)/2)",
-        "[(MNQ+MQ)/2 - (MQ+MHQ)/2)",
-        "[(MQ+MHQ)/2 - HQ5)",
-        "[HQ5 - \u221e)"
+        "fix.mnq",
+        "fix.mq",
+        "fix.mhq",
+        "fix.hq5"
     };
 
     // TODO Why does this happen here? In other cases its implemented in the
@@ -180,9 +180,11 @@
                 }
 
                 String sector = SECTOR_LABELS[j];
-                String description = sector + ": " +
-                                     startDate + " - " +
-                                     endDate;
+                String description = "\u0394W (" +
+                    Resources.getMsg(context.getMeta(),
+                        sector,
+                        sector) +
+                        ")";
 
                 int sectorNdx = j - qsS;
                 int facetNdx = i << 2;
@@ -201,7 +203,7 @@
                     new FixLongitudinalAvSectorFacet(
                         facetNdx,
                         FIX_SECTOR_AVERAGE_LS + "_" + sectorNdx,
-                        description));
+                        description + ":" + startDate + " - " + endDate));
                 // TODO: i18n
                 String dev = "Abweichung: " + description;
                 facets.add(

http://dive4elements.wald.intevation.org