Package org.geotools.image.io
Class GridCoverageWriterProgressAdapter
- Object
-
- BaseGridCoverageProgressAdapter
-
- GridCoverageWriterProgressAdapter
-
- All Implemented Interfaces:
EventListener
,IIOWriteProgressListener
,IIOWriteWarningListener
public class GridCoverageWriterProgressAdapter extends BaseGridCoverageProgressAdapter implements IIOWriteProgressListener, IIOWriteWarningListener
This class provide a means to wrap a GeoToolsProgressListener
and have it control anImageWriter
while it is actually doing aImageWriter.write(javax.imageio.IIOImage)
operation.We also give user the ability to cancel the writing process
- Author:
- Simone Giannecchini, GeoSolutions SAS
-
-
Field Summary
-
Fields inherited from class BaseGridCoverageProgressAdapter
lastImageIndex, monitor, numImages, progress, progressStep
-
-
Constructor Summary
Constructors Constructor Description GridCoverageWriterProgressAdapter(ProgressListener monitor)
GridCoverageWriterProgressAdapter(ProgressListener monitor, int numImages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
imageComplete(ImageWriter source)
void
imageProgress(ImageWriter source, float percentageDone)
void
imageStarted(ImageWriter source, int imageIndex)
void
thumbnailComplete(ImageWriter source)
void
thumbnailProgress(ImageWriter source, float percentageDone)
void
thumbnailStarted(ImageWriter source, int imageIndex, int thumbnailIndex)
void
warningOccurred(ImageWriter source, int imageIndex, String warning)
void
writeAborted(ImageWriter source)
-
Methods inherited from class BaseGridCoverageProgressAdapter
init
-
-
-
-
Constructor Detail
-
GridCoverageWriterProgressAdapter
public GridCoverageWriterProgressAdapter(ProgressListener monitor, int numImages)
-
GridCoverageWriterProgressAdapter
public GridCoverageWriterProgressAdapter(ProgressListener monitor)
-
-
Method Detail
-
warningOccurred
public void warningOccurred(ImageWriter source, int imageIndex, String warning)
- Specified by:
warningOccurred
in interfaceIIOWriteWarningListener
-
imageStarted
public void imageStarted(ImageWriter source, int imageIndex)
- Specified by:
imageStarted
in interfaceIIOWriteProgressListener
-
imageProgress
public void imageProgress(ImageWriter source, float percentageDone)
- Specified by:
imageProgress
in interfaceIIOWriteProgressListener
-
imageComplete
public void imageComplete(ImageWriter source)
- Specified by:
imageComplete
in interfaceIIOWriteProgressListener
-
thumbnailStarted
public void thumbnailStarted(ImageWriter source, int imageIndex, int thumbnailIndex)
- Specified by:
thumbnailStarted
in interfaceIIOWriteProgressListener
-
thumbnailProgress
public void thumbnailProgress(ImageWriter source, float percentageDone)
- Specified by:
thumbnailProgress
in interfaceIIOWriteProgressListener
-
thumbnailComplete
public void thumbnailComplete(ImageWriter source)
- Specified by:
thumbnailComplete
in interfaceIIOWriteProgressListener
-
writeAborted
public void writeAborted(ImageWriter source)
- Specified by:
writeAborted
in interfaceIIOWriteProgressListener
-
-