Revision 11615 branches/v10/extensions/extAnnotations/src/com/iver/cit/gvsig/fmap/rendering/Annotation_Legend.java
Annotation_Legend.java | ||
---|---|---|
56 | 56 |
|
57 | 57 |
/** |
58 | 58 |
* Leyenda vectorial para labels. |
59 |
*
|
|
59 |
* |
|
60 | 60 |
* @author Vicente Caballero Navarro |
61 | 61 |
*/ |
62 | 62 |
public class Annotation_Legend implements VectorialLegend { |
... | ... | |
70 | 70 |
|
71 | 71 |
private String labelFieldRotation; |
72 | 72 |
|
73 |
private static FSymbol defaultSymbol = new FSymbol(
|
|
73 |
private FSymbol defaultSymbol = new FSymbol( |
|
74 | 74 |
FConstant.SYMBOL_TYPE_TEXT); |
75 | 75 |
|
76 | 76 |
private int shapeType; |
... | ... | |
127 | 127 |
|
128 | 128 |
/* |
129 | 129 |
* (non-Javadoc) |
130 |
*
|
|
130 |
* |
|
131 | 131 |
* @see com.iver.cit.gvsig.fmap.rendering.VectorialLegend#getLabelField() |
132 | 132 |
*/ |
133 | 133 |
public String getLabelField() { |
... | ... | |
159 | 159 |
* Devuelve un s?mbolo a partir de una IFeature. OJO!! Cuando usamos un |
160 | 160 |
* feature iterator de base de datos el ?nico campo que vendr? rellenado es |
161 | 161 |
* el de fieldID. Los dem?s vendr?n a nulos para ahorra tiempo de creaci?n. |
162 |
*
|
|
162 |
* |
|
163 | 163 |
* @param feat |
164 | 164 |
* IFeature |
165 |
*
|
|
165 |
* |
|
166 | 166 |
* @return S?mbolo. |
167 | 167 |
*/ |
168 | 168 |
public ISymbol getSymbolByFeature(IFeature feat) { |
... | ... | |
202 | 202 |
|
203 | 203 |
/** |
204 | 204 |
* Inserta el XMLEntity. |
205 |
*
|
|
205 |
* |
|
206 | 206 |
* @param xml |
207 | 207 |
* XMLEntity. |
208 | 208 |
*/ |
... | ... | |
212 | 212 |
|
213 | 213 |
/** |
214 | 214 |
* Inserta el XMLEntity. |
215 |
*
|
|
215 |
* |
|
216 | 216 |
* @param xml |
217 | 217 |
* XMLEntity. |
218 | 218 |
*/ |
... | ... | |
243 | 243 |
|
244 | 244 |
/* |
245 | 245 |
* (non-Javadoc) |
246 |
*
|
|
246 |
* |
|
247 | 247 |
* @see com.iver.cit.gvsig.fmap.rendering.VectorialLegend#setDataSource(com.hardcode.gdbms.engine.data.DataSource) |
248 | 248 |
*/ |
249 | 249 |
public void setDataSource(DataSource ds) throws FieldNotFoundException, |
... | ... | |
260 | 260 |
|
261 | 261 |
/* |
262 | 262 |
* (non-Javadoc) |
263 |
*
|
|
263 |
* |
|
264 | 264 |
* @see com.iver.cit.gvsig.fmap.rendering.UniqueValueLegend#getSymbolByValue(com.hardcode.gdbms.engine.values.Value) |
265 | 265 |
*/ |
266 | 266 |
public ISymbol getSymbolByValue(Value key) { |
... | ... | |
269 | 269 |
|
270 | 270 |
/* |
271 | 271 |
* (non-Javadoc) |
272 |
*
|
|
272 |
* |
|
273 | 273 |
* @see com.iver.cit.gvsig.fmap.rendering.VectorialLegend#getShapeType() |
274 | 274 |
*/ |
275 | 275 |
public int getShapeType() { |
... | ... | |
278 | 278 |
|
279 | 279 |
/* |
280 | 280 |
* (non-Javadoc) |
281 |
*
|
|
281 |
* |
|
282 | 282 |
* @see com.iver.cit.gvsig.fmap.rendering.VectorialLegend#getLabelHeightField() |
283 | 283 |
*/ |
284 | 284 |
public String getLabelHeightField() { |
... | ... | |
287 | 287 |
|
288 | 288 |
/** |
289 | 289 |
* Inserta el alto de campo. |
290 |
*
|
|
290 |
* |
|
291 | 291 |
* @param str |
292 | 292 |
* alto. |
293 | 293 |
*/ |
... | ... | |
297 | 297 |
|
298 | 298 |
/* |
299 | 299 |
* (non-Javadoc) |
300 |
*
|
|
300 |
* |
|
301 | 301 |
* @see com.iver.cit.gvsig.fmap.rendering.VectorialLegend#getLabelRotationField() |
302 | 302 |
*/ |
303 | 303 |
public String getLabelRotationField() { |
... | ... | |
306 | 306 |
|
307 | 307 |
/** |
308 | 308 |
* Inserta rotaci?n. |
309 |
*
|
|
309 |
* |
|
310 | 310 |
* @param str |
311 | 311 |
* Rotaci?n. |
312 | 312 |
*/ |
... | ... | |
316 | 316 |
|
317 | 317 |
/** |
318 | 318 |
* Introduce si se tiene que representar el resto de valores o no. |
319 |
*
|
|
319 |
* |
|
320 | 320 |
* @param b |
321 | 321 |
* True si se utiliza el resto de valores. |
322 | 322 |
*/ |
... | ... | |
326 | 326 |
|
327 | 327 |
/** |
328 | 328 |
* Devuelve si se utiliza o no el resto de valores para representarse. |
329 |
*
|
|
329 |
* |
|
330 | 330 |
* @return True si se utiliza el resto de valores. |
331 | 331 |
*/ |
332 | 332 |
public boolean isUseDefaultSymbol() { |
... | ... | |
336 | 336 |
/** |
337 | 337 |
* Elimina el s?mbolo que tiene como clave el valor que se pasa como |
338 | 338 |
* par?metro. |
339 |
*
|
|
339 |
* |
|
340 | 340 |
* @param key |
341 | 341 |
* clave. |
342 | 342 |
*/ |
... | ... | |
345 | 345 |
|
346 | 346 |
/* |
347 | 347 |
* (non-Javadoc) |
348 |
*
|
|
348 |
* |
|
349 | 349 |
* @see com.iver.cit.gvsig.fmap.rendering.VectorialLegend#getUsedFields() |
350 | 350 |
*/ |
351 | 351 |
public String[] getUsedFields() { |
Also available in: Unified diff