Mercurial > mxd2map
diff src/java/de/intevation/mxd/reader/MultiLayerLineSymbolReader.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 | 6bfebb7eb1df |
children | b41fcf268827 |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/MultiLayerLineSymbolReader.java Wed May 25 14:44:46 2011 +0200 +++ b/src/java/de/intevation/mxd/reader/MultiLayerLineSymbolReader.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.MultiLayerLineSymbol; import com.esri.arcgis.display.SimpleLineSymbol; import com.esri.arcgis.display.MarkerLineSymbol; @@ -52,6 +53,18 @@ } } + + public MultiLayerLineSymbolReader(ILineSymbol symbol) + throws Exception { + logger.debug("contructor()"); + if(symbol instanceof MultiLayerLineSymbol) { + this.symbol = (MultiLayerLineSymbol)symbol; + } + else { + throw new Exception("Not a MultiLayerLineSymbol!"); + } + } + /** * Setter for the parent XML element. *