Revision 162 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/grid/filter/band/ColorTableFilter.java

View differences:

ColorTableFilter.java
28 28
import org.gvsig.raster.impl.DefaultRasterManager;
29 29
import org.gvsig.raster.impl.buffer.RasterBuffer;
30 30
import org.gvsig.raster.impl.store.ParamsImpl;
31
import org.gvsig.raster.impl.store.properties.DatasetColorTable;
31
import org.gvsig.raster.impl.store.properties.DataStoreColorTable;
32 32
/**
33 33
 * <P>
34 34
 * Clase base para los filtros de tabla de color. Siempre gastar? la banda cero
......
45 45
public class ColorTableFilter extends BaseRasterFilter {
46 46
	protected Buffer              rasterAlpha  = null;
47 47
	public static String[]        names        = new String[] { "colortable" };
48
	protected DatasetColorTable   colorTable   = new DatasetColorTable();
48
	protected DataStoreColorTable   colorTable   = new DataStoreColorTable();
49 49
	protected boolean             hasAlpha     = false; 
50 50

  
51 51
	/**
......
63 63
	public void pre() {
64 64
		exec = true;
65 65
		raster = (RasterBuffer) params.get("raster");
66
		colorTable = ((DatasetColorTable) params.get("colorTable"));
66
		colorTable = ((DataStoreColorTable) params.get("colorTable"));
67 67
		hasAlpha = colorTable.hasAlpha();
68 68
		if (raster != null) {
69 69
			height = raster.getHeight();
......
110 110
	public Params getUIParams(String nameFilter) {
111 111
		Params params = new ParamsImpl();
112 112
		params.setParam("colorTable",
113
				new DatasetColorTable(colorTable),
113
				new DataStoreColorTable(colorTable),
114 114
				-1,
115 115
				null);
116 116
		return params;
......
144 144
	 */
145 145
	public ColorTable getColorTable() {
146 146
		if ((colorTable == null) || (colorTable.getColorItems() == null))
147
			colorTable = ((DatasetColorTable) params.get("colorTable"));
147
			colorTable = ((DataStoreColorTable) params.get("colorTable"));
148 148
		return colorTable;
149 149
	}
150 150

  
......
161 161
	 * @param colorTable the colorTable to set
162 162
	 */
163 163
	public void setColorTable(ColorTable colorTable) {
164
		this.colorTable = (DatasetColorTable)colorTable;
164
		this.colorTable = (DataStoreColorTable)colorTable;
165 165
	}
166 166
}

Also available in: Unified diff