Class SubProgressListener

  • All Implemented Interfaces:
    ProgressListener

    public class SubProgressListener
    extends DelegateProgressListener
    A sub progress monitor, used to delegate a portion of work to a separate process.

    Example:

    
     if( progress == null ) progress = new NullProgressListener();
     progress.started();
     progress.setDecsription("Connect");
     ..connect to data store and obtain feature collection...
     progress.progress( 20 ); // connecting represents 20% of the work
     progress.setDescription("Process features");
     featureCollection.accepts( visitor, new SubProgress( progress, 80 ) );
     progress.completed();
     
    Author:
    Jody
    • Constructor Detail

      • SubProgressListener

        public SubProgressListener​(ProgressListener progress,
                                   float start,
                                   float amount)
        Create a sub progress monitor, used to delegate work to a separate process.
        Parameters:
        progress - parent progress to notify as we get work done
        start - the starting offset for the progress
        amount - amount of progress represented
      • SubProgressListener

        public SubProgressListener​(ProgressListener progress,
                                   float amount)
        Create a sub progress monitor, used to delegate work to a separate process.
        Parameters:
        progress - parent progress to notify as we get work done
        amount - amount of progress represented