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

View differences:

PropertiesRasterDialog.java
57 57
import javax.swing.JOptionPane;
58 58
import javax.swing.JPanel;
59 59
import javax.swing.filechooser.FileFilter;
60
import javax.swing.table.JTableHeader;
60 61

  
61 62
import org.cresques.cts.IProjection;
62 63
import org.cresques.io.GeoRasterFile;
......
274 275
	 * Asigna los textos a los paneles
275 276
	 */
276 277
	private void setTranslation(){
278
		
277 279
		this.getBandSetup().getFileList().getJButton2().setText(PluginServices.getText(this,"Anadir"));
278 280
		this.getBandSetup().getFileList().getJButton3().setText(PluginServices.getText(this,"Eliminar"));
279 281
			
......
332 334
	private void loadInfoData(){
333 335
		if(fLayer.getSource()!=null){
334 336
			props = new Object[nprops][2];
335
			props[0][0] = new String(PluginServices.getText(this,"Fichero_"));
337
			props[0][0] = new String(PluginServices.getText(this,"Fichero")+":");
336 338
			props[0][1] = filename;
337
			props[1][0] = new String(PluginServices.getText(this,"num_bandas"));
339
			props[1][0] = new String(PluginServices.getText(this,"num_bandas")+":");
338 340
			props[1][1] = new String(String.valueOf(fLayer.getSource().getNumBands()));
339
			props[2][0] = new String(PluginServices.getText(this,"ancho_alto"));
341
			props[2][0] = new String(PluginServices.getText(this,"ancho_alto")+":");
340 342
			props[2][1] = this.width+" X "+this.height;
341
			props[3][0] = new String(PluginServices.getText(this,"formato"));
343
			props[3][0] = new String(PluginServices.getText(this,"formato")+":");
342 344
			props[3][1] = filename.substring(
343 345
						filename.lastIndexOf('.')+1, 
344 346
						filename.length());
345
			props[4][0] = new String(PluginServices.getText(this,"tipo_dato"));
347
			props[4][0] = new String(PluginServices.getText(this,"tipo_dato")+":");
346 348
			String type = null;
347 349
			switch(fLayer.getSource().getDataType()){
348 350
				case 0: type = new String("BYTE");break;
......
355 357
			}
356 358
		    props[4][1] = type;
357 359
			props[5][0] = new String(PluginServices.getText(this,"coor_geograficas"));
358
			props[6][0] = new String(PluginServices.getText(this,"xmin"));
360
			props[6][0] = new String(PluginServices.getText(this,"xmin")+":");
359 361
			props[6][1] = String.valueOf(fLayer.getSource().getFullExtent().getMinX());
360
			props[7][0] = new String(PluginServices.getText(this,"ymin"));
362
			props[7][0] = new String(PluginServices.getText(this,"ymin")+":");
361 363
			props[7][1] = String.valueOf(fLayer.getSource().getFullExtent().getMinY());
362
			props[8][0] = new String(PluginServices.getText(this,"xmax"));
364
			props[8][0] = new String(PluginServices.getText(this,"xmax")+":");
363 365
			props[8][1] = String.valueOf(fLayer.getSource().getFullExtent().getMaxX());
364
			props[9][0] = new String(PluginServices.getText(this,"ymax"));
366
			props[9][0] = new String(PluginServices.getText(this,"ymax")+":");
365 367
			props[9][1] = String.valueOf(fLayer.getSource().getFullExtent().getMaxY());
366 368
			
367 369
		}else{
......
372 374
		
373 375
	}
374 376
	
377
	/**
378
	 * A?ade bandas al contador de bandas del FilterRasterDialogPanel
379
	 * @param numBands N?mero de bandas a a?adir
380
	 */
375 381
	public void addNumBands(int numBands){
376 382
		nbands += numBands;
377 383
	}
......
399 405
   		
400 406
   		this.loadInfoData();
401 407
		super.init(props);
408
		
409
		this.getInfoPanel().columnNames[0] = PluginServices.getText(this,"propiedad");
410
		this.getInfoPanel().columnNames[1] = PluginServices.getText(this,"Valor");
411
		this.getInfoPanel().resetTable();
412
		this.getInfoPanel().initialize();
413
		
402 414
		//this.add(getContentPane());
403 415
	
404 416
		this.setSize(this.sizeX, this.sizeY);

Also available in: Unified diff