comparison src/java/de/intevation/mxd/reader/SimpleRendererReader.java @ 61:e00deee347a5

Added first line symbol reader.
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 23 May 2011 13:16:42 +0200
parents 37ff67a4991d
children 686a88eb531d
comparison
equal deleted inserted replaced
60:37ff67a4991d 61:e00deee347a5
7 import com.esri.arcgis.carto.IFeatureRenderer; 7 import com.esri.arcgis.carto.IFeatureRenderer;
8 import com.esri.arcgis.display.ISymbol; 8 import com.esri.arcgis.display.ISymbol;
9 import com.esri.arcgis.display.SimpleMarkerSymbol; 9 import com.esri.arcgis.display.SimpleMarkerSymbol;
10 import com.esri.arcgis.display.SimpleFillSymbol; 10 import com.esri.arcgis.display.SimpleFillSymbol;
11 import com.esri.arcgis.display.MultiLayerMarkerSymbol; 11 import com.esri.arcgis.display.MultiLayerMarkerSymbol;
12 import com.esri.arcgis.display.MultiLayerLineSymbol;
12 import com.esri.arcgis.carto.SimpleRenderer; 13 import com.esri.arcgis.carto.SimpleRenderer;
13 14
14 import org.w3c.dom.Element; 15 import org.w3c.dom.Element;
15 16
16 import de.intevation.mxd.utils.MapToXMLUtils; 17 import de.intevation.mxd.utils.MapToXMLUtils;
102 ISymbolReader isr = new MultiLayerMarkerSymbolReader(symbol); 103 ISymbolReader isr = new MultiLayerMarkerSymbolReader(symbol);
103 isr.setParent(rendererElement); 104 isr.setParent(rendererElement);
104 isr.setUtil(util); 105 isr.setUtil(util);
105 isr.read(); 106 isr.read();
106 } 107 }
108 else if(symbol instanceof MultiLayerLineSymbol) {
109 ISymbolReader isr = new MultiLayerLineSymbolReader(symbol);
110 isr.setParent(rendererElement);
111 isr.setUtil(util);
112 isr.read();
113 }
107 else { 114 else {
108 System.out.println("No known Symbol type: " + symbol.getClass().toString()); 115 System.out.println("No known Symbol type: " + symbol.getClass().toString());
109 } 116 }
110 return layer; 117 return layer;
111 } 118 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)