Mercurial > mxd2map
diff src/java/de/intevation/mxd/reader/FillSymbolReader.java @ 76:3087c89a5bb8
Added line fill symbol reader.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Fri, 27 May 2011 12:32:08 +0200 |
parents | 9ea64427ac7e |
children | fb93f20478cc |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/FillSymbolReader.java Fri May 27 12:04:19 2011 +0200 +++ b/src/java/de/intevation/mxd/reader/FillSymbolReader.java Fri May 27 12:32:08 2011 +0200 @@ -11,6 +11,7 @@ import com.esri.arcgis.display.MultiLayerFillSymbol; import com.esri.arcgis.display.SimpleFillSymbol; import com.esri.arcgis.display.MarkerFillSymbol; +import com.esri.arcgis.display.LineFillSymbol; /** * Wrapper for fill symbol reader. @@ -59,6 +60,9 @@ else if(symbol instanceof MarkerFillSymbol) { sreader = new MarkerFillSymbolReader(symbol); } + else if(symbol instanceof LineFillSymbol) { + sreader = new LineFillSymbolReader(symbol); + } else { logger.debug("The reader for type " + symbol.getClass().toString() + " is not implemented!"); @@ -75,6 +79,9 @@ else if(fillSymbol instanceof MarkerFillSymbol) { sreader = new MarkerFillSymbolReader(fillSymbol); } + else if(fillSymbol instanceof LineFillSymbol) { + sreader = new LineFillSymbolReader(fillSymbol); + } else { logger.debug("The reader for type " + fillSymbol.getClass().toString() + @@ -106,7 +113,8 @@ public boolean canRead(ISymbol sym) { if(sym instanceof SimpleFillSymbol || sym instanceof MarkerFillSymbol || - sym instanceof MultiLayerFillSymbol) { + sym instanceof MultiLayerFillSymbol || + sym instanceof LineFillSymbol) { return true; } else { @@ -117,7 +125,8 @@ public boolean canRead(IFillSymbol sym) { if(sym instanceof SimpleFillSymbol || sym instanceof MarkerFillSymbol || - sym instanceof MultiLayerFillSymbol) { + sym instanceof MultiLayerFillSymbol || + sym instanceof LineFillSymbol) { return true; } else {