diff src/java/de/intevation/mxd/reader/HashLineSymbolReader.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 7eba97e8201b
children 4d6fae53956a
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/HashLineSymbolReader.java	Fri May 27 12:32:08 2011 +0200
+++ b/src/java/de/intevation/mxd/reader/HashLineSymbolReader.java	Fri May 27 13:15:15 2011 +0200
@@ -29,7 +29,8 @@
  *
  * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
  */
-public class HashLineSymbolReader implements ISymbolReader{
+public class HashLineSymbolReader
+extends AbstractSymbolReader {
 
     /**
      * The logger.
@@ -40,10 +41,7 @@
     /**
      * Private member.
      */
-    private Element renderer;
     private HashLineSymbol symbol;
-    private MapToXMLUtils util;
-
 
     public HashLineSymbolReader(ISymbol symbol)
     throws Exception {
@@ -56,7 +54,6 @@
         }
     }
 
-
     public HashLineSymbolReader(ILineSymbol symbol)
     throws Exception {
         logger.debug("contructor()");
@@ -69,24 +66,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.
@@ -94,7 +73,7 @@
     public Element read()
     throws IOException {
         logger.debug("read()");
-        Element symbolElement = util.addSymbol(renderer);
+        Element symbolElement = util.addSymbol(parent);
 
         symbolElement.setAttribute("name", symbol.getNameString());
         symbolElement.setAttribute("style", "line");
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)