Revision 12504 trunk/libraries/libRaster/src/org/gvsig/raster/grid/GridPalette.java

View differences:

GridPalette.java
18 18
 */
19 19
package org.gvsig.raster.grid;
20 20

  
21
import org.gvsig.raster.dataset.IBuffer;
22 21
import org.gvsig.raster.datastruct.ColorTable;
23

  
24 22
/**
25 23
 * Tabla de color asociada a un grid
26 24
 *
......
37 35
	 * @param fp
38 36
	 */
39 37
	public GridPalette(ColorTable fp){
40
		if(fp == null)
38
		if (fp == null)
41 39
			return;
42
		this.type = fp.getType();
43
		this.intRange = fp.getIntRange();
44
		this.doubleRange = fp.getDoubleRange();
45
		this.palette = fp.getColorTable();
40
		this.range = fp.getRange();
41
		this.transparencyRange = fp.getTransparencyRange();
46 42
		this.paletteByBand = fp.getColorTableByBand();
47 43
		this.nameClass = fp.getNameClass();
48 44
		this.name = fp.getName();
49
		if(type != IBuffer.TYPE_UNDEFINED)
50
			paletteActive = true;
45
		this.filePath = fp.getFilePath();
46
		paletteActive = true;
51 47
	}
52 48

  
53 49
	/**

Also available in: Unified diff