public class GridCoverageWriterProgressAdapter extends BaseGridCoverageProgressAdapter implements IIOWriteProgressListener, IIOWriteWarningListener
ProgressListener
and have it control an
ImageWriter
while it is actually doing a ImageWriter.write(javax.imageio.IIOImage)
operation.
We also give user the ability to cancel the writing process
lastImageIndex, monitor, numImages, progress, progressStep
Constructor and Description |
---|
GridCoverageWriterProgressAdapter(ProgressListener monitor) |
GridCoverageWriterProgressAdapter(ProgressListener monitor,
int numImages) |
Modifier and Type | Method and 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) |
init
public GridCoverageWriterProgressAdapter(ProgressListener monitor, int numImages)
public GridCoverageWriterProgressAdapter(ProgressListener monitor)
public void warningOccurred(ImageWriter source, int imageIndex, String warning)
warningOccurred
in interface IIOWriteWarningListener
public void imageStarted(ImageWriter source, int imageIndex)
imageStarted
in interface IIOWriteProgressListener
public void imageProgress(ImageWriter source, float percentageDone)
imageProgress
in interface IIOWriteProgressListener
public void imageComplete(ImageWriter source)
imageComplete
in interface IIOWriteProgressListener
public void thumbnailStarted(ImageWriter source, int imageIndex, int thumbnailIndex)
thumbnailStarted
in interface IIOWriteProgressListener
public void thumbnailProgress(ImageWriter source, float percentageDone)
thumbnailProgress
in interface IIOWriteProgressListener
public void thumbnailComplete(ImageWriter source)
thumbnailComplete
in interface IIOWriteProgressListener
public void writeAborted(ImageWriter source)
writeAborted
in interface IIOWriteProgressListener
Copyright © 1996–2019 Geotools. All rights reserved.