diff src/java/de/intevation/mxd/reader/MarkerLineSymbolReader.java @ 67:5ed9e720b6cd

Read the hash symbol in the hash line symbol reader.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 25 May 2011 15:48:55 +0200
parents 5c5ef5768893
children b41fcf268827
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/MarkerLineSymbolReader.java	Wed May 25 14:44:46 2011 +0200
+++ b/src/java/de/intevation/mxd/reader/MarkerLineSymbolReader.java	Wed May 25 15:48:55 2011 +0200
@@ -7,6 +7,7 @@
 import org.apache.log4j.Logger;
 
 import com.esri.arcgis.display.ISymbol;
+import com.esri.arcgis.display.ILineSymbol;
 import com.esri.arcgis.display.IMarkerSymbol;
 import com.esri.arcgis.display.MarkerLineSymbol;
 import com.esri.arcgis.display.esriSimpleLineStyle;
@@ -49,6 +50,18 @@
         }
     }
 
+
+    public MarkerLineSymbolReader(ILineSymbol symbol)
+    throws Exception {
+        logger.debug("contructor()");
+        if(symbol instanceof MarkerLineSymbol) {
+            this.symbol = (MarkerLineSymbol)symbol;
+        }
+        else {
+            throw new Exception("Not a MarkerLineSymbol!");
+        }
+    }
+
     /**
      * Setter for the parent XML element.
      *
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)