comparison src/java/de/intevation/mxd/writer/LineStyleWriter.java @ 131:cd18c61cbcf6

Do not write lines or outlines if their width is smaller than 1.0.
author vc11884admin@VC11884.win.bsh.de
date Mon, 20 Jun 2011 17:41:55 +0200
parents f0a72d232aa8
children 7632850b9520
comparison
equal deleted inserted replaced
130:5991c1f90f91 131:cd18c61cbcf6
40 * Write the content. 40 * Write the content.
41 */ 41 */
42 public boolean write(Element symbolElement) { 42 public boolean write(Element symbolElement) {
43 logger.debug("write(Element)"); 43 logger.debug("write(Element)");
44 symbolSetObj symbolSet = map.getSymbolset(); 44 symbolSetObj symbolSet = map.getSymbolset();
45 if(symbolElement.hasAttribute("width")) {
46 double w = Double.parseDouble(symbolElement.getAttribute("width"));
47 if(w < 1.0) {
48 return false;
49 }
50 style.setWidth((int)Double.parseDouble(
51 symbolElement.getAttribute("width")));
52 }
45 if(symbolElement.hasAttribute("angle")) { 53 if(symbolElement.hasAttribute("angle")) {
46 style.setAngle( 54 style.setAngle(
47 Double.parseDouble(symbolElement.getAttribute("angle"))); 55 Double.parseDouble(symbolElement.getAttribute("angle")));
48 } 56 }
49 if(symbolElement.hasAttribute("color")) { 57 if(symbolElement.hasAttribute("color")) {
54 col.getGreen(), 62 col.getGreen(),
55 col.getBlue(), 63 col.getBlue(),
56 -4); 64 -4);
57 style.setColor(color); 65 style.setColor(color);
58 } 66 }
59 if(symbolElement.hasAttribute("width")) { 67
60 style.setWidth((int)Double.parseDouble(
61 symbolElement.getAttribute("width")));
62 }
63 if(symbolElement.hasAttribute("size")) { 68 if(symbolElement.hasAttribute("size")) {
64 style.setSize((int)Double.parseDouble( 69 style.setSize((int)Double.parseDouble(
65 symbolElement.getAttribute("size"))); 70 symbolElement.getAttribute("size")));
66 } 71 }
67 String name = symbolElement.getAttribute("name"); 72 String name = symbolElement.getAttribute("name");
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)