org.limn.data
Class ParsingThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.limn.data.ParsingThread
All Implemented Interfaces:
LimnRenderable, java.lang.Runnable

public class ParsingThread
extends java.lang.Thread
implements LimnRenderable

This class is used to subset data in the LimnFilter object. It is threaded so that it can operate on the data without disrupting movie playback once it has finished subsetting and has written the data out to a file, it then allows itself to update the current graphics rendering by highlighting the selected data


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ParsingThread(LimnEngine l, int i, double x, double y, double x2, double y2, LimnData d, java.lang.String n)
          Constructor needs a limnengine object and index to determine the proper project to base its subsetting on.
 
Method Summary
 void augment(java.awt.Graphics g, int w, int h, int i)
          augment is the method required for the Renderable interface.
 void run()
          run method overrides the Thread class run method, it is invoked when the thread is started this method is where the data is subsetted and written to a file
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParsingThread

public ParsingThread(LimnEngine l,
                     int i,
                     double x,
                     double y,
                     double x2,
                     double y2,
                     LimnData d,
                     java.lang.String n)
Constructor needs a limnengine object and index to determine the proper project to base its subsetting on. the x and y values for the corners of the brush rectangle, the LimnData object and the name of the file to write to
Method Detail

run

public void run()
run method overrides the Thread class run method, it is invoked when the thread is started this method is where the data is subsetted and written to a file
Overrides:
run in class java.lang.Thread

augment

public void augment(java.awt.Graphics g,
                    int w,
                    int h,
                    int i)
augment is the method required for the Renderable interface. if the ParsingThread object is added to the viewer's list of renderable objects this method will be called for each graphics update
Specified by:
augment in interface LimnRenderable