diff src/java/de/intevation/mxd/reader/PictureMarkerSymbolReader.java @ 63:5c5ef5768893

Added MultiLayerLineSymbolReader.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 24 May 2011 16:51:01 +0200
parents 4e0464c620f0
children b41fcf268827
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/PictureMarkerSymbolReader.java	Tue May 24 14:16:25 2011 +0200
+++ b/src/java/de/intevation/mxd/reader/PictureMarkerSymbolReader.java	Tue May 24 16:51:01 2011 +0200
@@ -5,6 +5,7 @@
 import org.apache.log4j.Logger;
 
 import com.esri.arcgis.display.ISymbol;
+import com.esri.arcgis.display.IMarkerSymbol;
 import com.esri.arcgis.display.PictureMarkerSymbol;
 import com.esri.arcgis.display.IColor;
 import com.esri.arcgis.carto.PictureElement;
@@ -44,6 +45,19 @@
         }
     }
 
+
+    public PictureMarkerSymbolReader(IMarkerSymbol symbol)
+    throws Exception {
+        logger.debug("contructor()");
+        if(symbol instanceof PictureMarkerSymbol) {
+            this.symbol = (PictureMarkerSymbol)symbol;
+        }
+        else {
+            throw new Exception("Not a PictureMarkerSymbol!");
+        }
+    }
+
+
     /**
      * Setter for the parent XML element.
      *
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)