Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/SimpleRendererReader.java @ 72:2cbe423b1fda
Added wrapper for fill symbol reader.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 26 May 2011 16:49:03 +0200 |
parents | 260748e3d08f |
children | 7eba97e8201b |
comparison
equal
deleted
inserted
replaced
71:260748e3d08f | 72:2cbe423b1fda |
---|---|
85 rendererElement.setAttribute("description", renderer.getDescription()); | 85 rendererElement.setAttribute("description", renderer.getDescription()); |
86 symbol = renderer.getSymbol(); | 86 symbol = renderer.getSymbol(); |
87 | 87 |
88 MarkerSymbolReader markerReader = new MarkerSymbolReader(); | 88 MarkerSymbolReader markerReader = new MarkerSymbolReader(); |
89 LineSymbolReader lineReader = new LineSymbolReader(); | 89 LineSymbolReader lineReader = new LineSymbolReader(); |
90 FillSymbolReader fillReader = new FillSymbolReader(); | |
90 if(markerReader.canRead(symbol)) { | 91 if(markerReader.canRead(symbol)) { |
91 markerReader.setSymbol(symbol); | 92 markerReader.setSymbol(symbol); |
92 markerReader.setUtil(util); | 93 markerReader.setUtil(util); |
93 markerReader.setParent(rendererElement); | 94 markerReader.setParent(rendererElement); |
94 markerReader.read(); | 95 markerReader.read(); |
96 else if(lineReader.canRead(symbol)) { | 97 else if(lineReader.canRead(symbol)) { |
97 lineReader.setSymbol(symbol); | 98 lineReader.setSymbol(symbol); |
98 lineReader.setUtil(util); | 99 lineReader.setUtil(util); |
99 lineReader.setParent(rendererElement); | 100 lineReader.setParent(rendererElement); |
100 lineReader.read(); | 101 lineReader.read(); |
102 } | |
103 else if(fillReader.canRead(symbol)) { | |
104 fillReader.setSymbol(symbol); | |
105 fillReader.setUtil(util); | |
106 fillReader.setParent(rendererElement); | |
107 fillReader.read(); | |
101 } | 108 } |
102 else { | 109 else { |
103 logger.debug("No known Symbol type: " + symbol.getClass().toString()); | 110 logger.debug("No known Symbol type: " + symbol.getClass().toString()); |
104 } | 111 } |
105 return layer; | 112 return layer; |