Package 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 GeoToolsProgressListener
and have it control anImageReader
while it is actually doing aImageReader.read(int)
operation.We also give user the ability to cancel the reading process
- Author:
- Simone Giannecchini, GeoSolutions SAS
-
-
Field Summary
-
Fields inherited from class BaseGridCoverageProgressAdapter
lastImageIndex, monitor, numImages, progress, progressStep
-
-
Constructor Summary
Constructors Constructor Description GridCoverageReaderProgressAdapter(ProgressListener monitor)
GridCoverageReaderProgressAdapter(ProgressListener monitor, int numImages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class BaseGridCoverageProgressAdapter
init
-
-
-
-
Constructor Detail
-
GridCoverageReaderProgressAdapter
public GridCoverageReaderProgressAdapter(ProgressListener monitor, int numImages)
-
GridCoverageReaderProgressAdapter
public GridCoverageReaderProgressAdapter(ProgressListener monitor)
-
-
Method Detail
-
warningOccurred
public void warningOccurred(ImageReader source, String warning)
- Specified by:
warningOccurred
in interfaceIIOReadWarningListener
-
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 interfaceIIOReadUpdateListener
-
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 interfaceIIOReadUpdateListener
-
passComplete
public void passComplete(ImageReader source, BufferedImage theImage)
- Specified by:
passComplete
in interfaceIIOReadUpdateListener
-
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 interfaceIIOReadUpdateListener
-
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 interfaceIIOReadUpdateListener
-
thumbnailPassComplete
public void thumbnailPassComplete(ImageReader source, BufferedImage theThumbnail)
- Specified by:
thumbnailPassComplete
in interfaceIIOReadUpdateListener
-
sequenceStarted
public void sequenceStarted(ImageReader source, int minIndex)
- Specified by:
sequenceStarted
in interfaceIIOReadProgressListener
-
sequenceComplete
public void sequenceComplete(ImageReader source)
- Specified by:
sequenceComplete
in interfaceIIOReadProgressListener
-
imageStarted
public void imageStarted(ImageReader source, int imageIndex)
- Specified by:
imageStarted
in interfaceIIOReadProgressListener
-
imageProgress
public void imageProgress(ImageReader source, float percentageDone)
- Specified by:
imageProgress
in interfaceIIOReadProgressListener
-
imageComplete
public void imageComplete(ImageReader source)
- Specified by:
imageComplete
in interfaceIIOReadProgressListener
-
thumbnailStarted
public void thumbnailStarted(ImageReader source, int imageIndex, int thumbnailIndex)
- Specified by:
thumbnailStarted
in interfaceIIOReadProgressListener
-
thumbnailProgress
public void thumbnailProgress(ImageReader source, float percentageDone)
- Specified by:
thumbnailProgress
in interfaceIIOReadProgressListener
-
thumbnailComplete
public void thumbnailComplete(ImageReader source)
- Specified by:
thumbnailComplete
in interfaceIIOReadProgressListener
-
readAborted
public void readAborted(ImageReader source)
- Specified by:
readAborted
in interfaceIIOReadProgressListener
-
-