Mercurial > mxd2map
comparison src/java/de/intevation/mxd/writer/FillStyleWriter.java @ 120:11d63bf00326
Changed exception handling and logging in writer classes.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 16 Jun 2011 14:49:45 +0200 |
parents | 461ee9193097 |
children | 3c792458a716 |
comparison
equal
deleted
inserted
replaced
119:84f202b6aa65 | 120:11d63bf00326 |
---|---|
43 } | 43 } |
44 | 44 |
45 /** | 45 /** |
46 * Write the content. | 46 * Write the content. |
47 */ | 47 */ |
48 public boolean write(Element symbolElement) | 48 public boolean write(Element symbolElement) { |
49 throws Exception { | |
50 symbolSetObj symbolSet = map.getSymbolset(); | 49 symbolSetObj symbolSet = map.getSymbolset(); |
51 | 50 |
52 if(symbolElement.hasChildNodes()) { | 51 if(symbolElement.hasChildNodes()) { |
53 NodeList symbols = symbolElement.getChildNodes(); | 52 NodeList symbols = symbolElement.getChildNodes(); |
54 for (int i = 0; i < symbols.getLength(); i++) { | 53 for (int i = 0; i < symbols.getLength(); i++) { |
114 } | 113 } |
115 | 114 |
116 /** | 115 /** |
117 * Write the outline for a polygon. | 116 * Write the outline for a polygon. |
118 */ | 117 */ |
119 private void writeOutline(Element symbolElement) | 118 private void writeOutline(Element symbolElement) { |
120 throws Exception { | |
121 logger.debug("writeOutline()"); | 119 logger.debug("writeOutline()"); |
122 //write transparent outline | 120 //write transparent outline |
123 colorObj color = new colorObj(-1, -1, -1, -4); | 121 colorObj color = new colorObj(-1, -1, -1, -4); |
124 | 122 |
125 //write new style for the outline | 123 //write new style for the outline |
140 } | 138 } |
141 | 139 |
142 /** | 140 /** |
143 * Write marker attributes and a symbol for the polygon fill. | 141 * Write marker attributes and a symbol for the polygon fill. |
144 */ | 142 */ |
145 private void writeMarker(Element symbolElement, double gap) | 143 private void writeMarker(Element symbolElement, double gap) { |
146 throws Exception { | |
147 logger.debug("writeMarker()"); | 144 logger.debug("writeMarker()"); |
148 String name = symbolElement.getAttribute("name"); | 145 String name = symbolElement.getAttribute("name"); |
149 String type = symbolElement.getAttribute("type"); | 146 String type = symbolElement.getAttribute("type"); |
150 if (symbolElement.hasAttribute("angle")) { | 147 if (symbolElement.hasAttribute("angle")) { |
151 style.setAngle( | 148 style.setAngle( |