public interface DataRaster extends AVList, Disposable
Modifier and Type | Method and Description |
---|---|
void |
drawOnTo(DataRaster canvas)
Copies this raster into a specified raster.
|
int |
getHeight()
Returns the raster's height in raster units.
|
Sector |
getSector()
Returns the region covered be the data.
|
DataRaster |
getSubRaster(AVList params)
Returns a portion of this raster as another raster.
|
DataRaster |
getSubRaster(int width,
int height,
Sector sector,
AVList params)
Returns a portion of this raster as another raster.
|
int |
getWidth()
Returns the raster's width in raster units.
|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
dispose
void drawOnTo(DataRaster canvas)
canvas
- - the raster to copy into.int getHeight()
Sector getSector()
DataRaster getSubRaster(AVList params)
params
- a list of parameters that specify the width, height and sector of the region to return. Specify
these values using AVKey.WIDTH
, AVKey.HEIGHT
and AVKey.SECTOR
.IllegalArgumentException
- if the specified parameter list is missing the width, height or sector keys or
any of those values are invalid.DataRaster getSubRaster(int width, int height, Sector sector, AVList params)
width
- the width to make the returned sub-raster.height
- the height to make the returned sub-raster.sector
- the sector to copy.params
- a list of parameters that specify the width, height and sector of the region to return. Specify
these values using AVKey.WIDTH
, AVKey.HEIGHT
and AVKey.SECTOR
.IllegalArgumentException
- if the sector is null or the width, height or sector are invalid.int getWidth()