net.sf.rej
Class AbstractIteratorAgent

java.lang.Object
  extended by net.sf.rej.AbstractIteratorAgent
All Implemented Interfaces:
IteratorAgent
Direct Known Subclasses:
DefaultMatcher, IteratorAgentAdapter

public abstract class AbstractIteratorAgent
extends java.lang.Object
implements IteratorAgent

AbstractIteratorAgent is an abstract implementation of the IteratorAgent interface providing a method for setting a ProgressMonitor and calling the ProgressMonitor's method to inform it about progress.

Author:
Sami Koivu

Constructor Summary
AbstractIteratorAgent()
           
 
Method Summary
 void progressed(int progressPct)
           
 void scopeChanged(int min, int max)
           
 void setProgressMonitor(ProgressMonitor pm)
          Sets the the ProgressMonitor instance to receive notifications on progress.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.rej.gui.IteratorAgent
finished, postProcessFile, processAttribute, processClass, processConstantPoolInfo, processException, processField, processFile, processInstruction, processInterface, processLocalVariable, processMethod
 

Constructor Detail

AbstractIteratorAgent

public AbstractIteratorAgent()
Method Detail

setProgressMonitor

public void setProgressMonitor(ProgressMonitor pm)
Sets the the ProgressMonitor instance to receive notifications on progress.

Parameters:
pm - monitor to which notification on progress are delegated to.

progressed

public void progressed(int progressPct)
Specified by:
progressed in interface IteratorAgent

scopeChanged

public void scopeChanged(int min,
                         int max)
Specified by:
scopeChanged in interface IteratorAgent