Mercurial > mxd2map
comparison 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 |
comparison
equal
deleted
inserted
replaced
70:6d181c02efce | 71:260748e3d08f |
---|---|
92 throws IOException { | 92 throws IOException { |
93 logger.debug("read()"); | 93 logger.debug("read()"); |
94 for(int i = 0; i < symbol.getLayerCount(); i++) { | 94 for(int i = 0; i < symbol.getLayerCount(); i++) { |
95 try { | 95 try { |
96 ISymbol sym = (ISymbol)symbol.getLayer(i); | 96 ISymbol sym = (ISymbol)symbol.getLayer(i); |
97 | 97 ISymbolReader sreader = new LineSymbolReader(sym); |
98 if(sym instanceof SimpleLineSymbol) { | 98 sreader.setParent(renderer); |
99 ISymbolReader sreader = new SimpleLineSymbolReader(sym); | 99 sreader.setUtil(util); |
100 sreader.setParent(renderer); | 100 sreader.read(); |
101 sreader.setUtil(util); | |
102 sreader.read(); | |
103 } | |
104 else if(sym instanceof MarkerLineSymbol) { | |
105 ISymbolReader sreader = new MarkerLineSymbolReader(sym); | |
106 sreader.setParent(renderer); | |
107 sreader.setUtil(util); | |
108 sreader.read(); | |
109 } | |
110 else if(sym instanceof PictureLineSymbol) { | |
111 ISymbolReader sreader = new PictureLineSymbolReader(sym); | |
112 sreader.setParent(renderer); | |
113 sreader.setUtil(util); | |
114 sreader.read(); | |
115 } | |
116 else if(sym instanceof CartographicLineSymbol) { | |
117 ISymbolReader sreader = new CartoLineSymbolReader(sym); | |
118 sreader.setParent(renderer); | |
119 sreader.setUtil(util); | |
120 sreader.read(); | |
121 } | |
122 else if(sym instanceof HashLineSymbol) { | |
123 ISymbolReader sreader = new HashLineSymbolReader(sym); | |
124 sreader.setParent(renderer); | |
125 sreader.setUtil(util); | |
126 sreader.read(); | |
127 } | |
128 else { | |
129 logger.debug("The type of " + sym.getClass().toString() + | |
130 " is not implemented!"); | |
131 } | |
132 } | 101 } |
133 catch(Exception e) { | 102 catch(Exception e) { |
134 e.printStackTrace(); | 103 e.printStackTrace(); |
135 return null; | 104 return null; |
136 } | 105 } |