comparison src/java/de/intevation/mxd/reader/FillSymbolReader.java @ 251:6b80e46b8f38

Added picture symbol support to the converter.
author raimund renkert <raimund.renkert@intevation.de>
date Fri, 12 Aug 2011 16:08:57 +0200
parents df4e0946ef02
children 10e0aa283217
comparison
equal deleted inserted replaced
250:d10fd4de02aa 251:6b80e46b8f38
29 import com.esri.arcgis.display.IFillSymbol; 29 import com.esri.arcgis.display.IFillSymbol;
30 import com.esri.arcgis.display.MultiLayerFillSymbol; 30 import com.esri.arcgis.display.MultiLayerFillSymbol;
31 import com.esri.arcgis.display.SimpleFillSymbol; 31 import com.esri.arcgis.display.SimpleFillSymbol;
32 import com.esri.arcgis.display.MarkerFillSymbol; 32 import com.esri.arcgis.display.MarkerFillSymbol;
33 import com.esri.arcgis.display.LineFillSymbol; 33 import com.esri.arcgis.display.LineFillSymbol;
34 import com.esri.arcgis.display.PictureFillSymbol;
34 35
35 /** 36 /**
36 * Wrapper for fill symbol reader. 37 * Wrapper for fill symbol reader.
37 * 38 *
38 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> 39 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
105 sreader = new MarkerFillSymbolReader(symbol); 106 sreader = new MarkerFillSymbolReader(symbol);
106 } 107 }
107 else if(symbol instanceof LineFillSymbol) { 108 else if(symbol instanceof LineFillSymbol) {
108 sreader = new LineFillSymbolReader(symbol); 109 sreader = new LineFillSymbolReader(symbol);
109 } 110 }
111 else if(symbol instanceof PictureFillSymbol) {
112 sreader = new PictureFillSymbolReader(symbol);
113 }
110 else { 114 else {
111 logger.debug("The reader for type " + 115 logger.debug("The reader for type " +
112 symbol.getClass().toString() + 116 symbol.getClass().toString() +
113 " is not implemented!"); 117 " is not implemented!");
114 return parent; 118 return parent;
133 sreader = new MarkerFillSymbolReader(fillSymbol); 137 sreader = new MarkerFillSymbolReader(fillSymbol);
134 } 138 }
135 else if(fillSymbol instanceof LineFillSymbol) { 139 else if(fillSymbol instanceof LineFillSymbol) {
136 sreader = new LineFillSymbolReader(fillSymbol); 140 sreader = new LineFillSymbolReader(fillSymbol);
137 } 141 }
142 else if(fillSymbol instanceof PictureFillSymbol) {
143 sreader = new PictureFillSymbolReader(fillSymbol);
144 }
138 else { 145 else {
139 logger.debug("The reader for type " + 146 logger.debug("The reader for type " +
140 fillSymbol.getClass().toString() + 147 fillSymbol.getClass().toString() +
141 " is not implemented!"); 148 " is not implemented!");
142 return parent; 149 return parent;
187 */ 194 */
188 public boolean canRead(ISymbol sym) { 195 public boolean canRead(ISymbol sym) {
189 if(sym instanceof SimpleFillSymbol || 196 if(sym instanceof SimpleFillSymbol ||
190 sym instanceof MarkerFillSymbol || 197 sym instanceof MarkerFillSymbol ||
191 sym instanceof MultiLayerFillSymbol || 198 sym instanceof MultiLayerFillSymbol ||
192 sym instanceof LineFillSymbol) { 199 sym instanceof LineFillSymbol ||
200 sym instanceof PictureFillSymbol) {
193 return true; 201 return true;
194 } 202 }
195 else { 203 else {
196 return false; 204 return false;
197 } 205 }
204 */ 212 */
205 public boolean canRead(IFillSymbol sym) { 213 public boolean canRead(IFillSymbol sym) {
206 if(sym instanceof SimpleFillSymbol || 214 if(sym instanceof SimpleFillSymbol ||
207 sym instanceof MarkerFillSymbol || 215 sym instanceof MarkerFillSymbol ||
208 sym instanceof MultiLayerFillSymbol || 216 sym instanceof MultiLayerFillSymbol ||
209 sym instanceof LineFillSymbol) { 217 sym instanceof LineFillSymbol ||
218 sym instanceof PictureFillSymbol) {
210 return true; 219 return true;
211 } 220 }
212 else { 221 else {
213 return false; 222 return false;
214 } 223 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)