public abstract class AbstractProgressListener extends Object implements JiffleProgressListener
start()
,
update(long numPixelsDone)
and finish()
methods.Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
AbstractProgressListener()
Creates a new instance with an update interval of 1.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finish, start, update
protected long updateInterval
protected Double updateProp
protected long taskSize
public AbstractProgressListener()
public void setUpdateInterval(long numPixels)
setUpdateInterval
in interface JiffleProgressListener
numPixels
- number of pixels processed between each call to the listenerpublic void setUpdateInterval(double propPixels)
setUpdateInterval
in interface JiffleProgressListener
propPixels
- proportion of pixels processed between each call to the listenerpublic long getUpdateInterval()
getUpdateInterval
in interface JiffleProgressListener
public void setTaskSize(long numPixels)
setTaskSize
in interface JiffleProgressListener
numPixels
- task size as number of pixels to processCopyright © 2006–2018 GeoSolutions. All rights reserved.