Mercurial > mxd2map
comparison 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 |
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.SimpleLineSymbol; | 11 import com.esri.arcgis.display.SimpleLineSymbol; |
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 |
35 private SimpleLineSymbol symbol; | 36 private SimpleLineSymbol symbol; |
36 private MapToXMLUtils util; | 37 private MapToXMLUtils util; |
37 | 38 |
38 | 39 |
39 public SimpleLineSymbolReader(ISymbol symbol) | 40 public SimpleLineSymbolReader(ISymbol symbol) |
41 throws Exception { | |
42 logger.debug("contructor()"); | |
43 if(symbol instanceof SimpleLineSymbol) { | |
44 this.symbol = (SimpleLineSymbol)symbol; | |
45 } | |
46 else { | |
47 throw new Exception("Not a SimpleLineSymbol!"); | |
48 } | |
49 } | |
50 | |
51 | |
52 public SimpleLineSymbolReader(ILineSymbol symbol) | |
40 throws Exception { | 53 throws Exception { |
41 logger.debug("contructor()"); | 54 logger.debug("contructor()"); |
42 if(symbol instanceof SimpleLineSymbol) { | 55 if(symbol instanceof SimpleLineSymbol) { |
43 this.symbol = (SimpleLineSymbol)symbol; | 56 this.symbol = (SimpleLineSymbol)symbol; |
44 } | 57 } |