comparison src/java/de/intevation/mxd/reader/FillSymbolReader.java @ 75:9ea64427ac7e

Added marker fill symbol reader.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 27 May 2011 12:04:19 +0200
parents 2cbe423b1fda
children 3087c89a5bb8
comparison
equal deleted inserted replaced
74:7eba97e8201b 75:9ea64427ac7e
8 8
9 import com.esri.arcgis.display.ISymbol; 9 import com.esri.arcgis.display.ISymbol;
10 import com.esri.arcgis.display.IFillSymbol; 10 import com.esri.arcgis.display.IFillSymbol;
11 import com.esri.arcgis.display.MultiLayerFillSymbol; 11 import com.esri.arcgis.display.MultiLayerFillSymbol;
12 import com.esri.arcgis.display.SimpleFillSymbol; 12 import com.esri.arcgis.display.SimpleFillSymbol;
13 import com.esri.arcgis.display.MarkerFillSymbol;
13 14
14 /** 15 /**
15 * Wrapper for fill symbol reader. 16 * Wrapper for fill symbol reader.
16 * 17 *
17 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> 18 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
53 sreader = new SimpleFillSymbolReader(symbol); 54 sreader = new SimpleFillSymbolReader(symbol);
54 } 55 }
55 else if(symbol instanceof MultiLayerFillSymbol) { 56 else if(symbol instanceof MultiLayerFillSymbol) {
56 sreader = new MultiLayerFillSymbolReader(symbol); 57 sreader = new MultiLayerFillSymbolReader(symbol);
57 } 58 }
59 else if(symbol instanceof MarkerFillSymbol) {
60 sreader = new MarkerFillSymbolReader(symbol);
61 }
58 else { 62 else {
59 logger.debug("The reader for type " + symbol.getClass().toString() + 63 logger.debug("The reader for type " + symbol.getClass().toString() +
60 " is not implemented!"); 64 " is not implemented!");
61 return parent; 65 return parent;
62 } 66 }
65 if(fillSymbol instanceof SimpleFillSymbol) { 69 if(fillSymbol instanceof SimpleFillSymbol) {
66 sreader = new SimpleFillSymbolReader(fillSymbol); 70 sreader = new SimpleFillSymbolReader(fillSymbol);
67 } 71 }
68 else if(fillSymbol instanceof MultiLayerFillSymbol) { 72 else if(fillSymbol instanceof MultiLayerFillSymbol) {
69 sreader = new MultiLayerFillSymbolReader(fillSymbol); 73 sreader = new MultiLayerFillSymbolReader(fillSymbol);
74 }
75 else if(fillSymbol instanceof MarkerFillSymbol) {
76 sreader = new MarkerFillSymbolReader(fillSymbol);
70 } 77 }
71 else { 78 else {
72 logger.debug("The reader for type " + 79 logger.debug("The reader for type " +
73 fillSymbol.getClass().toString() + 80 fillSymbol.getClass().toString() +
74 " is not implemented!"); 81 " is not implemented!");
96 this.fillSymbol = sym; 103 this.fillSymbol = sym;
97 } 104 }
98 105
99 public boolean canRead(ISymbol sym) { 106 public boolean canRead(ISymbol sym) {
100 if(sym instanceof SimpleFillSymbol || 107 if(sym instanceof SimpleFillSymbol ||
108 sym instanceof MarkerFillSymbol ||
101 sym instanceof MultiLayerFillSymbol) { 109 sym instanceof MultiLayerFillSymbol) {
102 return true; 110 return true;
103 } 111 }
104 else { 112 else {
105 return false; 113 return false;
106 } 114 }
107 } 115 }
108 116
109 public boolean canRead(IFillSymbol sym) { 117 public boolean canRead(IFillSymbol sym) {
110 if(sym instanceof SimpleFillSymbol || 118 if(sym instanceof SimpleFillSymbol ||
119 sym instanceof MarkerFillSymbol ||
111 sym instanceof MultiLayerFillSymbol) { 120 sym instanceof MultiLayerFillSymbol) {
112 return true; 121 return true;
113 } 122 }
114 else { 123 else {
115 return false; 124 return false;
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)