org.geotools.image.io
Class GridCoverageReaderProgressAdapter
Object
BaseGridCoverageProgressAdapter
GridCoverageReaderProgressAdapter
- All Implemented Interfaces:
- EventListener, IIOReadProgressListener, IIOReadUpdateListener, IIOReadWarningListener
public class GridCoverageReaderProgressAdapter
- extends BaseGridCoverageProgressAdapter
- implements IIOReadProgressListener, IIOReadUpdateListener, IIOReadWarningListener
This class provide a means to wrap a GeoTools 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
- Author:
- Simone Giannecchini, GeoSolutions SAS
Method Summary |
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)
|
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GridCoverageReaderProgressAdapter
public GridCoverageReaderProgressAdapter(ProgressListener monitor,
int numImages)
GridCoverageReaderProgressAdapter
public GridCoverageReaderProgressAdapter(ProgressListener monitor)
warningOccurred
public void warningOccurred(ImageReader source,
String warning)
- Specified by:
warningOccurred
in interface IIOReadWarningListener
passStarted
public void passStarted(ImageReader source,
BufferedImage theImage,
int pass,
int minPass,
int maxPass,
int minX,
int minY,
int periodX,
int periodY,
int[] bands)
- Specified by:
passStarted
in interface IIOReadUpdateListener
imageUpdate
public void imageUpdate(ImageReader source,
BufferedImage theImage,
int minX,
int minY,
int width,
int height,
int periodX,
int periodY,
int[] bands)
- Specified by:
imageUpdate
in interface IIOReadUpdateListener
passComplete
public void passComplete(ImageReader source,
BufferedImage theImage)
- Specified by:
passComplete
in interface IIOReadUpdateListener
thumbnailPassStarted
public void thumbnailPassStarted(ImageReader source,
BufferedImage theThumbnail,
int pass,
int minPass,
int maxPass,
int minX,
int minY,
int periodX,
int periodY,
int[] bands)
- Specified by:
thumbnailPassStarted
in interface IIOReadUpdateListener
thumbnailUpdate
public void thumbnailUpdate(ImageReader source,
BufferedImage theThumbnail,
int minX,
int minY,
int width,
int height,
int periodX,
int periodY,
int[] bands)
- Specified by:
thumbnailUpdate
in interface IIOReadUpdateListener
thumbnailPassComplete
public void thumbnailPassComplete(ImageReader source,
BufferedImage theThumbnail)
- Specified by:
thumbnailPassComplete
in interface IIOReadUpdateListener
sequenceStarted
public void sequenceStarted(ImageReader source,
int minIndex)
- Specified by:
sequenceStarted
in interface IIOReadProgressListener
sequenceComplete
public void sequenceComplete(ImageReader source)
- Specified by:
sequenceComplete
in interface IIOReadProgressListener
imageStarted
public void imageStarted(ImageReader source,
int imageIndex)
- Specified by:
imageStarted
in interface IIOReadProgressListener
imageProgress
public void imageProgress(ImageReader source,
float percentageDone)
- Specified by:
imageProgress
in interface IIOReadProgressListener
imageComplete
public void imageComplete(ImageReader source)
- Specified by:
imageComplete
in interface IIOReadProgressListener
thumbnailStarted
public void thumbnailStarted(ImageReader source,
int imageIndex,
int thumbnailIndex)
- Specified by:
thumbnailStarted
in interface IIOReadProgressListener
thumbnailProgress
public void thumbnailProgress(ImageReader source,
float percentageDone)
- Specified by:
thumbnailProgress
in interface IIOReadProgressListener
thumbnailComplete
public void thumbnailComplete(ImageReader source)
- Specified by:
thumbnailComplete
in interface IIOReadProgressListener
readAborted
public void readAborted(ImageReader source)
- Specified by:
readAborted
in interface IIOReadProgressListener
Copyright © 1996-2014 Geotools. All Rights Reserved.