Revision 3102 trunk/extensions/extGeoreferencing/src/com/iver/cit/gvsig/gui/Panels/SelectPointsPanel.java
SelectPointsPanel.java | ||
---|---|---|
271 | 271 |
* @param changeSelection Cambia la posici?n seleccionada del combo si es true |
272 | 272 |
* @param pos Posici?n a la que cambia el combo si el parametro chageSelection es true |
273 | 273 |
*/ |
274 |
private void changePoint(boolean changeSelection, int pos){
|
|
274 |
public void changePoint(boolean changeSelection, int pos){
|
|
275 | 275 |
disableEvent = true; |
276 | 276 |
try{ |
277 | 277 |
loadLyrPoint(); |
... | ... | |
298 | 298 |
public void clearList(){ |
299 | 299 |
try{ |
300 | 300 |
loadLyrPoint(); |
301 |
lyrPoints.clearVisualList(this, |
|
302 |
grd.getConectorPanel().getDataPointsTabPanel().getTablePointsPanel(), |
|
303 |
grd.getConectorPanel().getAdjustGeorefPanel()); |
|
301 |
if(lyrPoints != null) |
|
302 |
lyrPoints.clearVisualList(this, |
|
303 |
grd.getConectorPanel().getDataPointsTabPanel().getTablePointsPanel(), |
|
304 |
grd.getConectorPanel().getAdjustGeorefPanel()); |
|
304 | 305 |
}catch(InstantiationException e){ |
305 | 306 |
JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(), |
306 | 307 |
PluginServices.getText(this, "error_capa_puntos")); |
... | ... | |
321 | 322 |
if( lyr instanceof FLyrGeoRaster && |
322 | 323 |
lyr.getName().startsWith("*") && |
323 | 324 |
lyr.isActive()){ |
324 |
lyrPoints = ((FLyrGeoRaster)lyr).getFLyrPoints(); |
|
325 |
try{ |
|
326 |
lyrPoints = ((FLyrGeoRaster)lyr).getFLyrPoints(); |
|
327 |
}catch(ClassCastException exc){ |
|
328 |
throw new InstantiationException("No se ha podido obtener una capa de puntos"); |
|
329 |
} |
|
325 | 330 |
|
326 | 331 |
} |
327 | 332 |
} |
328 | 333 |
} |
329 | 334 |
|
330 |
if(lyrPoints == null) |
|
331 |
throw new InstantiationException("No se ha podido obtener una capa de puntos"); |
|
332 |
|
|
333 | 335 |
} |
334 | 336 |
|
335 | 337 |
|
... | ... | |
591 | 593 |
}else{ |
592 | 594 |
grd.setEnlarge(true); |
593 | 595 |
bExtended.setIcon(new ImageIcon(getClass().getResource("/com/iver/cit/gvsig/gui/Panels/images/up.png"))); |
594 |
lyrPoints.loadVisualPoint(tableControlerPanel.getSelectedIndex(), this.grd); |
|
596 |
if(lyrPoints != null) |
|
597 |
lyrPoints.loadVisualPoint(tableControlerPanel.getSelectedIndex(), this.grd); |
|
595 | 598 |
} |
596 | 599 |
} |
597 | 600 |
|
Also available in: Unified diff