marvin.thread
Class MarvinThread

java.lang.Object
  extended by marvin.thread.MarvinThread
All Implemented Interfaces:
java.lang.Runnable

public class MarvinThread
extends java.lang.Object
implements java.lang.Runnable

Thread to process a segment or an entire image.


Constructor Summary
MarvinThread(MarvinImagePlugin plg, MarvinImage imgIn, MarvinImage imgOut, MarvinImageMask mask)
          Constructor.
 
Method Summary
 void addThreadListener(MarvinThreadListener l)
          Set a thread listener.
 void run()
          Thread´s run method.
 void start()
          Starts the thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarvinThread

public MarvinThread(MarvinImagePlugin plg,
                    MarvinImage imgIn,
                    MarvinImage imgOut,
                    MarvinImageMask mask)
Constructor.

Parameters:
plg - plugin associated with this thread.
imgIn - plug-in input image.
imgOut - plug-in output image.
mask - image mask.
Method Detail

start

public void start()
Starts the thread.


addThreadListener

public void addThreadListener(MarvinThreadListener l)
Set a thread listener. TODO - Support a list of listeners.

Parameters:
a_listener - - listener object.

run

public void run()
Thread´s run method.

Specified by:
run in interface java.lang.Runnable