Revision 2185

View differences:

branches/CqCMSDvp/libraries/libCq CMS for java.old/src/org/cresques/io/EcwFile.java
706 706
			boolean order = true;
707 707
			
708 708
			if(img==null){ //Caso en el que se crea un Image
709
				System.out.println("SE CREA UN NUEVO IMAGE");
710 709
				Image ecwImage = null;
711 710
				for (int nChunk=0; nChunk<frames.length; nChunk++) {
712 711
					ChunkFrame f = frames[nChunk];
......
734 733
				System.out.println("Leido al "+lastRefreshPercent+" %.");
735 734
				return ecwImage;
736 735
			}else{	//Caso en el que se actualiza una banda del Image
737
				System.out.println("SE ACTUALIZA UNA BANDA DEL IMAGE");
738 736
				for (int nChunk=0; nChunk<frames.length; nChunk++) {
739 737
					ChunkFrame f = frames[nChunk];
740 738
					if(bandCount!=3)
branches/CqCMSDvp/libraries/libCq CMS for java.old/src/org/cresques/ui/raster/RasterTransparencyPanel.java
350 350
	public void setActiveTransparencyControl(boolean active){
351 351
		this.getTransparencyCheck().setSelected(active);
352 352
		this.getTRojo().setEnabled(active);
353
		this.getTVerde().setEnabled(active);
354
		this.getTAzul().setEnabled(active);
353
		if((active && parent.nbands>=2) || !active)
354
			this.getTVerde().setEnabled(active);
355
		else
356
			this.getTVerde().setEnabled(false);
357
		
358
		if((active && parent.nbands>=3) || !active)
359
			this.getTAzul().setEnabled(active);
360
		else
361
			this.getTAzul().setEnabled(false);
355 362
	}
356 363
	/**
357 364
	 * Asigna el valor de opacidad a los controles de la ventana
branches/CqCMSDvp/libraries/libCq CMS for java.old/src/org/cresques/ui/raster/InfoPanel.java
35 35
	 * 
36 36
	 * @return void
37 37
	 */
38
	private void initialize() {
38
	public void initialize() {
39 39
        this.setLayout(new BorderLayout());
40 40
        this.setSize(350, 210);
41 41
        this.add(getJPanel(), java.awt.BorderLayout.CENTER);       
......
43 43
	}
44 44
	
45 45
	/**
46
	 * Resetea los controles por defecto
47
	 */
48
	public void resetTable(){
49
		this.jTable = null;
50
		this.jPanel = null;
51
		this.jScrollPane = null;
52
	}
53
	/**
46 54
	 * Inicializa controles a sus valores por defecto
47 55
	 */
48 56
	public void initControls(){
branches/gvSIG_GisPlanet/applications/appgvSIG/src/com/iver/cit/gvsig/gui/Panels/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