Revision 2437 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/thememanager/FThemeManagerWindow.java
FThemeManagerWindow.java | ||
---|---|---|
58 | 58 |
import javax.swing.JComboBox; |
59 | 59 |
import javax.swing.JDialog; |
60 | 60 |
import javax.swing.JFileChooser; |
61 |
import javax.swing.JOptionPane; |
|
62 | 61 |
import javax.swing.JPanel; |
63 | 62 |
import javax.swing.JTabbedPane; |
64 | 63 |
import javax.swing.JTextField; |
... | ... | |
70 | 69 |
import com.hardcode.gdbms.engine.data.DataSource; |
71 | 70 |
import com.hardcode.gdbms.engine.instruction.FieldNotFoundException; |
72 | 71 |
import com.iver.andami.PluginServices; |
73 |
import com.iver.andami.messages.Messages; |
|
74 | 72 |
import com.iver.andami.messages.NotificationManager; |
75 | 73 |
import com.iver.andami.ui.mdiManager.View; |
76 | 74 |
import com.iver.andami.ui.mdiManager.ViewInfo; |
... | ... | |
80 | 78 |
import com.iver.cit.gvsig.fmap.layers.FLayers; |
81 | 79 |
import com.iver.cit.gvsig.fmap.layers.XMLException; |
82 | 80 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.AlphanumericData; |
83 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.Classifiable; |
|
84 | 81 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.ClassifiableVectorial; |
85 | 82 |
import com.iver.cit.gvsig.fmap.rendering.ClassifiedLegend; |
86 | 83 |
import com.iver.cit.gvsig.fmap.rendering.Legend; |
... | ... | |
242 | 239 |
} |
243 | 240 |
|
244 | 241 |
private void btnApply_actionPerformed(ActionEvent evt) { |
245 |
ClassifiableVectorial aux = (ClassifiableVectorial) layer; |
|
242 |
// ClassifiableVectorial aux = (ClassifiableVectorial) layer;
|
|
246 | 243 |
switch (fPanelLegendManager.getVisibleCard()) { |
247 | 244 |
case 0: // default symbol |
248 | 245 |
renderer = fPanelLegendManager.getM_defaultLegendPanel().getLegend(); |
... | ... | |
287 | 284 |
{ |
288 | 285 |
//TODO: Aqu? deber?amos comprobar si el tipo de campo |
289 | 286 |
// es el tipo de campo esperado. |
287 |
|
|
290 | 288 |
aux2.setLegend((VectorialLegend) renderer); |
291 | 289 |
} |
292 | 290 |
|
... | ... | |
339 | 337 |
layer.setMaxScale(-1); |
340 | 338 |
} |
341 | 339 |
layer.setName(fPanelScaleManager.getLayerName()); |
342 |
layer.getFMap().invalidate(); |
|
340 |
//layer.getFMap().invalidate(); |
|
341 |
layer.getFMap().callLegendChanged(); |
|
343 | 342 |
} |
344 | 343 |
|
345 | 344 |
/** |
... | ... | |
400 | 399 |
file=new File(file.getPath()+".gvl"); |
401 | 400 |
} |
402 | 401 |
readLegend(file); |
402 |
fPanelLegendManager.setRenderer(renderer); |
|
403 | 403 |
fPanelLegendManager.actualizar(); |
404 | 404 |
} |
405 | 405 |
} else if (e.getActionCommand() == "SAVE_LEGEND") { |
Also available in: Unified diff