Revision 2998 trunk/extensions/extGeoreferencing/src/com/iver/cit/gvsig/gui/Panels/GeoRasterWizard.java
GeoRasterWizard.java | ||
---|---|---|
90 | 90 |
* Clase que implementa el Wizard para la georreferenciaci?n |
91 | 91 |
* @author Nacho Brodin (brodin_ign@gva.es) |
92 | 92 |
*/ |
93 |
public class GeoRasterWizard extends WizardPanel implements InternalFrameListener {
|
|
93 |
public class GeoRasterWizard extends WizardPanel{ |
|
94 | 94 |
private JPanel pGeneral = null; |
95 | 95 |
private JPanel pFileSelection = null; |
96 | 96 |
private JPanel pControls = null; |
... | ... | |
436 | 436 |
lyrGeoRaster.setAssignExtent(ext); |
437 | 437 |
|
438 | 438 |
JInternalFrame panel = new JInternalFrame(); |
439 |
panel.addInternalFrameListener(this);
|
|
439 |
panel.addInternalFrameListener(new com.iver.cit.gvsig.gui.toolListeners.GeoRasterFrameListener());
|
|
440 | 440 |
panel.setClosable(true); |
441 | 441 |
geoDialog = new GeoreferencingDialog(panel); |
442 | 442 |
panel.setSize(400, 340); |
... | ... | |
594 | 594 |
super.setTabName(name); |
595 | 595 |
} |
596 | 596 |
|
597 |
/** |
|
598 |
* Cuando cerramos la ventana de georreferenciaci?n se elimina la barra de herramientas |
|
599 |
* y se destruye la capa de puntos. |
|
600 |
*/ |
|
601 |
public void internalFrameClosing(InternalFrameEvent arg0) { |
|
602 |
//Eliminamos la capa de puntos |
|
603 |
View theView = (View) PluginServices.getMDIManager().getActiveView(); |
|
604 |
FLyrPoints lyrPoints = null; |
|
605 |
for(int i=0;i<theView.getMapControl().getMapContext().getLayers().getLayersCount();i++){ |
|
606 |
FLayer lyr = theView.getMapControl().getMapContext().getLayers().getLayer(i); |
|
607 |
if(lyr instanceof FLyrPoints && lyr.getName().startsWith("*")) |
|
608 |
theView.getMapControl().getMapContext().getLayers().removeLayer(i); |
|
609 |
} |
|
610 |
//GeoreferencingToolsModule.visible = false; |
|
611 |
PluginServices.getMainFrame().enableControls(); |
|
612 |
} |
|
613 |
|
|
614 |
/* (non-Javadoc) |
|
615 |
* @see javax.swing.event.InternalFrameListener#internalFrameActivated(javax.swing.event.InternalFrameEvent) |
|
616 |
*/ |
|
617 |
public void internalFrameActivated(InternalFrameEvent arg0) { |
|
618 |
// TODO Auto-generated method stub |
|
619 |
|
|
620 |
} |
|
621 |
/* (non-Javadoc) |
|
622 |
* @see javax.swing.event.InternalFrameListener#internalFrameClosed(javax.swing.event.InternalFrameEvent) |
|
623 |
*/ |
|
624 |
public void internalFrameClosed(InternalFrameEvent arg0) { |
|
625 |
// TODO Auto-generated method stub |
|
626 |
|
|
627 |
} |
|
628 |
|
|
629 |
/* (non-Javadoc) |
|
630 |
* @see javax.swing.event.InternalFrameListener#internalFrameDeactivated(javax.swing.event.InternalFrameEvent) |
|
631 |
*/ |
|
632 |
public void internalFrameDeactivated(InternalFrameEvent arg0) { |
|
633 |
// TODO Auto-generated method stub |
|
634 |
|
|
635 |
} |
|
636 |
/* (non-Javadoc) |
|
637 |
* @see javax.swing.event.InternalFrameListener#internalFrameDeiconified(javax.swing.event.InternalFrameEvent) |
|
638 |
*/ |
|
639 |
public void internalFrameDeiconified(InternalFrameEvent arg0) { |
|
640 |
// TODO Auto-generated method stub |
|
641 |
|
|
642 |
} |
|
643 |
/* (non-Javadoc) |
|
644 |
* @see javax.swing.event.InternalFrameListener#internalFrameIconified(javax.swing.event.InternalFrameEvent) |
|
645 |
*/ |
|
646 |
public void internalFrameIconified(InternalFrameEvent arg0) { |
|
647 |
// TODO Auto-generated method stub |
|
648 |
|
|
649 |
} |
|
650 |
/* (non-Javadoc) |
|
651 |
* @see javax.swing.event.InternalFrameListener#internalFrameOpened(javax.swing.event.InternalFrameEvent) |
|
652 |
*/ |
|
653 |
public void internalFrameOpened(InternalFrameEvent arg0) { |
|
654 |
// TODO Auto-generated method stub |
|
655 |
|
|
656 |
} |
|
657 | 597 |
} |
658 | 598 |
|
Also available in: Unified diff