comparison src/java/de/intevation/mxd/writer/LineStyleWriter.java @ 141:8f30f7e802d6

Manage symbol names and symbol comparison.
author vc11884admin@VC11884.win.bsh.de
date Mon, 27 Jun 2011 16:07:13 +0200
parents 7632850b9520
children b2c5a66022f1
comparison
equal deleted inserted replaced
137:cd55975ba0c4 141:8f30f7e802d6
67 67
68 if(symbolElement.hasAttribute("size")) { 68 if(symbolElement.hasAttribute("size")) {
69 style.setSize((int)Double.parseDouble( 69 style.setSize((int)Double.parseDouble(
70 symbolElement.getAttribute("size"))); 70 symbolElement.getAttribute("size")));
71 } 71 }
72 String type = symbolElement.getAttribute("type");
73 if(type.equals("marker")) {
74 SymbolWriter sw = new SymbolWriter(this.map, this.cl);
75 sw.write(symbolElement);
76 }
72 String name = symbolElement.getAttribute("name"); 77 String name = symbolElement.getAttribute("name");
78 style.setSymbolByName(map, name);
73 symbolObj sym = symbolSet.getSymbolByName(name); 79 symbolObj sym = symbolSet.getSymbolByName(name);
74 80
75 //The following lines are for dashed and/or dotted lines. 81 //The following lines are for dashed and/or dotted lines.
76 if(symbolElement.hasAttribute("linestyle")) { 82 if(symbolElement.hasAttribute("linestyle")) {
77 String ls = symbolElement.getAttribute("linestyle"); 83 String ls = symbolElement.getAttribute("linestyle");
134 catch(NumberFormatException nfe) { 140 catch(NumberFormatException nfe) {
135 logger.warn("Could not write PATTERN."); 141 logger.warn("Could not write PATTERN.");
136 } 142 }
137 } 143 }
138 144
139 String type = symbolElement.getAttribute("type");
140 145
141 if(type.equals("marker")) { 146
142 style.setSymbolByName(map, name); 147
143 SymbolWriter sw = new SymbolWriter(this.map, this.cl);
144 sw.write(symbolElement);
145 }
146 return false; 148 return false;
147 } 149 }
148 } 150 }
149 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 151 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)