diff src/java/de/intevation/mxd/reader/SimpleMarkerSymbolReader.java @ 70:6d181c02efce

Added wrapper for marker symbol reader and extracted methods from symbol readers.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 26 May 2011 14:28:52 +0200
parents ef7ca23c4233
children 7eba97e8201b
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/SimpleMarkerSymbolReader.java	Thu May 26 12:44:59 2011 +0200
+++ b/src/java/de/intevation/mxd/reader/SimpleMarkerSymbolReader.java	Thu May 26 14:28:52 2011 +0200
@@ -20,7 +20,9 @@
  *
  * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
  */
-public class SimpleMarkerSymbolReader implements ISymbolReader{
+public class SimpleMarkerSymbolReader
+extends AbstractReaderTool
+implements ISymbolReader {
 
     /**
      * The logger.
@@ -31,9 +33,7 @@
     /**
      * Private member.
      */
-    private Element renderer;
     private SimpleMarkerSymbol symbol;
-    private MapToXMLUtils util;
 
 
     public SimpleMarkerSymbolReader(ISymbol symbol)
@@ -48,24 +48,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.
@@ -75,7 +57,7 @@
         logger.debug("read()");
         Element symbolElement;
         try {
-            symbolElement = util.addSymbol(renderer);
+            symbolElement = util.addSymbol(parent);
         }
         catch(Exception e) {
             e.printStackTrace();
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)