Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/MultiLayerLineSymbolReader.java @ 65:9fca9e09b966
Added cartographic line symbol reader.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 25 May 2011 14:11:48 +0200 |
parents | c73647bd71c0 |
children | 6bfebb7eb1df |
comparison
equal
deleted
inserted
replaced
64:c73647bd71c0 | 65:9fca9e09b966 |
---|---|
9 import com.esri.arcgis.display.ISymbol; | 9 import com.esri.arcgis.display.ISymbol; |
10 import com.esri.arcgis.display.MultiLayerLineSymbol; | 10 import com.esri.arcgis.display.MultiLayerLineSymbol; |
11 import com.esri.arcgis.display.SimpleLineSymbol; | 11 import com.esri.arcgis.display.SimpleLineSymbol; |
12 import com.esri.arcgis.display.MarkerLineSymbol; | 12 import com.esri.arcgis.display.MarkerLineSymbol; |
13 import com.esri.arcgis.display.PictureLineSymbol; | 13 import com.esri.arcgis.display.PictureLineSymbol; |
14 import com.esri.arcgis.display.CartographicLineSymbol; | |
14 import com.esri.arcgis.display.esriSimpleMarkerStyle; | 15 import com.esri.arcgis.display.esriSimpleMarkerStyle; |
15 import com.esri.arcgis.display.IRgbColor; | 16 import com.esri.arcgis.display.IRgbColor; |
16 import com.esri.arcgis.display.RgbColor; | 17 import com.esri.arcgis.display.RgbColor; |
17 | 18 |
18 import org.w3c.dom.Element; | 19 import org.w3c.dom.Element; |
96 ISymbolReader sreader = new PictureLineSymbolReader(sym); | 97 ISymbolReader sreader = new PictureLineSymbolReader(sym); |
97 sreader.setParent(renderer); | 98 sreader.setParent(renderer); |
98 sreader.setUtil(util); | 99 sreader.setUtil(util); |
99 sreader.read(); | 100 sreader.read(); |
100 } | 101 } |
102 else if(sym instanceof CartographicLineSymbol) { | |
103 ISymbolReader sreader = new CartoLineSymbolReader(sym); | |
104 sreader.setParent(renderer); | |
105 sreader.setUtil(util); | |
106 sreader.read(); | |
107 } | |
101 else { | 108 else { |
102 logger.debug("The type of " + sym.getClass().toString() + | 109 logger.debug("The type of " + sym.getClass().toString() + |
103 " is not implemented!"); | 110 " is not implemented!"); |
104 System.out.println( | 111 System.out.println( |
105 "No known instance: " + sym.getClass().toString()); | 112 "No known instance: " + sym.getClass().toString()); |