diff src/java/de/intevation/mxd/reader/FillSymbolReader.java @ 75:9ea64427ac7e

Added marker fill symbol reader.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 27 May 2011 12:04:19 +0200
parents 2cbe423b1fda
children 3087c89a5bb8
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/FillSymbolReader.java	Thu May 26 18:11:29 2011 +0200
+++ b/src/java/de/intevation/mxd/reader/FillSymbolReader.java	Fri May 27 12:04:19 2011 +0200
@@ -10,6 +10,7 @@
 import com.esri.arcgis.display.IFillSymbol;
 import com.esri.arcgis.display.MultiLayerFillSymbol;
 import com.esri.arcgis.display.SimpleFillSymbol;
+import com.esri.arcgis.display.MarkerFillSymbol;
 
 /**
  * Wrapper for fill symbol reader.
@@ -55,6 +56,9 @@
             else if(symbol instanceof MultiLayerFillSymbol) {
                 sreader = new MultiLayerFillSymbolReader(symbol);
             }
+            else if(symbol instanceof MarkerFillSymbol) {
+                sreader = new MarkerFillSymbolReader(symbol);
+            }
             else {
                 logger.debug("The reader for type " + symbol.getClass().toString() +
                              " is not implemented!");
@@ -68,6 +72,9 @@
             else if(fillSymbol instanceof MultiLayerFillSymbol) {
                 sreader = new MultiLayerFillSymbolReader(fillSymbol);
             }
+            else if(fillSymbol instanceof MarkerFillSymbol) {
+                sreader = new MarkerFillSymbolReader(fillSymbol);
+            }
             else {
                 logger.debug("The reader for type " +
                              fillSymbol.getClass().toString() +
@@ -98,6 +105,7 @@
 
     public boolean canRead(ISymbol sym) {
         if(sym instanceof SimpleFillSymbol ||
+           sym instanceof MarkerFillSymbol ||
            sym instanceof MultiLayerFillSymbol) {
             return true;
         }
@@ -108,6 +116,7 @@
 
     public boolean canRead(IFillSymbol sym) {
         if(sym instanceof SimpleFillSymbol ||
+           sym instanceof MarkerFillSymbol ||
            sym instanceof MultiLayerFillSymbol) {
             return true;
         }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)