Revision 2167 branches/gvSIG_GisPlanet/applications/appgvSIG/src/com/iver/cit/gvsig/gui/Panels/PropertiesRasterDialog.java

View differences:

PropertiesRasterDialog.java
48 48

  
49 49
import java.awt.Container;
50 50
import java.awt.event.ActionEvent;
51
import java.awt.event.KeyEvent;
52
import java.awt.event.KeyListener;
53 51
import java.awt.geom.Rectangle2D;
54 52
import java.io.File;
55 53
import java.util.ArrayList;
......
65 63
import org.cresques.io.raster.RasterFilterStackManager;
66 64
import org.cresques.px.Extent;
67 65
import org.cresques.ui.raster.BandSetupPanel;
66
import org.cresques.ui.raster.EnhancedPanel;
68 67
import org.cresques.ui.raster.FilterRasterDialogPanel;
68
import org.cresques.ui.raster.RasterTransparencyPanel;
69 69

  
70 70
import com.hardcode.driverManager.Driver;
71 71
import com.hardcode.driverManager.DriverLoadException;
......
268 268
			rasterStatus = (StatusLayerRaster)fLayer.getStatus();
269 269
		initialize();
270 270
		this.setRanges(rangeR, rangeG, rangeB);
271
		setTranslation();
271 272
	}
272 273
	
273 274
	/**
275
	 * Asigna los textos a los paneles
276
	 */
277
	private void setTranslation(){
278
		this.getBandSetup().getFileList().getJButton2().setText(PluginServices.getText(this,"Anadir"));
279
		this.getBandSetup().getFileList().getJButton3().setText(PluginServices.getText(this,"Eliminar"));
280
		
281
		RasterTransparencyPanel tpan = this.getTransparencyPanel();
282
		if(tpan.nBands==1)
283
			tpan.jLabel1.setText(PluginServices.getText(this,"Valor_banda"));
284
		else
285
			tpan.jLabel1.setText(PluginServices.getText(this,"Valor_verde"));
286
		tpan.jLabel.setText(PluginServices.getText(this,"Valor_rojo"));
287
		tpan.jLabel2.setText(PluginServices.getText(this,"Valor_azul"));
288
		tpan.getTransparencyCheck().setText(PluginServices.getText(this,"transparencia"));
289
		tpan.getOpacityCheck().setText(PluginServices.getText(this,"opacidad"));
290
		tpan.jLabel3.setText(PluginServices.getText(this,"usar_rango"));
291
		
292
		EnhancedPanel ep = this.getEnhancedPanel();
293
		ep.jLabel.setText(PluginServices.getText(this,"lineal_directo"));
294
		ep.jLabel1.setText(PluginServices.getText(this,"recorte_colas"));
295
		ep.jLabel2.setText(PluginServices.getText(this,"sin_realce"));
296
		ep.jLabel4.setText(PluginServices.getText(this,"recorte"));
297
		ep.jLabel5.setText(PluginServices.getText(this,"eliminar_extremos"));
298
		
299
		
300
		
301
		
302
	}
303
	
304
	/**
274 305
	 * Asigna un FLayerRaster
275 306
	 * @param layer	capa a asignar
276 307
	 */
......
293 324
	private void loadInfoData(){
294 325
		if(fLayer.getSource()!=null){
295 326
			props = new Object[nprops][2];
296
			props[0][0] = new String("Fichero: ");
327
			props[0][0] = new String(PluginServices.getText(this,"Fichero_"));
297 328
			props[0][1] = filename;
298
			props[1][0] = new String("N?mero de Bandas: ");
329
			props[1][0] = new String(PluginServices.getText(this,"num_bandas"));
299 330
			props[1][1] = new String(String.valueOf(fLayer.getSource().getNumBands()));
300
			props[2][0] = new String("Ancho X Alto: ");
331
			props[2][0] = new String(PluginServices.getText(this,"ancho_alto"));
301 332
			props[2][1] = this.width+" X "+this.height;
302
			props[3][0] = new String("Formato: ");
333
			props[3][0] = new String(PluginServices.getText(this,"formato"));
303 334
			props[3][1] = filename.substring(
304 335
						filename.lastIndexOf('.')+1, 
305 336
						filename.length());
306
			props[4][0] = new String("Tipo de dato: ");
337
			props[4][0] = new String(PluginServices.getText(this,"tipo_dato"));
307 338
			String type = null;
308 339
			switch(fLayer.getSource().getDataType()){
309 340
				case 0: type = new String("BYTE");break;
......
315 346
				default: type = new String("UNDEFINED");break;
316 347
			}
317 348
		    props[4][1] = type;
318
			props[5][0] = new String("Coor. Geograficas");
319
			props[6][0] = new String(" - X m?nima:");
349
			props[5][0] = new String(PluginServices.getText(this,"coor_geograficas"));
350
			props[6][0] = new String(PluginServices.getText(this,"xmin"));
320 351
			props[6][1] = String.valueOf(fLayer.getSource().getFullExtent().getMinX());
321
			props[7][0] = new String(" - Y m?nima:");
352
			props[7][0] = new String(PluginServices.getText(this,"ymin"));
322 353
			props[7][1] = String.valueOf(fLayer.getSource().getFullExtent().getMinY());
323
			props[8][0] = new String(" - X m?xima:");
354
			props[8][0] = new String(PluginServices.getText(this,"xmax"));
324 355
			props[8][1] = String.valueOf(fLayer.getSource().getFullExtent().getMaxX());
325
			props[9][0] = new String(" - Y m?xima:");
356
			props[9][0] = new String(PluginServices.getText(this,"ymax"));
326 357
			props[9][1] = String.valueOf(fLayer.getSource().getFullExtent().getMaxY());
327 358
			
328 359
		}else{
......
534 565
			if(	this.getEnhancedPanel().getLinealDirectoRadioButton().isSelected()){
535 566
				if(	this.getEnhancedPanel().getRemoveCheck().isSelected() &&
536 567
					!this.getEnhancedPanel().getTailCheck().isSelected())
537
					stackManager.addEnhancedFilter(true);
568
					stackManager.addEnhancedFilter(true, fLayer.getSource().getFiles()[0].getName());
538 569
				else
539
					stackManager.addEnhancedFilter(false);
570
					stackManager.addEnhancedFilter(false, fLayer.getSource().getFiles()[0].getName());
540 571
				
541 572
				//Recorte de colas seleccionado
542 573
				if(this.getEnhancedPanel().getTailCheck().isSelected()){

Also available in: Unified diff