orc.progress
Class SubProgressListener

java.lang.Object
  extended by orc.progress.SubProgressListener
All Implemented Interfaces:
ProgressListener

public final class SubProgressListener
extends java.lang.Object
implements ProgressListener

Report progress of a subtask to a progress listener for a larger task.

Author:
quark

Constructor Summary
SubProgressListener(ProgressListener parent, double min, double max)
          min and max represent the progress range tracked by this listener within the larger task tracked by parent.
 
Method Summary
 boolean isCanceled()
           
 void setNote(java.lang.String note)
           
 void setProgress(double v)
          Progress reported here is interpreted as the percentage of the subtask complete, which we translate into the percentage of the overall task complete.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubProgressListener

public SubProgressListener(ProgressListener parent,
                           double min,
                           double max)
min and max represent the progress range tracked by this listener within the larger task tracked by parent.

Method Detail

isCanceled

public boolean isCanceled()
Specified by:
isCanceled in interface ProgressListener

setNote

public void setNote(java.lang.String note)
Specified by:
setNote in interface ProgressListener

setProgress

public void setProgress(double v)
Progress reported here is interpreted as the percentage of the subtask complete, which we translate into the percentage of the overall task complete.

Specified by:
setProgress in interface ProgressListener