Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/FillSymbolReader.java @ 76:3087c89a5bb8
Added line fill symbol reader.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Fri, 27 May 2011 12:32:08 +0200 |
parents | 9ea64427ac7e |
children | fb93f20478cc |
comparison
equal
deleted
inserted
replaced
75:9ea64427ac7e | 76:3087c89a5bb8 |
---|---|
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 import com.esri.arcgis.display.MarkerFillSymbol; |
14 import com.esri.arcgis.display.LineFillSymbol; | |
14 | 15 |
15 /** | 16 /** |
16 * Wrapper for fill symbol reader. | 17 * Wrapper for fill symbol reader. |
17 * | 18 * |
18 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> | 19 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> |
57 sreader = new MultiLayerFillSymbolReader(symbol); | 58 sreader = new MultiLayerFillSymbolReader(symbol); |
58 } | 59 } |
59 else if(symbol instanceof MarkerFillSymbol) { | 60 else if(symbol instanceof MarkerFillSymbol) { |
60 sreader = new MarkerFillSymbolReader(symbol); | 61 sreader = new MarkerFillSymbolReader(symbol); |
61 } | 62 } |
63 else if(symbol instanceof LineFillSymbol) { | |
64 sreader = new LineFillSymbolReader(symbol); | |
65 } | |
62 else { | 66 else { |
63 logger.debug("The reader for type " + symbol.getClass().toString() + | 67 logger.debug("The reader for type " + symbol.getClass().toString() + |
64 " is not implemented!"); | 68 " is not implemented!"); |
65 return parent; | 69 return parent; |
66 } | 70 } |
72 else if(fillSymbol instanceof MultiLayerFillSymbol) { | 76 else if(fillSymbol instanceof MultiLayerFillSymbol) { |
73 sreader = new MultiLayerFillSymbolReader(fillSymbol); | 77 sreader = new MultiLayerFillSymbolReader(fillSymbol); |
74 } | 78 } |
75 else if(fillSymbol instanceof MarkerFillSymbol) { | 79 else if(fillSymbol instanceof MarkerFillSymbol) { |
76 sreader = new MarkerFillSymbolReader(fillSymbol); | 80 sreader = new MarkerFillSymbolReader(fillSymbol); |
81 } | |
82 else if(fillSymbol instanceof LineFillSymbol) { | |
83 sreader = new LineFillSymbolReader(fillSymbol); | |
77 } | 84 } |
78 else { | 85 else { |
79 logger.debug("The reader for type " + | 86 logger.debug("The reader for type " + |
80 fillSymbol.getClass().toString() + | 87 fillSymbol.getClass().toString() + |
81 " is not implemented!"); | 88 " is not implemented!"); |
104 } | 111 } |
105 | 112 |
106 public boolean canRead(ISymbol sym) { | 113 public boolean canRead(ISymbol sym) { |
107 if(sym instanceof SimpleFillSymbol || | 114 if(sym instanceof SimpleFillSymbol || |
108 sym instanceof MarkerFillSymbol || | 115 sym instanceof MarkerFillSymbol || |
109 sym instanceof MultiLayerFillSymbol) { | 116 sym instanceof MultiLayerFillSymbol || |
117 sym instanceof LineFillSymbol) { | |
110 return true; | 118 return true; |
111 } | 119 } |
112 else { | 120 else { |
113 return false; | 121 return false; |
114 } | 122 } |
115 } | 123 } |
116 | 124 |
117 public boolean canRead(IFillSymbol sym) { | 125 public boolean canRead(IFillSymbol sym) { |
118 if(sym instanceof SimpleFillSymbol || | 126 if(sym instanceof SimpleFillSymbol || |
119 sym instanceof MarkerFillSymbol || | 127 sym instanceof MarkerFillSymbol || |
120 sym instanceof MultiLayerFillSymbol) { | 128 sym instanceof MultiLayerFillSymbol || |
129 sym instanceof LineFillSymbol) { | |
121 return true; | 130 return true; |
122 } | 131 } |
123 else { | 132 else { |
124 return false; | 133 return false; |
125 } | 134 } |