changeset 2246:99ef93ce18bd

Doc added and fix getAxisWalker-issue. flys-artifacts/trunk@3895 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 03 Feb 2012 13:05:25 +0000
parents 16598bd04f70
children 7a1166758d24
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/ReferenceCurveGenerator.java flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java
diffstat 3 files changed, 12 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Fri Feb 03 12:16:59 2012 +0000
+++ b/flys-artifacts/ChangeLog	Fri Feb 03 13:05:25 2012 +0000
@@ -1,3 +1,12 @@
+2012-02-03  Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/exports/ReferenceCurveGenerator.java:
+	  Ja!vadoc.
+
+	* src/main/java/de/intevation/flys/exports/XYChartGenerator.java:
+	  Declare getYAxisWalker as abstract to avoid weird issue with
+	  overriden methods of this name.
+
 2012-02-03	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/exports/ReferenceCurveGenerator.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ReferenceCurveGenerator.java	Fri Feb 03 12:16:59 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ReferenceCurveGenerator.java	Fri Feb 03 13:05:25 2012 +0000
@@ -197,11 +197,13 @@
     @Override
     protected YAxisWalker getYAxisWalker() {
         return new YAxisWalker() {
+            /** Get number of items. */
             @Override
             public int length() {
                 return YAXIS.values().length;
             }
 
+            /** Get identifier for this index. */
             @Override
             public String getId(int idx) {
                 YAXIS[] yaxes = YAXIS.values();
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java	Fri Feb 03 12:16:59 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java	Fri Feb 03 13:05:25 2012 +0000
@@ -166,24 +166,7 @@
         }
     } // class AxisDataset
 
-
-    /** Override to make axis information available. */
-    protected YAxisWalker getYAxisWalker() {
-        return new YAxisWalker() {
-            /** Get number of items. */
-            @Override
-            public int length() {
-                return 0;
-            }
-
-            /** Get identifier for this index. */
-            @Override
-            public String getId(int idx) {
-                return null;
-            }
-        };
-    }
-
+    protected abstract YAxisWalker getYAxisWalker();
 
     /** The logger that is used in this generator. */
     private static Logger logger = Logger.getLogger(XYChartGenerator.class);

http://dive4elements.wald.intevation.org