Class CalcProgressListener

  extended by java.lang.Thread
      extended by org.opensha.sra.gui.portfolioeal.CalcProgressListener
All Implemented Interfaces:
ActionListener, Runnable, EventListener

public class CalcProgressListener
extends Thread
implements ActionListener

This class is used to create a progress bar for calculations.

Jeremy Leakakos

Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
Field Summary
Fields inherited from class java.lang.Thread
Constructor Summary
CalcProgressListener(Asset asset)
          The constructor for the listener.
Method Summary
 void actionPerformed(ActionEvent e)
          The actionPerformed method for this listener.
 void run()
          The run method for this thread subclass.
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public CalcProgressListener(Asset asset)
The constructor for the listener. It creates and displays a progress bar.

asset - The asset that is having its EAL calculated
Method Detail


public void actionPerformed(ActionEvent e)
The actionPerformed method for this listener. It looks at the asset for the total and current ruptures, and updates the progress bar based on these numbers. It uses a timer to synchronize its firing.

Specified by:
actionPerformed in interface ActionListener


public void run()
The run method for this thread subclass. It creates and starts a timer with the objects actionListener.

Specified by:
run in interface Runnable
run in class Thread