diff src/java/de/intevation/mxd/reader/MultiLayerFillSymbolReader.java @ 80:83932f18dddc

All symbol reader now extend the abstract symbol reader.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 27 May 2011 13:15:15 +0200
parents 9ea64427ac7e
children 59e06c405a9a
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/MultiLayerFillSymbolReader.java	Fri May 27 12:32:08 2011 +0200
+++ b/src/java/de/intevation/mxd/reader/MultiLayerFillSymbolReader.java	Fri May 27 13:15:15 2011 +0200
@@ -24,7 +24,8 @@
  *
  * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
  */
-public class MultiLayerFillSymbolReader implements ISymbolReader{
+public class MultiLayerFillSymbolReader
+extends AbstractSymbolReader {
 
     /**
      * The logger.
@@ -35,10 +36,7 @@
     /**
      * Private member.
      */
-    private Element renderer;
     private MultiLayerFillSymbol symbol;
-    private MapToXMLUtils util;
-
 
     public MultiLayerFillSymbolReader(ISymbol symbol)
     throws Exception {
@@ -64,24 +62,6 @@
     }
 
     /**
-     * Setter for the parent XML element.
-     *
-     * @param parent The XML parent node.
-     */
-    public void setParent(Element parent) {
-        this.renderer = parent;
-    }
-
-    /**
-     * Setter for XML document helper.
-     *
-     * @param util The helper class for storing map information.
-     */
-    public void setUtil(MapToXMLUtils util) {
-        this.util = util;
-    }
-
-    /**
      * Reads the symbol attributes.
      *
      * @return The XML node.
@@ -95,7 +75,7 @@
             FillSymbolReader fsr = new FillSymbolReader();
             if(fsr.canRead(sym)) {
                 fsr.setSymbol(sym);
-                fsr.setParent(renderer);
+                fsr.setParent(parent);
                 fsr.setUtil(util);
                 fsr.read();
             }
@@ -104,7 +84,7 @@
                              " is not implemented!");
             }
         }
-        return renderer;
+        return parent;
     }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)