comparison src/java/de/intevation/mxd/reader/SimpleLineSymbolReader.java @ 150:7b1433d3b574

Handle outlines with width < 1 and transparent color.
author vc11884admin@VC11884.win.bsh.de
date Wed, 29 Jun 2011 19:29:14 +0200
parents a4ab239509f1
children f4eb506499f5
comparison
equal deleted inserted replaced
149:07e2033dd60e 150:7b1433d3b574
78 Color c = new Color ( 78 Color c = new Color (
79 color.getRed(), 79 color.getRed(),
80 color.getGreen(), 80 color.getGreen(),
81 color.getBlue()); 81 color.getBlue());
82 symbolElement.setAttribute("color", String.valueOf(c.getRGB())); 82 symbolElement.setAttribute("color", String.valueOf(c.getRGB()));
83 symbolElement.setAttribute(
84 "transparency",
85 String.valueOf(c.getTransparency()));
83 } 86 }
84 else { 87 else {
85 RgbColor col = new RgbColor(); 88 RgbColor col = new RgbColor();
86 col.setRGB(symbol.getColor().getRGB()); 89 col.setRGB(symbol.getColor().getRGB());
87 Color c = new Color ( 90 Color c = new Color (
88 col.getRed(), 91 col.getRed(),
89 col.getGreen(), 92 col.getGreen(),
90 col.getBlue()); 93 col.getBlue());
91 symbolElement.setAttribute("color", String.valueOf(c.getRGB())); 94 symbolElement.setAttribute("color", String.valueOf(c.getRGB()));
95 symbolElement.setAttribute(
96 "transparency",
97 String.valueOf(c.getTransparency()));
92 } 98 }
93 } 99 }
94 catch(IOException ioe) { 100 catch(IOException ioe) {
95 logger.warn("Could not read color."); 101 logger.warn("Could not read color.");
96 } 102 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)