org.jaitools.jiffle.runtime
Class NullProgressListener

java.lang.Object
  extended by org.jaitools.jiffle.runtime.AbstractProgressListener
      extended by org.jaitools.jiffle.runtime.NullProgressListener
All Implemented Interfaces:
JiffleProgressListener

public class NullProgressListener
extends AbstractProgressListener

A no-action progress listener. All methods are empty and getUpdateInterval() returns Long.MAX_VALUE so that the runtime object never bothers calling.

Since:
0.1
Version:
$Id: NullProgressListener.java 1653 2011-06-16 10:23:02Z michael.bedward $
Author:
Michael Bedward

Field Summary
 
Fields inherited from class org.jaitools.jiffle.runtime.AbstractProgressListener
taskSize, updateInterval, updateProp
 
Constructor Summary
NullProgressListener()
           
 
Method Summary
 void finish()
          Called by the runtime object when the task finishes.
 long getUpdateInterval()
          Gets the update interval.
 void start()
          Called by the runtime object when the task starts.
 void update(long numPixels)
          Called by the runtime object at update intervals as specified by either JiffleProgressListener.setUpdateInterval(long) or JiffleProgressListener.setUpdateInterval(double).
 
Methods inherited from class org.jaitools.jiffle.runtime.AbstractProgressListener
setTaskSize, setUpdateInterval, setUpdateInterval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullProgressListener

public NullProgressListener()
Method Detail

start

public void start()
Description copied from interface: JiffleProgressListener
Called by the runtime object when the task starts.


update

public void update(long numPixels)
Description copied from interface: JiffleProgressListener
Called by the runtime object at update intervals as specified by either JiffleProgressListener.setUpdateInterval(long) or JiffleProgressListener.setUpdateInterval(double).

It is important to keep the amount of processing done in this method to a minimum.

Parameters:
numPixels - number of pixels processed

finish

public void finish()
Description copied from interface: JiffleProgressListener
Called by the runtime object when the task finishes.


getUpdateInterval

public long getUpdateInterval()
Gets the update interval.

Specified by:
getUpdateInterval in interface JiffleProgressListener
Overrides:
getUpdateInterval in class AbstractProgressListener
Returns:
Always returns Long.MAX_VALUE which effectively means "don't bother calling me".


Copyright © 2011. All Rights Reserved.