Revision 11079
trunk/libraries/libRaster/src/org/gvsig/raster/dataset/RasterMultiDataset.java | ||
---|---|---|
874 | 874 |
* @see org.gvsig.raster.driver.datasetproperties.IHistogramable#getHistogram() |
875 | 875 |
*/ |
876 | 876 |
public Histogram getHistogram() throws HistogramException { |
877 |
percent = 0; |
|
878 | 877 |
if(histogram == null) |
879 | 878 |
histogram = new DatasetListHistogram(this); |
880 | 879 |
|
881 | 880 |
try { |
882 | 881 |
Histogram tmp = histogram.getHistogram(); |
883 |
percent = 100; |
|
884 | 882 |
return tmp; |
885 | 883 |
} catch (FileNotOpenException e) { |
886 | 884 |
throw new HistogramException("FileNotOpenException"); |
... | ... | |
911 | 909 |
* @see org.gvsig.raster.util.IHistogramable#getPercent() |
912 | 910 |
*/ |
913 | 911 |
public int getPercent() { |
914 |
return percent; |
|
912 |
if (histogram != null) return histogram.getPercent(); |
|
913 |
return 0; |
|
915 | 914 |
} |
916 | 915 |
|
916 |
|
|
917 |
/* |
|
918 |
* (non-Javadoc) |
|
919 |
* @see org.gvsig.raster.util.IHistogramable#resetPercent() |
|
920 |
*/ |
|
921 |
public void resetPercent() { |
|
922 |
if (histogram != null) histogram.resetPercent(); |
|
923 |
} |
|
924 |
|
|
925 |
/* |
|
926 |
* (non-Javadoc) |
|
927 |
* @see org.gvsig.raster.util.ICancellable#isCanceled() |
|
928 |
*/ |
|
929 |
public boolean isCanceled() { |
|
930 |
if (histogram != null) return histogram.isCanceled(); |
|
931 |
return false; |
|
932 |
} |
|
933 |
|
|
934 |
/* |
|
935 |
* (non-Javadoc) |
|
936 |
* @see org.gvsig.raster.util.ICancellable#setCanceled(boolean) |
|
937 |
*/ |
|
938 |
public void setCanceled(boolean value) { |
|
939 |
if (histogram != null) histogram.setCanceled(value); |
|
940 |
} |
|
917 | 941 |
} |
Also available in: Unified diff