net.refractions.udig.catalog.ui.export
Class CountDownProgressMonitor

java.lang.Object
  extended by SubProgressMonitor
      extended by net.refractions.udig.catalog.ui.export.CountDownProgressMonitor

public class CountDownProgressMonitor
extends SubProgressMonitor

Each time worked is called the total is decremented and the task name is done.

Since:
1.1.0
Author:
Jesse

Constructor Summary
CountDownProgressMonitor(IProgressMonitor monitor, int ticks, IGeoResource resource, int remaining)
          new instance
 
Method Summary
 int getRemaining()
           
 void worked(int work)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountDownProgressMonitor

public CountDownProgressMonitor(IProgressMonitor monitor,
                                int ticks,
                                IGeoResource resource,
                                int remaining)
new instance

Parameters:
monitor - the "real" progress monitor
ticks - the number of ticks that this monitor can use
resource - the layer that is being exported
remaining - the number of features left to export.
Method Detail

worked

public void worked(int work)

getRemaining

public int getRemaining()