|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.lang.Thread
org.mbari.siam.moos.utils.chart.graph.LoadData
public class LoadData
This class will load data (as a seperate thread) into a DataSet given a URL.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
int |
NUMERIC
Flag used to specify the type of data to be loaded. |
int |
OBJECT
Flag used to specify the type of data to be loaded. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
LoadData()
Instantiate the class |
|
LoadData(DataSet d)
Instantiate the class |
|
| Method Summary | |
|---|---|
boolean |
finished()
|
double[] |
getArray()
|
DataSet |
getDataSet()
|
int |
length()
|
void |
loadArray(java.net.URL file)
Start loading the data into an Array. |
void |
loadArray(java.net.URL file,
java.lang.Object drawable)
Start loading the data into an array. |
DataSet |
loadDataSet(java.net.URL file)
Start loading the data into a/the DataSet. |
DataSet |
loadDataSet(java.net.URL file,
java.lang.Object drawable)
Start loading the data into a/the DataSet. |
void |
run()
The method to be run as a seperate thread. |
boolean |
started()
|
| 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 |
| Field Detail |
|---|
public final int NUMERIC
public final int OBJECT
| Constructor Detail |
|---|
public LoadData()
public LoadData(DataSet d)
d - DataSet to load the data into.| Method Detail |
|---|
public DataSet loadDataSet(java.net.URL file)
file - URL of data file
public void loadArray(java.net.URL file)
file - URL of data file
public DataSet loadDataSet(java.net.URL file,
java.lang.Object drawable)
file - URL of data filedrawable - An object that can be drawn to that will indicate
that data is loading. eg. An applet or the Graph2D canvas.
public void loadArray(java.net.URL file,
java.lang.Object drawable)
file - URL of data filedrawable - An object that can be drawn to that will indicate
that data is loading. eg. An applet or the Graph2D canvas.public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic DataSet getDataSet()
public double[] getArray()
public boolean started()
public boolean finished()
public int length()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||