changeset 8655:4b00ee858964

(issue1755) Fix Y Axis label in Bed Quality facets. It's used in the CSV Export.
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 02 Apr 2015 14:09:27 +0200 (2015-04-02)
parents bf8590046120
children 3a9ce890e4c7
files artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedQualityDataFacet.java artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedQualityInterpolFacet.java
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedQualityDataFacet.java	Thu Apr 02 14:06:56 2015 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedQualityDataFacet.java	Thu Apr 02 14:09:27 2015 +0200
@@ -41,7 +41,11 @@
         this.valueName = valueName;
         this.valueType = valueType;
         this.metaData.put("X", "chart.longitudinal.section.xaxis.label");
-        this.metaData.put("Y", ""); /* check if those <^ be removed? */
+        if (!valueName.equals("porosity") && !valueName.equals("density")) {
+            this.metaData.put("Y", "chart.bedquality.yaxis.label.diameter");
+        } else {
+            this.metaData.put("Y", "chart.bedquality.yaxis.label." + valueName);
+        }
     }
 
     @Override
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedQualityInterpolFacet.java	Thu Apr 02 14:06:56 2015 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedQualityInterpolFacet.java	Thu Apr 02 14:09:27 2015 +0200
@@ -42,7 +42,11 @@
         this.valueName = valueName;
         this.valueType = valueType;
         this.metaData.put("X", "chart.longitudinal.section.xaxis.label");
-        this.metaData.put("Y", ""); /* check if those <^ be removed? */
+        if (!valueName.equals("porosity") && !valueName.equals("density")) {
+            this.metaData.put("Y", "chart.bedquality.yaxis.label.diameter");
+        } else {
+            this.metaData.put("Y", "chart.bedquality.yaxis.label." + valueName);
+        }
     }
 
     @Override

http://dive4elements.wald.intevation.org