Revision 573 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/legendmanager/FLegendManagerWindow.java
FLegendManagerWindow.java | ||
---|---|---|
171 | 171 |
{ |
172 | 172 |
Classifiable auxC = (Classifiable) activeLyrs[i]; |
173 | 173 |
Legend theLegend = auxC.getLegend(); |
174 |
if (theLegend instanceof ClassifiableVectorial)
|
|
174 |
if (theLegend instanceof VectorialLegend)
|
|
175 | 175 |
lyr = (FLayer) auxC; |
176 | 176 |
} |
177 | 177 |
} |
... | ... | |
252 | 252 |
* @param evt DOCUMENT ME! |
253 | 253 |
*/ |
254 | 254 |
private void btnApply_actionPerformed(ActionEvent evt) { |
255 |
ClassifiableVectorial lyr; |
|
256 | 255 |
|
257 | 256 |
// TODO: APLICAR LA LEYENDA A LAS CAPAS ACTIVAS |
257 |
ClassifiableVectorial aux = (ClassifiableVectorial) m_Lyr; |
|
258 | 258 |
try { |
259 | 259 |
switch (organizador.getSelectedIndex()) { |
260 | 260 |
case 0: // default symbol |
261 |
m_Renderer = m_defaultLegendPanel.getLegend(); |
|
261 |
m_Renderer = m_defaultLegendPanel.getLegend(); |
|
262 |
|
|
262 | 263 |
break; |
263 | 264 |
case 1: // Unique Values |
264 | 265 |
m_Renderer = m_valuesLegendPanel.getLegend(); |
265 |
ClassifiableVectorial aux = (ClassifiableVectorial) m_Lyr; |
|
266 |
aux.setLegend((VectorialLegend) m_Renderer); |
|
267 | 266 |
break; |
268 | 267 |
case 2:// break values |
269 | 268 |
m_Renderer = m_breaksLegendPanel.getLegend(); |
270 | 269 |
|
271 | 270 |
} |
271 |
aux.setLegend((VectorialLegend) m_Renderer); |
|
272 | 272 |
mapContext.fireLegendEvent(); |
273 | 273 |
mapContext.fireInvalidEvent(); |
274 | 274 |
} catch (DriverLoadException e) { |
Also available in: Unified diff