Revision 11424 trunk/libraries/libRaster/src/org/gvsig/raster/dataset/RasterDataset.java

View differences:

RasterDataset.java
65 65

  
66 66
public abstract class RasterDataset extends GeoInfo {
67 67
	
68
	public static final int		CANCEL_HISTOGRAM = 1;
69
	protected boolean[]			cancel = new boolean[1];
70
	
68 71
	/**
69 72
	 * Flag que representa a la banda del Rojo
70 73
	 */
......
869 872
		return 0;
870 873
	}
871 874
	
872
	public void setCanceled(boolean value) {
873
		if (histogram != null) histogram.setCanceled(value);
875
	public void setCanceled(boolean value, int process) {
876
		if(process == CANCEL_HISTOGRAM || process == 0) {
877
			if (histogram != null) 
878
				histogram.setCanceled(value, DatasetHistogram.CANCEL_CREATEHISTOGRAM);
879
		}
874 880
	}
875 881

  
876
	public boolean isCanceled() {
877
		if (histogram != null) return histogram.isCanceled();
882
	public boolean isCanceled(int process) {
883
		if(process == CANCEL_HISTOGRAM) {
884
			if (histogram != null) 
885
				return histogram.isCanceled(DatasetHistogram.CANCEL_CREATEHISTOGRAM);
886
		}
878 887
		return false;
879 888
	}
880 889
		

Also available in: Unified diff