Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

edu.stanford.genetics.treeview.model
Interface ProgressTrackable  view ProgressTrackable download ProgressTrackable.java

All Known Implementing Classes:
TVModelLoader

interface ProgressTrackable

The idea here is that objects which implement this interface can have their progress depicted by a progress bar. You could define a specialized timer class which kept pointers to a ProgressTrackable and a JProgressBar, and every few hundred milliseconds made sure that the JProgressBar reflected the ProgressTrackable. Asynchronously, you could have another thread change the values in the ProgressTrackable.


Method Summary
 int getLength()
          Getter for length
 int getValue()
          Getter for value
 void incrValue(int i)
          increments value
 void setLength(int length)
          Setter for length
 void setValue(int value)
          Setter for value
 

Method Detail

setLength

public void setLength(int length)
Setter for length


getLength

public int getLength()
Getter for length


setValue

public void setValue(int value)
Setter for value


getValue

public int getValue()
Getter for value


incrValue

public void incrValue(int i)
increments value