Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/CartoLineSymbolReader.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 | 9fca9e09b966 |
children | 7eba97e8201b |
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.CartographicLineSymbol; | 11 import com.esri.arcgis.display.CartographicLineSymbol; |
11 import com.esri.arcgis.display.esriSimpleLineStyle; | 12 import com.esri.arcgis.display.esriSimpleLineStyle; |
12 import com.esri.arcgis.display.IRgbColor; | 13 import com.esri.arcgis.display.IRgbColor; |
13 import com.esri.arcgis.display.RgbColor; | 14 import com.esri.arcgis.display.RgbColor; |
14 | 15 |
38 private CartographicLineSymbol symbol; | 39 private CartographicLineSymbol symbol; |
39 private MapToXMLUtils util; | 40 private MapToXMLUtils util; |
40 | 41 |
41 | 42 |
42 public CartoLineSymbolReader(ISymbol symbol) | 43 public CartoLineSymbolReader(ISymbol symbol) |
44 throws Exception { | |
45 logger.debug("contructor()"); | |
46 if(symbol instanceof CartographicLineSymbol) { | |
47 this.symbol = (CartographicLineSymbol)symbol; | |
48 } | |
49 else { | |
50 throw new Exception("Not a CartographicLineSymbol!"); | |
51 } | |
52 } | |
53 | |
54 | |
55 public CartoLineSymbolReader(ILineSymbol symbol) | |
43 throws Exception { | 56 throws Exception { |
44 logger.debug("contructor()"); | 57 logger.debug("contructor()"); |
45 if(symbol instanceof CartographicLineSymbol) { | 58 if(symbol instanceof CartographicLineSymbol) { |
46 this.symbol = (CartographicLineSymbol)symbol; | 59 this.symbol = (CartographicLineSymbol)symbol; |
47 } | 60 } |