Package org.gdal.ogr
Class ProgressCallback
java.lang.Object
org.gdal.ogr.ProgressCallback
- Direct Known Subclasses:
TermProgressCallback
Class used to report progression of long operations.
This class will not do anything by itself, but it can be subclassed, like TermProgressCallback class. to do more useful things.
- Since:
- Java bindings 1.7.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ProgressCallback
public ProgressCallback()
-
-
Method Details
-
delete
public void delete() -
run
Callback method called from long processing from GDAL methods.This method is called back with the progression percentage. Its return value is used by the caller to determine whether the processing should go on or be interrupted.
This method should be subclassed by classes subclassing ProgressCallback.
- Parameters:
dfComplete
- progression percentage between 0 and 1message
- processing message, may be null- Returns:
- 0 if you want to interrupt the processing, any value different from 0 to go on
- Since:
- Java bindings 1.7.0
-