comparison src/java/de/intevation/mxd/reader/SimpleRendererReader.java @ 68:686a88eb531d

Added multi layer fill symbol reader.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 26 May 2011 12:30:07 +0200
parents e00deee347a5
children 260748e3d08f
comparison
equal deleted inserted replaced
67:5ed9e720b6cd 68:686a88eb531d
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.display.MultiLayerLineSymbol;
13 import com.esri.arcgis.display.MultiLayerFillSymbol;
13 import com.esri.arcgis.carto.SimpleRenderer; 14 import com.esri.arcgis.carto.SimpleRenderer;
14 15
15 import org.w3c.dom.Element; 16 import org.w3c.dom.Element;
16 17
17 import de.intevation.mxd.utils.MapToXMLUtils; 18 import de.intevation.mxd.utils.MapToXMLUtils;
109 ISymbolReader isr = new MultiLayerLineSymbolReader(symbol); 110 ISymbolReader isr = new MultiLayerLineSymbolReader(symbol);
110 isr.setParent(rendererElement); 111 isr.setParent(rendererElement);
111 isr.setUtil(util); 112 isr.setUtil(util);
112 isr.read(); 113 isr.read();
113 } 114 }
115 else if(symbol instanceof MultiLayerFillSymbol) {
116 ISymbolReader isr = new MultiLayerFillSymbolReader (symbol);
117 isr.setParent(rendererElement);
118 isr.setUtil(util);
119 isr.read();
120 }
114 else { 121 else {
115 System.out.println("No known Symbol type: " + symbol.getClass().toString()); 122 System.out.println("No known Symbol type: " + symbol.getClass().toString());
116 } 123 }
117 return layer; 124 return layer;
118 } 125 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)