public class J2KImageReader extends javax.imageio.ImageReader implements MsgLogger
J2KImageReadParam
.Constructor and Description |
---|
J2KImageReader(javax.imageio.spi.ImageReaderSpi originator)
Constructs
J2KImageReader from the provided
ImageReaderSpi . |
Modifier and Type | Method and Description |
---|---|
boolean |
canReadRaster() |
static void |
checkReadParamBandSettingsWrapper(javax.imageio.ImageReadParam param,
int numSrcBands,
int numDstBands)
Wrapper for the protected method
checkReadParamBandSettings . |
static void |
computeRegionsWrapper(javax.imageio.ImageReadParam param,
boolean allowZeroDestOffset,
int srcWidth,
int srcHeight,
java.awt.image.BufferedImage image,
java.awt.Rectangle srcRegion,
java.awt.Rectangle destRegion)
Wrapper for the protected method
computeRegions . |
void |
flush()
Writes any buffered data from the println() method to the device.
|
boolean |
getAbortRequest()
This method wraps the protected method
abortRequested
to allow the abortions be monitored by J2KReadState . |
javax.imageio.ImageReadParam |
getDefaultReadParam() |
int |
getHeight(int imageIndex) |
javax.imageio.metadata.IIOMetadata |
getImageMetadata(int imageIndex) |
java.util.Iterator |
getImageTypes(int imageIndex) |
int |
getNumImages(boolean allowSearch)
Overrides the method defined in the superclass.
|
javax.imageio.metadata.IIOMetadata |
getStreamMetadata() |
int |
getTileGridXOffset(int imageIndex) |
int |
getTileGridYOffset(int imageIndex) |
int |
getTileHeight(int imageIndex) |
int |
getTileWidth(int imageIndex) |
int |
getWidth(int imageIndex) |
boolean |
isImageTiled(int imageIndex) |
boolean |
isRandomAccessEasy(int imageIndex) |
void |
println(java.lang.String str,
int flind,
int ind)
Prints the string 'str' to the output device, appending a line
return.
|
void |
printmsg(int sev,
java.lang.String msg)
Prints the message 'msg' to the output device, appending a newline,
with severity 'sev'.
|
void |
processImageProgressWrapper(float percentageDone)
Wrapper for the protected method
processImageProgress
So it can be access from the classes which are not in
ImageReader hierarchy. |
void |
processImageUpdateWrapper(java.awt.image.BufferedImage theImage,
int minX,
int minY,
int width,
int height,
int periodX,
int periodY,
int[] bands)
Wrapper for the protected method
processImageUpdate
So it can be access from the classes which are not in
ImageReader hierarchy. |
java.awt.image.BufferedImage |
read(int imageIndex,
javax.imageio.ImageReadParam param) |
java.awt.image.RenderedImage |
readAsRenderedImage(int imageIndex,
javax.imageio.ImageReadParam param) |
void |
readHeader() |
java.awt.image.Raster |
readRaster(int imageIndex,
javax.imageio.ImageReadParam param) |
void |
reset() |
void |
setInput(java.lang.Object input,
boolean seekForwardOnly,
boolean ignoreMetadata)
Overrides the method defined in the superclass.
|
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, checkReadParamBandSettings, clearAbortRequest, computeRegions, dispose, getAspectRatio, getAvailableLocales, getDestination, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, hasThumbnails, isIgnoringMetadata, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, readAll, readAll, readerSupportsThumbnails, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, setInput, setInput, setLocale
public J2KImageReader(javax.imageio.spi.ImageReaderSpi originator)
J2KImageReader
from the provided
ImageReaderSpi
.public static void computeRegionsWrapper(javax.imageio.ImageReadParam param, boolean allowZeroDestOffset, int srcWidth, int srcHeight, java.awt.image.BufferedImage image, java.awt.Rectangle srcRegion, java.awt.Rectangle destRegion)
computeRegions
. So it
can be access from the classes which are not in ImageReader
hierarchy.public static void checkReadParamBandSettingsWrapper(javax.imageio.ImageReadParam param, int numSrcBands, int numDstBands)
checkReadParamBandSettings
.
So it can be access from the classes which are not in
ImageReader
hierarchy.public void processImageUpdateWrapper(java.awt.image.BufferedImage theImage, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands)
processImageUpdate
So it can be access from the classes which are not in
ImageReader
hierarchy.public void processImageProgressWrapper(float percentageDone)
processImageProgress
So it can be access from the classes which are not in
ImageReader
hierarchy.public void setInput(java.lang.Object input, boolean seekForwardOnly, boolean ignoreMetadata)
setInput
in class javax.imageio.ImageReader
public int getNumImages(boolean allowSearch) throws java.io.IOException
getNumImages
in class javax.imageio.ImageReader
java.io.IOException
public int getWidth(int imageIndex) throws java.io.IOException
getWidth
in class javax.imageio.ImageReader
java.io.IOException
public int getHeight(int imageIndex) throws java.io.IOException
getHeight
in class javax.imageio.ImageReader
java.io.IOException
public int getTileGridXOffset(int imageIndex) throws java.io.IOException
getTileGridXOffset
in class javax.imageio.ImageReader
java.io.IOException
public int getTileGridYOffset(int imageIndex) throws java.io.IOException
getTileGridYOffset
in class javax.imageio.ImageReader
java.io.IOException
public int getTileWidth(int imageIndex) throws java.io.IOException
getTileWidth
in class javax.imageio.ImageReader
java.io.IOException
public int getTileHeight(int imageIndex) throws java.io.IOException
getTileHeight
in class javax.imageio.ImageReader
java.io.IOException
public void readHeader()
public java.util.Iterator getImageTypes(int imageIndex) throws java.io.IOException
getImageTypes
in class javax.imageio.ImageReader
java.io.IOException
public javax.imageio.ImageReadParam getDefaultReadParam()
getDefaultReadParam
in class javax.imageio.ImageReader
public javax.imageio.metadata.IIOMetadata getImageMetadata(int imageIndex) throws java.io.IOException
getImageMetadata
in class javax.imageio.ImageReader
java.io.IOException
public javax.imageio.metadata.IIOMetadata getStreamMetadata() throws java.io.IOException
getStreamMetadata
in class javax.imageio.ImageReader
java.io.IOException
public java.awt.image.BufferedImage read(int imageIndex, javax.imageio.ImageReadParam param) throws java.io.IOException
read
in class javax.imageio.ImageReader
java.io.IOException
public java.awt.image.RenderedImage readAsRenderedImage(int imageIndex, javax.imageio.ImageReadParam param) throws java.io.IOException
readAsRenderedImage
in class javax.imageio.ImageReader
java.io.IOException
public boolean canReadRaster()
canReadRaster
in class javax.imageio.ImageReader
public boolean isRandomAccessEasy(int imageIndex) throws java.io.IOException
isRandomAccessEasy
in class javax.imageio.ImageReader
java.io.IOException
public java.awt.image.Raster readRaster(int imageIndex, javax.imageio.ImageReadParam param) throws java.io.IOException
readRaster
in class javax.imageio.ImageReader
java.io.IOException
public boolean isImageTiled(int imageIndex)
isImageTiled
in class javax.imageio.ImageReader
public void reset()
reset
in class javax.imageio.ImageReader
public boolean getAbortRequest()
abortRequested
to allow the abortions be monitored by J2KReadState
.public void flush()
MsgLogger
public void println(java.lang.String str, int flind, int ind)
MsgLogger
public void printmsg(int sev, java.lang.String msg)
MsgLogger
Copyright © 2014 Open Microscopy Environment