|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectImageReader
SwanImageReader
public final class SwanImageReader
Field Summary |
---|
Fields inherited from class ImageReader |
---|
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales |
Constructor Summary | |
---|---|
SwanImageReader(SwanImageReaderSpi originatingProvider)
Constructor. |
Method Summary | |
---|---|
boolean |
canReadRaster()
|
void |
dispose()
|
int |
getHeight(int imageIndex)
|
int |
getImageIndexFromTauAndDatasets(int requiredForecast,
int requiredQuantity)
This auxiliary method provide to retrieve a proper imageIndex to access the required raster contained within the input file which may have data for several forecast and several SWAN output quantities. |
IIOMetadata |
getImageMetadata(int imageIndex)
|
Iterator |
getImageTypes(int imageIndex)
|
int |
getIndexFromQuantityName(String quantityName)
Return the index related to a specified SWAN quantity |
int |
getNumImages(boolean allowSearch)
|
IIOMetadata |
getStreamMetadata()
|
int |
getTileHeight(int imageIndex)
|
int |
getTileWidth(int imageIndex)
|
int |
getWidth(int imageIndex)
|
BufferedImage |
read(int imageIndex)
|
BufferedImage |
read(int imageIndex,
ImageReadParam param)
|
RenderedImage |
readAsRenderedImage(int imageIndex,
ImageReadParam param)
|
BufferedImage |
readTile(int imageIndex,
int tileX,
int tileY)
|
Raster |
readTileRaster(int imageIndex,
int tileX,
int tileY)
|
void |
reset()
Resets this SwanImageReader . |
static ColorModel |
retrieveColorModel(SampleModel sm)
|
void |
setInput(Object input)
|
void |
setInput(Object input,
boolean seekForwardOnly)
|
void |
setInput(Object input,
boolean seekForwardOnly,
boolean ignoreMetadata)
|
Methods inherited from class ImageReader |
---|
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, checkReadParamBandSettings, clearAbortRequest, computeRegions, getAspectRatio, getAvailableLocales, getDefaultReadParam, getDestination, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, hasThumbnails, isIgnoringMetadata, isImageTiled, isRandomAccessEasy, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, readAll, readAll, readerSupportsThumbnails, readRaster, readThumbnail, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, setLocale |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SwanImageReader(SwanImageReaderSpi originatingProvider)
SwanImageReader
by providing an
SwanImageReaderSpi
originatingProvider
- Method Detail |
---|
public int getHeight(int imageIndex) throws IOException
getHeight
in class ImageReader
IOException
public Iterator getImageTypes(int imageIndex) throws IOException
getImageTypes
in class ImageReader
IOException
public static ColorModel retrieveColorModel(SampleModel sm)
public int getNumImages(boolean allowSearch) throws IOException
getNumImages
in class ImageReader
IOException
public IIOMetadata getStreamMetadata() throws IOException
getStreamMetadata
in class ImageReader
IOException
public IIOMetadata getImageMetadata(int imageIndex) throws IOException
getImageMetadata
in class ImageReader
IOException
public int getWidth(int imageIndex) throws IOException
getWidth
in class ImageReader
IOException
public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException
read
in class ImageReader
IOException
public int getImageIndexFromTauAndDatasets(int requiredForecast, int requiredQuantity)
requiredForecast
- the forecast for which we need data. (starts from zero)requiredQuantity
- the quantity for which we need data. (starts from zero)
public int getIndexFromQuantityName(String quantityName)
quantityName
- the name of the required SWAN quantity
public void setInput(Object input)
setInput
in class ImageReader
public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
setInput
in class ImageReader
public void setInput(Object input, boolean seekForwardOnly)
setInput
in class ImageReader
public BufferedImage read(int imageIndex) throws IOException
read
in class ImageReader
IOException
public RenderedImage readAsRenderedImage(int imageIndex, ImageReadParam param) throws IOException
readAsRenderedImage
in class ImageReader
IOException
public BufferedImage readTile(int imageIndex, int tileX, int tileY) throws IOException
readTile
in class ImageReader
IOException
public Raster readTileRaster(int imageIndex, int tileX, int tileY) throws IOException
readTileRaster
in class ImageReader
IOException
public boolean canReadRaster()
canReadRaster
in class ImageReader
public void reset()
SwanImageReader
.
reset
in class ImageReader
ImageReader.reset()
public void dispose()
dispose
in class ImageReader
public int getTileHeight(int imageIndex) throws IOException
getTileHeight
in class ImageReader
IOException
public int getTileWidth(int imageIndex) throws IOException
getTileWidth
in class ImageReader
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |