diff src/java/de/intevation/mxd/reader/PictureLineSymbolReader.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 c73647bd71c0
children 7eba97e8201b
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/PictureLineSymbolReader.java	Wed May 25 14:44:46 2011 +0200
+++ b/src/java/de/intevation/mxd/reader/PictureLineSymbolReader.java	Wed May 25 15:48:55 2011 +0200
@@ -8,6 +8,7 @@
 import org.apache.log4j.Logger;
 
 import com.esri.arcgis.display.ISymbol;
+import com.esri.arcgis.display.ILineSymbol;
 import com.esri.arcgis.display.PictureLineSymbol;
 import com.esri.arcgis.support.ms.stdole.Picture;
 import com.esri.arcgis.display.esriSimpleLineStyle;
@@ -49,6 +50,18 @@
         }
     }
 
+
+    public PictureLineSymbolReader(ILineSymbol symbol)
+    throws Exception {
+        logger.debug("contructor()");
+        if(symbol instanceof PictureLineSymbol) {
+            this.symbol = (PictureLineSymbol)symbol;
+        }
+        else {
+            throw new Exception("Not a PictureLineSymbol!");
+        }
+    }
+
     /**
      * Setter for the parent XML element.
      *
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)