Mercurial > mxd2map
diff src/java/de/intevation/mxd/reader/SimpleFillSymbolReader.java @ 43:ef7ca23c4233
Added comments, done some code styling and removed typos.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Fri, 15 Apr 2011 15:44:54 +0200 |
parents | 472aa36d0e01 |
children | 686a88eb531d |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/SimpleFillSymbolReader.java Fri Apr 15 14:14:49 2011 +0200 +++ b/src/java/de/intevation/mxd/reader/SimpleFillSymbolReader.java Fri Apr 15 15:44:54 2011 +0200 @@ -19,7 +19,8 @@ * * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> */ -public class SimpleFillSymbolReader implements ISymbolReader{ +public class SimpleFillSymbolReader +implements ISymbolReader { /** * The logger. @@ -37,10 +38,12 @@ public SimpleFillSymbolReader(ISymbol symbol) throws Exception{ logger.debug("contructor()"); - if(symbol instanceof SimpleFillSymbol) + if(symbol instanceof SimpleFillSymbol) { this.symbol = (SimpleFillSymbol)symbol; - else + } + else { throw new Exception("Not a SimpleFillSymbol!"); + } } /** @@ -79,8 +82,9 @@ } symbolElement.setAttribute("name", symbol.getNameString()); - if(symbol.getStyle() == esriSimpleMarkerStyle.esriSMSCircle) + if(symbol.getStyle() == esriSimpleMarkerStyle.esriSMSCircle) { symbolElement.setAttribute("style", "point"); + } if(symbol.getColor() instanceof IRgbColor) { IRgbColor color = (IRgbColor)symbol.getColor();