Mercurial > mxd2map
diff src/java/de/intevation/mxd/reader/MultiLayerLineSymbolReader.java @ 71:260748e3d08f
Added wrapper for line symbol reader.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 26 May 2011 16:01:29 +0200 |
parents | b41fcf268827 |
children | 7eba97e8201b |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/MultiLayerLineSymbolReader.java Thu May 26 14:28:52 2011 +0200 +++ b/src/java/de/intevation/mxd/reader/MultiLayerLineSymbolReader.java Thu May 26 16:01:29 2011 +0200 @@ -94,41 +94,10 @@ for(int i = 0; i < symbol.getLayerCount(); i++) { try { ISymbol sym = (ISymbol)symbol.getLayer(i); - - if(sym instanceof SimpleLineSymbol) { - ISymbolReader sreader = new SimpleLineSymbolReader(sym); - sreader.setParent(renderer); - sreader.setUtil(util); - sreader.read(); - } - else if(sym instanceof MarkerLineSymbol) { - ISymbolReader sreader = new MarkerLineSymbolReader(sym); - sreader.setParent(renderer); - sreader.setUtil(util); - sreader.read(); - } - else if(sym instanceof PictureLineSymbol) { - ISymbolReader sreader = new PictureLineSymbolReader(sym); - sreader.setParent(renderer); - sreader.setUtil(util); - sreader.read(); - } - else if(sym instanceof CartographicLineSymbol) { - ISymbolReader sreader = new CartoLineSymbolReader(sym); - sreader.setParent(renderer); - sreader.setUtil(util); - sreader.read(); - } - else if(sym instanceof HashLineSymbol) { - ISymbolReader sreader = new HashLineSymbolReader(sym); - sreader.setParent(renderer); - sreader.setUtil(util); - sreader.read(); - } - else { - logger.debug("The type of " + sym.getClass().toString() + - " is not implemented!"); - } + ISymbolReader sreader = new LineSymbolReader(sym); + sreader.setParent(renderer); + sreader.setUtil(util); + sreader.read(); } catch(Exception e) { e.printStackTrace();