|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaitools.jiffle.runtime.AbstractProgressListener
public abstract class AbstractProgressListener
A simple progress listener base. Extend this and provide your own start(),
update(long numPixelsDone) and finish() methods.
| Field Summary | |
|---|---|
protected long |
taskSize
The total number of pixels to process. |
protected long |
updateInterval
The number of pixels processed between each call to the listener. |
protected Double |
updateProp
The proportion of pixels processed between each call to the listener. |
| Constructor Summary | |
|---|---|
AbstractProgressListener()
Creates a new instance with an update interval of 1. |
|
| Method Summary | |
|---|---|
long |
getUpdateInterval()
Gets the update interval. |
void |
setTaskSize(long numPixels)
Called by the runtime object at the start of processing to set this listener's task size field. |
void |
setUpdateInterval(double propPixels)
Sets the update interval expressed a proportion of the total number of pixels. |
void |
setUpdateInterval(long numPixels)
Sets the update interval. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jaitools.jiffle.runtime.JiffleProgressListener |
|---|
finish, start, update |
| Field Detail |
|---|
protected long updateInterval
protected Double updateProp
protected long taskSize
| Constructor Detail |
|---|
public AbstractProgressListener()
| Method Detail |
|---|
public void setUpdateInterval(long numPixels)
setUpdateInterval in interface JiffleProgressListenernumPixels - number of pixels processed between each call to the listenerpublic void setUpdateInterval(double propPixels)
setUpdateInterval in interface JiffleProgressListenerpropPixels - proportion of pixels processed between each call to the listenerpublic long getUpdateInterval()
getUpdateInterval in interface JiffleProgressListenerpublic void setTaskSize(long numPixels)
setTaskSize in interface JiffleProgressListenernumPixels - task size as number of pixels to process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||