net.sourceforge.jiu.ops

Interface ProgressListener

Known Implementing Classes:
JiuAwtFrame

public interface ProgressListener

This interface must be implemented by classes that want to be notified about progress of an image operation.
Author:
Marco Schmidt

Method Summary

void
setProgress(float progress)
Set the progress level to a new value, which must be between 0.0f and 1.0f (including both of these values).
void
setProgress(int zeroBasedIndex, int totalItems)
Sets a new progress level.

Method Details

setProgress

public void setProgress(float progress)
Set the progress level to a new value, which must be between 0.0f and 1.0f (including both of these values). You should not call this method with a value lower than any value you've set before. However, this is not checked.
Parameters:
progress - the degree of progress as a value between 0.0f and 1.0f

setProgress

public void setProgress(int zeroBasedIndex,
                        int totalItems)
Parameters:
zeroBasedIndex - the index of the step that was just completed
totalItems - the number of steps in this operation