Revision 3578 trunk/libraries/libCq CMS for java.old/src/org/cresques/ui/raster/FilterRasterDialogPanel.java

View differences:

FilterRasterDialogPanel.java
23 23
 */
24 24
package org.cresques.ui.raster;
25 25

  
26
import org.cresques.ui.DefaultTabPanel;
27

  
28 26
import java.awt.event.ActionEvent;
29 27
import java.awt.event.ActionListener;
30 28
import java.awt.event.FocusEvent;
......
33 31
import java.awt.event.KeyListener;
34 32
import java.awt.event.MouseEvent;
35 33
import java.awt.event.MouseListener;
36

  
37 34
import java.io.IOException;
38 35

  
39 36
import javax.swing.event.ChangeEvent;
40 37
import javax.swing.event.ChangeListener;
41 38

  
39
import org.cresques.io.GeoRasterFile;
40
import org.cresques.ui.DefaultTabPanel;
42 41

  
42

  
43 43
/**
44 44
 * Panel que contiene todos los paneles de los tabs del cuadro de dialogo
45 45
 * de bandas y transparencias
......
73 73
    protected EnhancedPanel pEnhan = null;
74 74
    
75 75
    /**
76
     * Variable que contiene el panel de Sharpening. 
77
     */
78
    protected SharpeningPanel pSharp = null;
79
    
80
    /**
76 81
     * Variable que contiene el panel de informaci?n de raster. 
77 82
     */
78 83
    protected InfoPanel pInfo = null;
......
91 96
    protected int nbands = 0;
92 97

  
93 98
    /**
99
     * Lista de georrasterfiles correspondiente a los ficheros de bandas
100
     */
101
    protected GeoRasterFile[] grf = null;
102
	
103
    /**
94 104
     * Constructor. Inicializa los paneles y propiedades
95 105
     * @param props        Propiedades
96 106
     */
......
130 140
        pSetup = new BandSetupPanel();
131 141
        pEnhan = new EnhancedPanel(this);
132 142
        pInfo = new InfoPanel(this);
143
        pSharp = new SharpeningPanel();
133 144
        this.addTab(pInfo.nom, pInfo);
134 145
        this.addTab(pSetup.nom, pSetup);
135 146
        this.addTab(pTrans.nom, pTrans);
136 147
        this.addTab(pEnhan.nom, pEnhan);
148
        this.addTab(pSharp.nom, pSharp);
137 149

  
138 150
        pTrans.getOpacityCheck().addActionListener(this);
139 151
        pTrans.getTransparencyCheck().addActionListener(this);
......
188 200
    }
189 201

  
190 202
    /**
203
     * Obtiene el panel que corresponde a la selecci?n de sharpening
204
     * @return Panel de sharpening
205
     */
206
    public SharpeningPanel getSharpeningPanel() {
207
        return this.pSharp;
208
    }
209
    
210
    /**
191 211
     * Obtiene el panel que corresponde al filtro de realce
192 212
     * @return Panel del filtro de realce
193 213
     */
......
500 520
    }
501 521

  
502 522
    /**
523
     * A?ade las bandas de los georrasterfile a los paneles 
524
     * que lo necesitan
525
     * @param files
526
     */
527
    public void addFiles(GeoRasterFile[] files){
528
    	if(pSharp != null)
529
    		pSharp.addFiles(files);
530
        if(pSetup != null)
531
        	pSetup.addFiles(files);
532
    }
533
    
534
    /**
535
     * Elimina las bandas de los georrasterfile a los paneles
536
     * @param file Banda a eliminar
537
     */
538
    public void removeFile(String file) {
539
    	if(pSharp != null)
540
    		pSharp.removeFile(file);
541
        if(pSetup != null)
542
        	pSetup.removeFile(file);
543
    }
544
    
545
    /**
503 546
     * Controla que si el formato introducido en el textfield
504 547
     * de opacidad es numerico se actualiza la posici?n del
505 548
     * slider.

Also available in: Unified diff