com.esri.core.geometry
Class ProgressTracker

java.lang.Object
  extended by com.esri.core.geometry.ProgressTracker

public abstract class ProgressTracker
extends Object

A callback to provide progress and cancel tracking mechanism for lengthy operation.


Constructor Summary
ProgressTracker()
           
 
Method Summary
abstract  boolean progress(int step, int totalExpectedSteps)
          Periodically called by a lengthy operation to check if the caller requested to cancel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressTracker

public ProgressTracker()
Method Detail

progress

public abstract boolean progress(int step,
                                 int totalExpectedSteps)
Periodically called by a lengthy operation to check if the caller requested to cancel.

Parameters:
step - The current step of the operation.
totalExpectedSteps - is the number of steps the operation is expects to complete its task.
Returns:
true, if the operation can continue. Returns False, when the operation has to terminate due to a user cancelation.


Copyright © 2013. All Rights Reserved.