Revision 15477 import/ext3D/branches/ext3D_v1.1/lib3DMap/src/com/iver/ai2/gvsig3d/map3d/MapContext3D.java
MapContext3D.java | ||
---|---|---|
36 | 36 |
import com.iver.cit.gvsig.fmap.layers.XMLException; |
37 | 37 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.Classifiable; |
38 | 38 |
import com.iver.cit.gvsig.fmap.rendering.ILegend; |
39 |
import com.iver.cit.gvsig.fmap.rendering.IVectorialLegend;
|
|
39 |
import com.iver.cit.gvsig.fmap.rendering.IVectorLegend; |
|
40 | 40 |
import com.iver.cit.gvsig.fmap.rendering.LegendChangedEvent; |
41 | 41 |
import com.iver.utiles.XMLEntity; |
42 | 42 |
|
... | ... | |
373 | 373 |
if (!m_bListenToLegend) |
374 | 374 |
return; |
375 | 375 |
|
376 |
IVectorialLegend newLegend = e.getNewLegend();
|
|
376 |
IVectorLegend newLegend = (IVectorLegend) e.getNewLegend();
|
|
377 | 377 |
// find layer whose legend changed |
378 | 378 |
FLayer found = null; |
379 | 379 |
SingleLayerIterator lyrIterator = new SingleLayerIterator(layers); |
... | ... | |
382 | 382 |
if (lyr instanceof Classifiable) { |
383 | 383 |
Classifiable classLyr = (Classifiable) lyr; |
384 | 384 |
ILegend legend = classLyr.getLegend(); |
385 |
if (legend instanceof IVectorialLegend) {
|
|
386 |
if ((IVectorialLegend) legend == newLegend) {
|
|
385 |
if (legend instanceof IVectorLegend) { |
|
386 |
if ((IVectorLegend) legend == newLegend) { |
|
387 | 387 |
found = lyr; |
388 | 388 |
break; |
389 | 389 |
} |
Also available in: Unified diff