comparison src/java/de/intevation/mxd/reader/MultiLayerMarkerSymbolReader.java @ 58:4e0464c620f0

Introduced the picture symbol reader.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 20 May 2011 15:34:35 +0200
parents 5fc813f40fa5
children 5c5ef5768893
comparison
equal deleted inserted replaced
57:8da6555f1c12 58:4e0464c620f0
9 import com.esri.arcgis.display.ISymbol; 9 import com.esri.arcgis.display.ISymbol;
10 import com.esri.arcgis.display.IMarkerSymbol; 10 import com.esri.arcgis.display.IMarkerSymbol;
11 import com.esri.arcgis.display.MultiLayerMarkerSymbol; 11 import com.esri.arcgis.display.MultiLayerMarkerSymbol;
12 import com.esri.arcgis.display.ArrowMarkerSymbol; 12 import com.esri.arcgis.display.ArrowMarkerSymbol;
13 import com.esri.arcgis.display.CharacterMarkerSymbol; 13 import com.esri.arcgis.display.CharacterMarkerSymbol;
14 import com.esri.arcgis.display.PictureMarkerSymbol;
15
14 import com.esri.arcgis.display.IColor; 16 import com.esri.arcgis.display.IColor;
15 import com.esri.arcgis.display.RgbColor; 17 import com.esri.arcgis.display.RgbColor;
16 18
17 import org.w3c.dom.Element; 19 import org.w3c.dom.Element;
18 import de.intevation.mxd.utils.MapToXMLUtils; 20 import de.intevation.mxd.utils.MapToXMLUtils;
83 ISymbolReader sreader = new ArrowMarkerSymbolReader(sym); 85 ISymbolReader sreader = new ArrowMarkerSymbolReader(sym);
84 sreader.setParent(renderer); 86 sreader.setParent(renderer);
85 sreader.setUtil(util); 87 sreader.setUtil(util);
86 sreader.read(); 88 sreader.read();
87 } 89 }
88 if(sym instanceof CharacterMarkerSymbol) { 90 else if(sym instanceof CharacterMarkerSymbol) {
89 ISymbolReader sreader = new CharacterMarkerSymbolReader(sym); 91 ISymbolReader sreader = new CharacterMarkerSymbolReader(sym);
90 sreader.setParent(renderer); 92 sreader.setParent(renderer);
91 sreader.setUtil(util); 93 sreader.setUtil(util);
92 sreader.read(); 94 sreader.read();
93 } 95 }
96 else if(sym instanceof PictureMarkerSymbol) {
97 ISymbolReader sreader = new PictureMarkerSymbolReader(sym);
98 sreader.setParent(renderer);
99 sreader.setUtil(util);
100 sreader.read();
101 }
94 else { 102 else {
103 logger.debug("The type of " + sym.getClass().toString() +
104 " is not implemented!");
95 System.out.println( 105 System.out.println(
96 "No known instance: " + sym.getClass().toString()); 106 "No known instance: " + sym.getClass().toString());
97 } 107 }
98 } 108 }
99 catch(Exception e) { 109 catch(Exception e) {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)