public class GridCoverageReaderProgressAdapter extends BaseGridCoverageProgressAdapter implements IIOReadProgressListener, IIOReadUpdateListener, IIOReadWarningListener
ProgressListener
and have it control an
ImageReader
while it is actually doing a ImageReader.read(int)
operation.
We also give user the ability to cancel the reading process
lastImageIndex, monitor, numImages, progress, progressStep
Constructor and Description |
---|
GridCoverageReaderProgressAdapter(ProgressListener monitor) |
GridCoverageReaderProgressAdapter(ProgressListener monitor,
int numImages) |
Modifier and Type | Method and Description |
---|---|
void |
imageComplete(ImageReader source) |
void |
imageProgress(ImageReader source,
float percentageDone) |
void |
imageStarted(ImageReader source,
int imageIndex) |
void |
imageUpdate(ImageReader source,
BufferedImage theImage,
int minX,
int minY,
int width,
int height,
int periodX,
int periodY,
int[] bands) |
void |
passComplete(ImageReader source,
BufferedImage theImage) |
void |
passStarted(ImageReader source,
BufferedImage theImage,
int pass,
int minPass,
int maxPass,
int minX,
int minY,
int periodX,
int periodY,
int[] bands) |
void |
readAborted(ImageReader source) |
void |
sequenceComplete(ImageReader source) |
void |
sequenceStarted(ImageReader source,
int minIndex) |
void |
thumbnailComplete(ImageReader source) |
void |
thumbnailPassComplete(ImageReader source,
BufferedImage theThumbnail) |
void |
thumbnailPassStarted(ImageReader source,
BufferedImage theThumbnail,
int pass,
int minPass,
int maxPass,
int minX,
int minY,
int periodX,
int periodY,
int[] bands) |
void |
thumbnailProgress(ImageReader source,
float percentageDone) |
void |
thumbnailStarted(ImageReader source,
int imageIndex,
int thumbnailIndex) |
void |
thumbnailUpdate(ImageReader source,
BufferedImage theThumbnail,
int minX,
int minY,
int width,
int height,
int periodX,
int periodY,
int[] bands) |
void |
warningOccurred(ImageReader source,
String warning) |
init
public GridCoverageReaderProgressAdapter(ProgressListener monitor, int numImages)
public GridCoverageReaderProgressAdapter(ProgressListener monitor)
public void warningOccurred(ImageReader source, String warning)
warningOccurred
in interface IIOReadWarningListener
public void passStarted(ImageReader source, BufferedImage theImage, int pass, int minPass, int maxPass, int minX, int minY, int periodX, int periodY, int[] bands)
passStarted
in interface IIOReadUpdateListener
public void imageUpdate(ImageReader source, BufferedImage theImage, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands)
imageUpdate
in interface IIOReadUpdateListener
public void passComplete(ImageReader source, BufferedImage theImage)
passComplete
in interface IIOReadUpdateListener
public void thumbnailPassStarted(ImageReader source, BufferedImage theThumbnail, int pass, int minPass, int maxPass, int minX, int minY, int periodX, int periodY, int[] bands)
thumbnailPassStarted
in interface IIOReadUpdateListener
public void thumbnailUpdate(ImageReader source, BufferedImage theThumbnail, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands)
thumbnailUpdate
in interface IIOReadUpdateListener
public void thumbnailPassComplete(ImageReader source, BufferedImage theThumbnail)
thumbnailPassComplete
in interface IIOReadUpdateListener
public void sequenceStarted(ImageReader source, int minIndex)
sequenceStarted
in interface IIOReadProgressListener
public void sequenceComplete(ImageReader source)
sequenceComplete
in interface IIOReadProgressListener
public void imageStarted(ImageReader source, int imageIndex)
imageStarted
in interface IIOReadProgressListener
public void imageProgress(ImageReader source, float percentageDone)
imageProgress
in interface IIOReadProgressListener
public void imageComplete(ImageReader source)
imageComplete
in interface IIOReadProgressListener
public void thumbnailStarted(ImageReader source, int imageIndex, int thumbnailIndex)
thumbnailStarted
in interface IIOReadProgressListener
public void thumbnailProgress(ImageReader source, float percentageDone)
thumbnailProgress
in interface IIOReadProgressListener
public void thumbnailComplete(ImageReader source)
thumbnailComplete
in interface IIOReadProgressListener
public void readAborted(ImageReader source)
readAborted
in interface IIOReadProgressListener
Copyright © 1996–2019 Geotools. All rights reserved.