package de.visone.nlpext.gui;

/**
 * This interface must be implemented by a class that listenes to the progress
 * of a process.
 * @author <a href="mailto:endele@inf.uni-konstanz.de">Simon Endele</a>
 */
public interface ProgressListener extends java.util.EventListener {
	
	/** Sets the number of elements yet processed an the total number of elements.
	 @param numProcessed number of processed elements
	 @param numTotal number of elements to process altogether */
	public void setProgress(int numProcessed, int numTotal);
	
	/** Returns if the process is meant to be broken up. */
	public boolean isCanceled();
	
}