Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/HashLineSymbolReader.java @ 181:0bde090506f9
Added comments.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 11 Jul 2011 14:28:38 +0200 |
parents | f4eb506499f5 |
children | df4e0946ef02 |
comparison
equal
deleted
inserted
replaced
180:f4eb506499f5 | 181:0bde090506f9 |
---|---|
33 /** | 33 /** |
34 * Private member. | 34 * Private member. |
35 */ | 35 */ |
36 private HashLineSymbol symbol; | 36 private HashLineSymbol symbol; |
37 | 37 |
38 /** | |
39 * Constructor with symbol. | |
40 * | |
41 * @param symbol The symbol used to display lines. | |
42 */ | |
38 public HashLineSymbolReader(ISymbol symbol) | 43 public HashLineSymbolReader(ISymbol symbol) |
39 throws Exception { | 44 throws Exception { |
40 logger.debug("contructor()"); | 45 logger.debug("contructor()"); |
41 if(symbol instanceof HashLineSymbol) { | 46 if(symbol instanceof HashLineSymbol) { |
42 this.symbol = (HashLineSymbol)symbol; | 47 this.symbol = (HashLineSymbol)symbol; |
44 else { | 49 else { |
45 throw new Exception("Not a HashLineSymbol!"); | 50 throw new Exception("Not a HashLineSymbol!"); |
46 } | 51 } |
47 } | 52 } |
48 | 53 |
54 /** | |
55 * Constructor with symbol. | |
56 * | |
57 * @param symbol The symbol used to display lines. | |
58 */ | |
49 public HashLineSymbolReader(ILineSymbol symbol) | 59 public HashLineSymbolReader(ILineSymbol symbol) |
50 throws Exception { | 60 throws Exception { |
51 logger.debug("contructor()"); | 61 logger.debug("contructor()"); |
52 if(symbol instanceof HashLineSymbol) { | 62 if(symbol instanceof HashLineSymbol) { |
53 this.symbol = (HashLineSymbol)symbol; | 63 this.symbol = (HashLineSymbol)symbol; |
183 symbolElement.setAttribute("style", "hash"); | 193 symbolElement.setAttribute("style", "hash"); |
184 | 194 |
185 return symbolElement; | 195 return symbolElement; |
186 } | 196 } |
187 | 197 |
198 /** | |
199 * Read the hash line symbol. | |
200 * | |
201 * @param ls The hash line symbol. | |
202 * @param parent Parent DOM element. | |
203 */ | |
188 private void readHashSymbol(ILineSymbol ls, Element parent) | 204 private void readHashSymbol(ILineSymbol ls, Element parent) |
189 throws Exception { | 205 throws Exception { |
190 LineSymbolReader lsr = new LineSymbolReader (); | 206 LineSymbolReader lsr = new LineSymbolReader (); |
191 if (lsr.canRead(ls)) { | 207 if (lsr.canRead(ls)) { |
192 lsr.setSymbol(ls); | 208 lsr.setSymbol(ls); |