Class graph.LoadData
All Packages Class Hierarchy This Package Previous Next Index
Class graph.LoadData
java.lang.Object
|
+----java.lang.Thread
|
+----graph.LoadData
- public class LoadData
- extends Thread
This class will load data (as a seperate thread) into a DataSet
given a URL.
- Version:
- 1.8, 1996/10/15 04:57:43
- Author:
- Leigh Brookshaw
-
NUMERIC
- Flag used to specify the type of data to be loaded.
-
OBJECT
- Flag used to specify the type of data to be loaded.
-
LoadData()
- Instantiate the class
-
LoadData(DataSet)
- Instantiate the class
-
finished()
-
-
getArray()
-
-
getDataSet()
-
-
length()
-
-
loadArray(URL)
- Start loading the data into an Array.
-
loadArray(URL, Object)
- Start loading the data into an array.
-
loadDataSet(URL)
- Start loading the data into a/the DataSet.
-
loadDataSet(URL, Object)
- Start loading the data into a/the DataSet.
-
run()
- The method to be run as a seperate thread.
-
started()
-
NUMERIC
public final int NUMERIC
- Flag used to specify the type of data to be loaded. That is purely
numerical.
OBJECT
public final int OBJECT
- Flag used to specify the type of data to be loaded. That is
can contain non-numerical data.
LoadData
public LoadData()
- Instantiate the class
LoadData
public LoadData(DataSet d)
- Instantiate the class
- Parameters:
- d - DataSet to load the data into.
loadDataSet
public DataSet loadDataSet(URL file)
- Start loading the data into a/the DataSet.
- Parameters:
- file - URL of data file
- Returns:
- The DataSet that the data will be loaded into
loadArray
public void loadArray(URL file)
- Start loading the data into an Array.
- Parameters:
- file - URL of data file
loadDataSet
public DataSet loadDataSet(URL file,
Object drawable)
- Start loading the data into a/the DataSet.
- Parameters:
- file - URL of data file
- drawable - An object that can be drawn to that will indicate
that data is loading. eg. An applet or the Graph2D canvas.
loadArray
public void loadArray(URL file,
Object drawable)
- Start loading the data into an array.
- Parameters:
- file - URL of data file
- drawable - An object that can be drawn to that will indicate
that data is loading. eg. An applet or the Graph2D canvas.
run
public void run()
- The method to be run as a seperate thread. It does all the work
- Overrides:
- run in class Thread
getDataSet
public DataSet getDataSet()
- Returns:
- The DataSet that is being filled.
getArray
public synchronized double[] getArray()
- Returns:
- The loaded data array.
started
public boolean started()
- Returns:
- true if the data has started loading.
finished
public boolean finished()
- Returns:
- true if the data has finished loading.
length
public int length()
- Returns:
- The current size of the data array.
All Packages Class Hierarchy This Package Previous Next Index