Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/HashLineSymbolReader.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 |
---|---|
92 * @return The XML node. | 92 * @return The XML node. |
93 */ | 93 */ |
94 public Element read() | 94 public Element read() |
95 throws IOException { | 95 throws IOException { |
96 logger.debug("read()"); | 96 logger.debug("read()"); |
97 Element symbolElement; | 97 Element symbolElement = util.addSymbol(renderer); |
98 try { | |
99 symbolElement = util.addSymbol(renderer); | |
100 } | |
101 catch(Exception e) { | |
102 e.printStackTrace(); | |
103 return null; | |
104 } | |
105 | 98 |
106 symbolElement.setAttribute("name", symbol.getNameString()); | 99 symbolElement.setAttribute("name", symbol.getNameString()); |
107 symbolElement.setAttribute("style", "line"); | 100 symbolElement.setAttribute("style", "line"); |
108 if(symbol.getColor() instanceof IRgbColor) { | 101 if(symbol.getColor() instanceof IRgbColor) { |
109 IRgbColor color = (IRgbColor)symbol.getColor(); | 102 IRgbColor color = (IRgbColor)symbol.getColor(); |