[PATCH] It's the description we want to see in the legend, not the facet name

Wald Commits scm-commit at wald.intevation.org
Mon Oct 6 11:21:45 CEST 2014


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1412587302 -7200
# Node ID 8dde253e04f73376e8cb75e031cfaa51c06b733c
# Parent  64b21db73846d0af87c17ea4fc5e8ae0014c2fd9
It's the description we want to see in the legend, not the facet name.

diff -r 64b21db73846 -r 8dde253e04f7 artifacts/src/main/java/org/dive4elements/river/exports/process/DischargeProcessor.java
--- 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);
         }
diff -r 64b21db73846 -r 8dde253e04f7 artifacts/src/main/java/org/dive4elements/river/exports/process/HistoricalDischargeProcessor.java
--- 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);


More information about the Dive4Elements-commits mailing list