Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/SimpleFillSymbolReader.java @ 181:0bde090506f9
Added comments.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 11 Jul 2011 14:28:38 +0200 |
parents | a4ab239509f1 |
children | 7fbb643d5378 |
comparison
equal
deleted
inserted
replaced
180:f4eb506499f5 | 181:0bde090506f9 |
---|---|
32 /** | 32 /** |
33 * Private member. | 33 * Private member. |
34 */ | 34 */ |
35 private SimpleFillSymbol symbol; | 35 private SimpleFillSymbol symbol; |
36 | 36 |
37 public SimpleFillSymbolReader(ISymbol symbol) throws Exception{ | 37 /** |
38 * Constructor with symbol. | |
39 * | |
40 * @param symbol The symbol used to display polygons. | |
41 */ | |
42 public SimpleFillSymbolReader(ISymbol symbol) | |
43 throws Exception { | |
38 logger.debug("contructor(ISymbol)"); | 44 logger.debug("contructor(ISymbol)"); |
39 if(symbol instanceof SimpleFillSymbol) { | 45 if(symbol instanceof SimpleFillSymbol) { |
40 this.symbol = (SimpleFillSymbol)symbol; | 46 this.symbol = (SimpleFillSymbol)symbol; |
41 } | 47 } |
42 else { | 48 else { |
43 throw new Exception("Not a SimpleFillSymbol!"); | 49 throw new Exception("Not a SimpleFillSymbol!"); |
44 } | 50 } |
45 } | 51 } |
46 | 52 |
47 public SimpleFillSymbolReader(IFillSymbol symbol) throws Exception{ | 53 /** |
54 * Constructor with symbol. | |
55 * | |
56 * @param symbol The symbol used to diplay polygons. | |
57 */ | |
58 public SimpleFillSymbolReader(IFillSymbol symbol) | |
59 throws Exception { | |
48 logger.debug("contructor(IFillSymbol)"); | 60 logger.debug("contructor(IFillSymbol)"); |
49 if(symbol instanceof SimpleFillSymbol) { | 61 if(symbol instanceof SimpleFillSymbol) { |
50 this.symbol = (SimpleFillSymbol)symbol; | 62 this.symbol = (SimpleFillSymbol)symbol; |
51 } | 63 } |
52 else { | 64 else { |