Revision 1001 org.gvsig.raster.cache/trunk/org.gvsig.raster.cache/org.gvsig.raster.cache.lib.impl/src/main/java/org/gvsig/raster/cache/buffer/impl/RasterBuffer.java
RasterBuffer.java | ||
---|---|---|
106 | 106 |
} |
107 | 107 |
|
108 | 108 |
/* |
109 |
* (non-Javadoc) |
|
110 |
* @see org.gvsig.fmap.driver.IRasterBuffer#copyBand(int, org.gvsig.fmap.dataaccess.buffer.IBand) |
|
111 |
*/ |
|
109 |
* (non-Javadoc) |
|
110 |
* @see org.gvsig.raster.cache.buffer.Buffer#addDrawableBands(int[]) |
|
111 |
*/ |
|
112 |
public void addDrawableBands(int[] bands) { |
|
113 |
|
|
114 |
} |
|
115 |
|
|
116 |
/* |
|
117 |
* (non-Javadoc) |
|
118 |
* @see org.gvsig.raster.cache.buffer.Buffer#copyBand(int, org.gvsig.raster.cache.buffer.Band) |
|
119 |
*/ |
|
112 | 120 |
public void copyBand(int iBand, Band band) throws BandNotCompatibleException, OperationNotSupportedException { |
113 | 121 |
if(band.getDataType() != this.getDataType()) |
114 | 122 |
throw new BandNotCompatibleException("Diferent data types"); |
... | ... | |
173 | 181 |
} |
174 | 182 |
|
175 | 183 |
/* |
176 |
* (non-Javadoc)
|
|
177 |
* @see org.gvsig.fmap.driver.IRasterBuffer#swapBands(int, int)
|
|
178 |
*/
|
|
184 |
* (non-Javadoc)
|
|
185 |
* @see org.gvsig.raster.cache.buffer.Buffer#swapBands(int, int)
|
|
186 |
*/
|
|
179 | 187 |
public void swapBands(int band1, int band2) throws WrongParameterException, IOException { |
180 | 188 |
if(band1 < 0 || band1 > getBandCount() - 1 || band2 < 0 || band2 > getBandCount() - 1) |
181 | 189 |
throw new WrongParameterException("Wrong band number"); |
... | ... | |
210 | 218 |
|
211 | 219 |
/* |
212 | 220 |
* (non-Javadoc) |
213 |
* @see org.gvsig.raster.dataset.IBuffer#isInside(int, int)
|
|
221 |
* @see org.gvsig.raster.cache.buffer.Buffer#isInside(int, int)
|
|
214 | 222 |
*/ |
215 | 223 |
public boolean isInside(int x, int y) { |
216 | 224 |
if (x < 0 || y < 0 || x >= getWidth() || y >= getHeight()) |
... | ... | |
219 | 227 |
} |
220 | 228 |
|
221 | 229 |
/* |
222 |
* (non-Javadoc)
|
|
223 |
* @see org.gvsig.fmap.driver.IBuffer#getNotValidValue()
|
|
230 |
* (non-Javadoc) |
|
231 |
* @see org.gvsig.raster.cache.buffer.Buffer#getNotValidValue()
|
|
224 | 232 |
*/ |
225 | 233 |
public double getNotValidValue(){ |
226 | 234 |
return notValidValue; |
227 | 235 |
} |
228 | 236 |
|
229 | 237 |
/* |
230 |
* (non-Javadoc)
|
|
231 |
* @see org.gvsig.fmap.driver.IBuffer#setNotValidValue(java.lang.Object)
|
|
238 |
* (non-Javadoc) |
|
239 |
* @see org.gvsig.raster.cache.buffer.Buffer#setNotValidValue(double)
|
|
232 | 240 |
*/ |
233 | 241 |
public void setNotValidValue(double value){ |
234 | 242 |
this.notValidValue = value; |
235 | 243 |
} |
236 | 244 |
|
237 | 245 |
/* |
238 |
* (non-Javadoc)
|
|
239 |
* @see org.gvsig.fmap.driver.IBuffer#cloneBuffer()
|
|
246 |
* (non-Javadoc) |
|
247 |
* @see org.gvsig.raster.cache.buffer.Buffer#cloneBuffer()
|
|
240 | 248 |
*/ |
241 | 249 |
public abstract Buffer cloneBuffer(); |
242 | 250 |
|
243 | 251 |
/* |
244 | 252 |
* (non-Javadoc) |
245 |
* @see org.fv.raster.buffer.IRasterBuffer#getAdjustedWindow(int, int, int)
|
|
253 |
* @see org.gvsig.raster.cache.buffer.Buffer#getAdjustedWindow(int, int, int)
|
|
246 | 254 |
*/ |
247 | 255 |
public Buffer getAdjustedWindow(int w, int h, int interpolationMethod) throws InterruptedException { |
248 | 256 |
BufferInterpolationImpl interp = new BufferInterpolationImpl(this); |
... | ... | |
275 | 283 |
|
276 | 284 |
/* |
277 | 285 |
* (non-Javadoc) |
278 |
* @see org.fv.raster.buffer.IRasterBuffer#getStatistics()
|
|
286 |
* @see org.gvsig.raster.cache.buffer.Buffer#getStatistics()
|
|
279 | 287 |
*/ |
280 | 288 |
public BufferStats getStatistics() { |
281 | 289 |
if(statistics == null) |
... | ... | |
283 | 291 |
return statistics; |
284 | 292 |
} |
285 | 293 |
|
294 |
/* |
|
295 |
* (non-Javadoc) |
|
296 |
* @see org.gvsig.raster.cache.buffer.histogram.Histogramable#getHistogramComputer() |
|
297 |
*/ |
|
286 | 298 |
public HistogramComputer getHistogramComputer() throws HistogramException, InterruptedException { |
287 | 299 |
if(histogramComputer == null) |
288 | 300 |
histogramComputer = new BufferHistogramComputer(this); |
Also available in: Unified diff