Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/LineSymbolReader.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 | fb93f20478cc |
comparison
equal
deleted
inserted
replaced
71:260748e3d08f | 72:2cbe423b1fda |
---|---|
114 return parent; | 114 return parent; |
115 } | 115 } |
116 | 116 |
117 public void setSymbol(ISymbol sym) { | 117 public void setSymbol(ISymbol sym) { |
118 this.symbol = sym; | 118 this.symbol = sym; |
119 this.lineSymbol = null; | |
120 } | |
121 | |
122 public void setSymbol(ILineSymbol sym) { | |
123 this.lineSymbol = sym; | |
124 this.symbol = null; | |
119 } | 125 } |
120 | 126 |
121 public boolean canRead(ISymbol sym) { | 127 public boolean canRead(ISymbol sym) { |
122 if(sym instanceof SimpleLineSymbol || | 128 if(sym instanceof SimpleLineSymbol || |
123 sym instanceof MarkerLineSymbol || | 129 sym instanceof MarkerLineSymbol || |
129 } | 135 } |
130 else { | 136 else { |
131 return false; | 137 return false; |
132 } | 138 } |
133 } | 139 } |
140 | |
141 public boolean canRead(ILineSymbol sym) { | |
142 if(sym instanceof SimpleLineSymbol || | |
143 sym instanceof MarkerLineSymbol || | |
144 sym instanceof PictureLineSymbol || | |
145 sym instanceof MultiLayerLineSymbol || | |
146 sym instanceof CartographicLineSymbol || | |
147 sym instanceof HashLineSymbol) { | |
148 return true; | |
149 } | |
150 else { | |
151 return false; | |
152 } | |
153 } | |
134 } | 154 } |
135 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 155 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |