[PATCH] BedDifferenceYearGenerator: Remove stray code, fix axis, added vimline

Wald Commits scm-commit at wald.intevation.org
Mon Jul 15 14:38:23 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1373892480 -7200
# Node ID 4923bcf945819635c1380ff6ebc0110a6dcea922
# Parent  6435b3d7fb5213f95a163bbc9095eb1dd5986f39
BedDifferenceYearGenerator: Remove stray code, fix axis, added vimline.

diff -r 6435b3d7fb52 -r 4923bcf94581 artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedDifferenceYearGenerator.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedDifferenceYearGenerator.java	Mon Jul 15 14:42:09 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedDifferenceYearGenerator.java	Mon Jul 15 14:48:00 2013 +0200
@@ -138,7 +138,7 @@
                  visible);
         }
         else if (bdyProcessor.canHandle(name)) {
-            bdyProcessor.doOut(this, bundle, attr, visible, YAXIS.D.idx);
+            bdyProcessor.doOut(this, bundle, attr, visible, YAXIS.H.idx);
         }
         else if (bdhyProcessor.canHandle(name)) {
             bdhyProcessor.doOut(this, bundle, attr, visible, YAXIS.D.idx);
@@ -170,24 +170,6 @@
         addAxisSeries(series, YAXIS.M.idx, visible);
     }
 
-    private void doBedDifferenceHeightsOut(
-        BedDiffYearResult data,
-        ArtifactAndFacet bundle,
-        Document attr,
-        boolean visible,
-        int idx) {
-         logger.debug("doBedDifferenceHeightsOut()");
-
-        XYSeries series = new StyledXYSeries(bundle.getFacetDescription(), attr);
-        if (idx == 0) {
-            StyledSeriesBuilder.addPoints(series, data.getHeights1Data(), true);
-        }
-        else {
-            StyledSeriesBuilder.addPoints(series, data.getHeights2Data(), true);
-        }
-
-        addAxisSeries(series, YAXIS.H.idx, visible);
-    }
 
     @Override
     protected String getDefaultChartTitle() {
@@ -260,3 +242,4 @@
         }
     }
 }
+// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :


More information about the Dive4elements-commits mailing list