comparison src/java/de/intevation/mxd/writer/LineStyleWriter.java @ 181:0bde090506f9

Added comments.
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 11 Jul 2011 14:28:38 +0200
parents f4eb506499f5
children c79c3c6fc99a
comparison
equal deleted inserted replaced
180:f4eb506499f5 181:0bde090506f9
24 /** 24 /**
25 * The Logger. 25 * The Logger.
26 */ 26 */
27 private static final Logger logger = Logger.getLogger(LineStyleWriter.class); 27 private static final Logger logger = Logger.getLogger(LineStyleWriter.class);
28 28
29 /**
30 * Private mamber
31 */
29 private mapObj map; 32 private mapObj map;
30 private classObj cl; 33 private classObj cl;
31 private styleObj style; 34 private styleObj style;
32 35
36 /**
37 * Contructor with map object and class object.
38 *
39 * @param map The map object.
40 * @param cl The class object containing the style.
41 */
33 public LineStyleWriter (mapObj map, classObj cl) { 42 public LineStyleWriter (mapObj map, classObj cl) {
34 this.map = map; 43 this.map = map;
35 this.cl = cl; 44 this.cl = cl;
36 this.style = new styleObj(cl); 45 this.style = new styleObj(cl);
37 } 46 }
38 47
39 /** 48 /**
40 * Write the content. 49 * Write the content.
50 *
51 * @param symbolElement DOM element containing style attributes.
41 */ 52 */
42 public boolean write(Element symbolElement) { 53 public boolean write(Element symbolElement) {
43 logger.debug("write(Element)"); 54 logger.debug("write(Element)");
44 symbolSetObj symbolSet = map.getSymbolset(); 55 symbolSetObj symbolSet = map.getSymbolset();
45 if(symbolElement.hasAttribute("width")) { 56 if(symbolElement.hasAttribute("width")) {
184 } 195 }
185 else { 196 else {
186 style.setPatternlength(count*2); 197 style.setPatternlength(count*2);
187 } 198 }
188 style.setPattern(vals); 199 style.setPattern(vals);
189
190 } 200 }
191 catch(NumberFormatException nfe) { 201 catch(NumberFormatException nfe) {
192 logger.warn("Could not write PATTERN."); 202 logger.warn("Could not write PATTERN.");
193 } 203 }
194 } 204 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)