Revision 41031
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/layers/vectorial/impl/DefaultGraphicLayer.java | ||
---|---|---|
327 | 327 |
this.legend = (IVectorialUniqueValueLegend)legend; |
328 | 328 |
this.legend.setClassifyingFieldNames(new String[]{FEATURE_ATTR_IDSYMBOL}); |
329 | 329 |
}else{ |
330 |
logger.warn("The legend for the graphics layer must be a instance of IVectorialUniqueValueLegend"); |
|
330 |
if( this.legend != null ) { // Skip the first assignment, is always bad. |
|
331 |
logger.warn("The allocation of legend type '"+legend.getClass().getName()+"' is ignored. Required a legend of type IVectorialUniqueValueLegend."); |
|
332 |
} |
|
331 | 333 |
} |
332 | 334 |
} |
333 | 335 |
|
Also available in: Unified diff