Mercurial > mxd2map
comparison 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 |
comparison
equal
deleted
inserted
replaced
66:6bfebb7eb1df | 67:5ed9e720b6cd |
---|---|
5 import java.awt.Color; | 5 import java.awt.Color; |
6 | 6 |
7 import org.apache.log4j.Logger; | 7 import org.apache.log4j.Logger; |
8 | 8 |
9 import com.esri.arcgis.display.ISymbol; | 9 import com.esri.arcgis.display.ISymbol; |
10 import com.esri.arcgis.display.ILineSymbol; | |
10 import com.esri.arcgis.display.MultiLayerLineSymbol; | 11 import com.esri.arcgis.display.MultiLayerLineSymbol; |
11 import com.esri.arcgis.display.SimpleLineSymbol; | 12 import com.esri.arcgis.display.SimpleLineSymbol; |
12 import com.esri.arcgis.display.MarkerLineSymbol; | 13 import com.esri.arcgis.display.MarkerLineSymbol; |
13 import com.esri.arcgis.display.PictureLineSymbol; | 14 import com.esri.arcgis.display.PictureLineSymbol; |
14 import com.esri.arcgis.display.CartographicLineSymbol; | 15 import com.esri.arcgis.display.CartographicLineSymbol; |
40 private MultiLayerLineSymbol symbol; | 41 private MultiLayerLineSymbol symbol; |
41 private MapToXMLUtils util; | 42 private MapToXMLUtils util; |
42 | 43 |
43 | 44 |
44 public MultiLayerLineSymbolReader(ISymbol symbol) | 45 public MultiLayerLineSymbolReader(ISymbol symbol) |
46 throws Exception { | |
47 logger.debug("contructor()"); | |
48 if(symbol instanceof MultiLayerLineSymbol) { | |
49 this.symbol = (MultiLayerLineSymbol)symbol; | |
50 } | |
51 else { | |
52 throw new Exception("Not a MultiLayerLineSymbol!"); | |
53 } | |
54 } | |
55 | |
56 | |
57 public MultiLayerLineSymbolReader(ILineSymbol symbol) | |
45 throws Exception { | 58 throws Exception { |
46 logger.debug("contructor()"); | 59 logger.debug("contructor()"); |
47 if(symbol instanceof MultiLayerLineSymbol) { | 60 if(symbol instanceof MultiLayerLineSymbol) { |
48 this.symbol = (MultiLayerLineSymbol)symbol; | 61 this.symbol = (MultiLayerLineSymbol)symbol; |
49 } | 62 } |