comparison src/java/de/intevation/mxd/reader/PictureLineSymbolReader.java @ 79:5becdfe6ebae

merged with raimunds stuff
author Stephan Holl <stephan.holl@intevation.de>
date Fri, 27 May 2011 12:54:55 +0200
parents 7eba97e8201b
children 83932f18dddc
comparison
equal deleted inserted replaced
78:df17d4c2f9eb 79:5becdfe6ebae
84 * Reads the symbol attributes. 84 * Reads the symbol attributes.
85 * 85 *
86 * @return The XML node. 86 * @return The XML node.
87 */ 87 */
88 public Element read() 88 public Element read()
89 throws IOException { 89 throws Exception {
90 logger.debug("read()"); 90 logger.debug("read()");
91 Element symbolElement; 91 Element symbolElement = util.addSymbol(renderer);
92 try {
93 symbolElement = util.addSymbol(renderer);
94 }
95 catch(Exception e) {
96 e.printStackTrace();
97 return null;
98 }
99 92
100 symbolElement.setAttribute("name", symbol.getNameString()); 93 symbolElement.setAttribute("name", symbol.getNameString());
101 symbolElement.setAttribute("style", "picture"); 94 symbolElement.setAttribute("style", "picture");
102 if(symbol.getColor() instanceof IRgbColor) { 95 if(symbol.getColor() instanceof IRgbColor) {
103 IRgbColor color = (IRgbColor)symbol.getColor(); 96 IRgbColor color = (IRgbColor)symbol.getColor();
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)