changeset 8378:8dde253e04f7

It's the description we want to see in the legend, not the facet name.
author Tom Gottfried <tom@intevation.de>
date Mon, 06 Oct 2014 11:21:42 +0200
parents 64b21db73846
children 2fa4c00f9461 592df582e462
files artifacts/src/main/java/org/dive4elements/river/exports/process/DischargeProcessor.java artifacts/src/main/java/org/dive4elements/river/exports/process/HistoricalDischargeProcessor.java
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/DischargeProcessor.java	Fri Oct 03 10:26:58 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/DischargeProcessor.java	Mon Oct 06 11:21:42 2014 +0200
@@ -71,7 +71,7 @@
             doDischargeOut(
                 generator,
                 bundle,
-                bundle.getFacetName(),
+                bundle.getFacetDescription(),
                 theme,
                 visible);
         }
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/HistoricalDischargeProcessor.java	Fri Oct 03 10:26:58 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/HistoricalDischargeProcessor.java	Mon Oct 06 11:21:42 2014 +0200
@@ -77,7 +77,8 @@
     ) {
         CallContext context = generator.getCallContext();
         WQKms data = (WQKms)bundle.getData(context);
-        XYSeries series = new StyledXYSeries(bundle.getFacetName(), theme);
+        XYSeries series = new StyledXYSeries(bundle.getFacetDescription(),
+            theme);
         double[][] wqData = new double[2][data.size()];
         for (int i = 0; i < data.size(); i++) {
             wqData[0][i] = data.getQ(i);

http://dive4elements.wald.intevation.org