changeset 4388:7fc4855ecd26

ExtremeWQCurveGenerator: Removed more or less dead code.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 02 Nov 2012 15:09:53 +0100
parents 3ae698d1185d
children ecd237428af6
files flys-artifacts/src/main/java/de/intevation/flys/exports/extreme/ExtremeWQCurveGenerator.java
diffstat 1 files changed, 1 insertions(+), 38 deletions(-) [+]
line wrap: on
line diff
--- 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 :

http://dive4elements.wald.intevation.org