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