Revision 13881 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/LegendManager.java

View differences:

LegendManager.java
74 74
import com.iver.cit.gvsig.fmap.layers.layerOperations.AlphanumericData;
75 75
import com.iver.cit.gvsig.fmap.layers.layerOperations.Classifiable;
76 76
import com.iver.cit.gvsig.fmap.layers.layerOperations.ClassifiableVectorial;
77
import com.iver.cit.gvsig.fmap.rendering.IClassifiedVectorialLegend;
77
import com.iver.cit.gvsig.fmap.rendering.IClassifiedVectorLegend;
78 78
import com.iver.cit.gvsig.fmap.rendering.ILegend;
79
import com.iver.cit.gvsig.fmap.rendering.IVectorialLegend;
79
import com.iver.cit.gvsig.fmap.rendering.IVectorLegend;
80 80
import com.iver.cit.gvsig.fmap.rendering.SingleSymbolLegend;
81 81
import com.iver.cit.gvsig.gui.styling.SymbolPreviewer;
82 82
/**
......
573 573
			if (laux instanceof ClassifiableVectorial) {
574 574
				ClassifiableVectorial aux2 = (ClassifiableVectorial) laux;
575 575
				try {
576
					if (legend instanceof IClassifiedVectorialLegend) {
576
					if (legend instanceof IClassifiedVectorLegend) {
577 577
						// Es una leyenda que necesita un recordset con un
578 578
						// nombre de campo. Comprobamos que ese recordset
579 579
						// tiene ese nombre de campo y es del tipo esperado
580
						IClassifiedVectorialLegend cl = (IClassifiedVectorialLegend) legend;
580
						IClassifiedVectorLegend cl = (IClassifiedVectorLegend) legend;
581 581

  
582 582
						if (aux2 instanceof AlphanumericData) {
583 583
//							DataSource rs;
......
595 595
								 ((VectorialUniqueValueLegend)renderer).setLabelRotationField(null);
596 596
								 }
597 597
								 */
598
								aux2.setLegend((IVectorialLegend) legend);
598
								aux2.setLegend((IVectorLegend) legend);
599 599
//							}
600 600
						}
601 601
					}
602 602
					else if (legend instanceof SingleSymbolLegend)
603
						aux2.setLegend((IVectorialLegend) legend);
603
						aux2.setLegend((IVectorLegend) legend);
604 604
//				} catch (ReadDriverException e) {
605 605
//					NotificationManager.addError(PluginServices.getText(this, "driver_exception")+":"
606 606
//							+e.getMessage(), e);

Also available in: Unified diff