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