Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/MultiLayerLineSymbolReader.java @ 63:5c5ef5768893
Added MultiLayerLineSymbolReader.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 24 May 2011 16:51:01 +0200 |
parents | e00deee347a5 |
children | c73647bd71c0 |
comparison
equal
deleted
inserted
replaced
62:e468cf8701ea | 63:5c5ef5768893 |
---|---|
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.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.esriSimpleMarkerStyle; | 13 import com.esri.arcgis.display.esriSimpleMarkerStyle; |
13 import com.esri.arcgis.display.IRgbColor; | 14 import com.esri.arcgis.display.IRgbColor; |
14 import com.esri.arcgis.display.RgbColor; | 15 import com.esri.arcgis.display.RgbColor; |
15 | 16 |
16 import org.w3c.dom.Element; | 17 import org.w3c.dom.Element; |
82 ISymbolReader sreader = new SimpleLineSymbolReader(sym); | 83 ISymbolReader sreader = new SimpleLineSymbolReader(sym); |
83 sreader.setParent(renderer); | 84 sreader.setParent(renderer); |
84 sreader.setUtil(util); | 85 sreader.setUtil(util); |
85 sreader.read(); | 86 sreader.read(); |
86 } | 87 } |
88 else if(sym instanceof MarkerLineSymbol) { | |
89 ISymbolReader sreader = new MarkerLineSymbolReader(sym); | |
90 sreader.setParent(renderer); | |
91 sreader.setUtil(util); | |
92 sreader.read(); | |
93 } | |
87 else { | 94 else { |
88 logger.debug("The type of " + sym.getClass().toString() + | 95 logger.debug("The type of " + sym.getClass().toString() + |
89 " is not implemented!"); | 96 " is not implemented!"); |
90 System.out.println( | 97 System.out.println( |
91 "No known instance: " + sym.getClass().toString()); | 98 "No known instance: " + sym.getClass().toString()); |