comparison src/java/de/intevation/mxd/reader/SimpleLineSymbolReader.java @ 165:87afe66f7d88

Merged with raimunds changes
author Stephan Holl <stephan.holl@intevation.de>
date Thu, 30 Jun 2011 14:59:44 +0200
parents 7b1433d3b574
children f4eb506499f5
comparison
equal deleted inserted replaced
164:ba2252ceb6f9 165:87afe66f7d88
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)