Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gdal.gdal
Class ProgressCallback

    java.lang.Object
      org.gdal.gdal.ProgressCallback

Direct Known Subclasses:
  TermProgressCallback

    public class ProgressCallback

extends Object

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 usefull things.

Since:
  Java bindings 1.7.0

Constructor Summary
`ProgressCallback()`

Method Summary
`void` | `delete()`
`int` | `run(double dfComplete, String message)` Callback method called from long processing from GDAL methods.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ProgressCallback

    public ProgressCallback()

Method Detail

### delete

    public void delete()

### run

    public int run(double dfComplete,
                   String message)

  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 1
    `message` - 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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD