diff artifacts/src/main/java/org/dive4elements/river/exports/process/DefaultProcessor.java @ 7059:f9d5020af0af generator-refactoring

Remove AxisProcessor "glue" class and extend Processor interface
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 20 Sep 2013 10:30:03 +0200
parents 1011a40ee79c
children 253d80af5b7f
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/DefaultProcessor.java	Fri Sep 20 10:29:14 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/DefaultProcessor.java	Fri Sep 20 10:30:03 2013 +0200
@@ -10,12 +10,23 @@
 
 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet;
 import org.dive4elements.river.exports.XYChartGenerator;
+import org.dive4elements.river.exports.DiagramGenerator;
 import org.dive4elements.river.themes.ThemeDocument;
 
 /** Dummy implementation for the Processor interface.
  */
 public class DefaultProcessor implements Processor {
 
+    protected String axisName;
+
+    public void setAxisName(String axisName) {
+        this.axisName = axisName;
+    }
+
+    public String getAxisName() {
+        return axisName;
+    }
+
     /**
      * Processes data to generate e.g. a chart.
      *
@@ -25,13 +36,22 @@
      * @param visible       The visibility of the curve.
      * @param index        The index of the curve
      */
+    @Override
     public void doOut(
             XYChartGenerator generator,
             ArtifactAndFacet aandf,
             ThemeDocument    theme,
             boolean          visible,
-            int              indexu)
-    {
+            int              index) {
+        return;
+    }
+
+    @Override
+    public void doOut(
+            DiagramGenerator generator,
+            ArtifactAndFacet aandf,
+            ThemeDocument    theme,
+            boolean          visible) {
         return;
     }
 
@@ -41,6 +61,7 @@
      * @param facettype Name of the facet type
      * @return true if the facettype can be processed
      */
+    @Override
     public boolean canHandle(String facettype)
     {
         return false;

http://dive4elements.wald.intevation.org