[Dive4elements-commits] [PATCH 2 of 9] ExtremeWQCurveGenerator: Removed more or less dead code

Wald Commits scm-commit at wald.intevation.org
Mon Nov 5 09:16:49 CET 2012


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1351865393 -3600
# Node ID 7fc4855ecd2699b0d3564f9c762de5a29e54b716
# Parent  3ae698d1185d41c4a67917d8971e7a0268cd4729
ExtremeWQCurveGenerator: Removed more or less dead code.

diff -r 3ae698d1185d -r 7fc4855ecd26 flys-artifacts/src/main/java/de/intevation/flys/exports/extreme/ExtremeWQCurveGenerator.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/extreme/ExtremeWQCurveGenerator.java	Fri Nov 02 14:32:48 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/extreme/ExtremeWQCurveGenerator.java	Fri Nov 02 15:09:53 2012 +0100
@@ -139,6 +139,7 @@
                 context.getContextValue(CURRENT_KM));
     }
 
+
     @Override
     protected String getDefaultChartTitle() {
         return msg(I18N_CHART_TITLE, I18N_CHART_TITLE_DEFAULT);
@@ -174,28 +175,6 @@
         }
 
         chart.addSubtitle(new TextTitle(defaultSubtitle));
-
-        StringBuilder buf = new StringBuilder();
-
-        // Add analysis periods as additional subtitle
-        FixAnalysisAccess access = new FixAnalysisAccess(artifact);
-        DateRange[] aperiods = access.getAnalysisPeriods();
-        buf.append(msg("fix.analysis.periods"));
-        buf.append(": ");
-        for(int n = 0; n < aperiods.length; n++) {
-            buf.append(
-                    Resources.format(
-                            context.getMeta(),
-                            I18N_CHART_SUBTITLE1,
-                            "",
-                            aperiods[n].getFrom(),
-                            aperiods[n].getTo()));
-            if(n + 1 < aperiods.length) {
-                buf.append("; ");
-            }
-        }
-
-        chart.addSubtitle(new TextTitle(buf.toString()));
     }
 
     @Override
@@ -207,21 +186,5 @@
     protected String getDefaultYAxisLabel(int pos) {
         return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT);
     }
-
-    @Override
-    protected ChartGenerator.YAxisWalker getYAxisWalker() {
-        return new YAxisWalker() {
-            @Override
-            public int length() {
-                return YAXIS.values().length;
-            }
-
-            @Override
-            public String getId(int idx) {
-                YAXIS[] yaxes = YAXIS.values();
-                return yaxes[idx].toString();
-            }
-        };
-    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :


More information about the Dive4elements-commits mailing list