tnt.gui
Class MetricsCalculation.ProgressThread

java.lang.Object
  extended by java.lang.Thread
      extended by tnt.gui.MetricsCalculation.ProgressThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
MetricsCalculation

 class MetricsCalculation.ProgressThread
extends java.lang.Thread

Encapsulates a thread to display a modal instance of ProgressDialog.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MetricsCalculation.ProgressThread()
           
 
Method Summary
 void run()
          Starts the timer to trigger progress updates, and displays the progress dialog.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetricsCalculation.ProgressThread

public MetricsCalculation.ProgressThread()
Method Detail

run

public void run()
Starts the timer to trigger progress updates, and displays the progress dialog. Becuase the dialog is modal, the call to setVisible() must occur in a separate thread.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread
See Also:
Thread.run()


Copyright © 2006 Steven Castellucci and Scott MacKenzie. All Rights Reserved.