Revision 14092 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/cutting/ui/listener/CuttingPanelListener.java
CuttingPanelListener.java | ||
---|---|---|
44 | 44 |
import org.gvsig.gui.beans.table.models.CheckBoxModel; |
45 | 45 |
import org.gvsig.raster.datastruct.Extent; |
46 | 46 |
import org.gvsig.raster.util.RasterUtilities; |
47 |
import org.gvsig.rastertools.IProcessActions; |
|
47 | 48 |
import org.gvsig.rastertools.cutting.CuttingProcess; |
48 | 49 |
import org.gvsig.rastertools.cutting.WriterBufferServer; |
49 | 50 |
import org.gvsig.rastertools.cutting.panels.CuttingCoordinatesPanel; |
... | ... | |
71 | 72 |
public class CuttingPanelListener implements ActionListener, RectangleListener, ButtonsPanelListener, CoordinatesListener, DataInputContainerListener, IProcessActions { |
72 | 73 |
private Dimension dim = new Dimension(); |
73 | 74 |
private AffineTransform at = null; |
74 |
private CuttingPanel cuttingPanel = null;
|
|
75 |
private CuttingPanel cuttingPanel = null;
|
|
75 | 76 |
private int widthPx = 0; |
76 | 77 |
private int heightPx = 0; |
77 | 78 |
|
... | ... | |
481 | 482 |
} |
482 | 483 |
|
483 | 484 |
private CuttingCoordinatesPanel getCoordinatesPanel() { |
484 |
return getCuttingPanel().getCoordinatesPanel(); |
|
485 |
} |
|
486 |
|
|
487 |
private CuttingResolutionPanel getResolutionPanel() { |
|
488 |
return getCuttingPanel().getResolutionPanel(); |
|
489 |
} |
|
490 |
|
|
491 |
private CuttingOptionsPanel getOptionsPanel() { |
|
492 |
return getCuttingPanel().getOptionsPanel(); |
|
493 |
} |
|
494 |
|
|
495 |
private CuttingSelectionPanel getSelectionPanel() { |
|
496 |
return getCuttingPanel().getSelectionPanel(); |
|
497 |
} |
|
485 |
return getCuttingPanel().getCoordinatesPanel(); |
|
486 |
} |
|
498 | 487 |
|
488 |
private CuttingResolutionPanel getResolutionPanel() { |
|
489 |
return getCuttingPanel().getResolutionPanel(); |
|
490 |
} |
|
491 |
|
|
492 |
private CuttingOptionsPanel getOptionsPanel() { |
|
493 |
return getCuttingPanel().getOptionsPanel(); |
|
494 |
} |
|
495 |
|
|
496 |
private CuttingSelectionPanel getSelectionPanel() { |
|
497 |
return getCuttingPanel().getSelectionPanel(); |
|
498 |
} |
|
499 |
|
|
499 | 500 |
/** |
500 | 501 |
* Acciones realizadas cuando se acepta en el dialogo. Se obtendr?n los datos |
501 | 502 |
* de recorte desde el dialogo, crearemos el objeto CuttingProcess que |
... | ... | |
737 | 738 |
* @see org.gvsig.rastertools.IProcessActions#end() |
738 | 739 |
*/ |
739 | 740 |
public void end(Object params) { |
740 |
if(getCuttingPanel() != null)
|
|
741 |
getCuttingPanel().setNewLayerText();
|
|
741 |
if(getOptionsPanel() != null)
|
|
742 |
getOptionsPanel().setNewLayerText();
|
|
742 | 743 |
} |
743 | 744 |
|
744 | 745 |
/* |
Also available in: Unified diff