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:
$Revision: 1.1.1.1 $, $Date: 1999/11/15 20:37:48 $.
Author:
Leigh Brookshaw, Daren Stotler

Variable Index

 o NUMERIC
Flag used to specify the type of data to be loaded.
 o OBJECT
Flag used to specify the type of data to be loaded.

Constructor Index

 o LoadData()
Instantiate the class
 o LoadData(DataSet)
Instantiate the class

Method Index

 o finished()
 o getArray()
 o getDataSet()
 o length()
 o loadArray(URL)
Start loading the data into an Array.
 o loadArray(URL, Object)
Start loading the data into an array.
 o loadDataSet(URL)
Start loading the data into a/the DataSet.
 o loadDataSet(URL, Object)
Start loading the data into a/the DataSet.
 o run()
The method to be run as a seperate thread.
 o started()

Variables

 o NUMERIC
 public final int NUMERIC
Flag used to specify the type of data to be loaded. That is purely numerical.

 o OBJECT
 public final int OBJECT
Flag used to specify the type of data to be loaded. That is can contain non-numerical data. Not Implemented

Constructors

 o LoadData
 public LoadData()
Instantiate the class

 o LoadData
 public LoadData(DataSet d)
Instantiate the class

Parameters:
d - DataSet to load the data into.

Methods

 o 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
 o loadArray
 public void loadArray(URL file)
Start loading the data into an Array.

Parameters:
file - URL of data file
 o 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.
 o 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.
 o run
 public void run()
The method to be run as a seperate thread. It does all the work

Overrides:
run in class Thread
 o getDataSet
 public DataSet getDataSet()
Returns:
The DataSet that is being filled.
 o getArray
 public synchronized double[] getArray()
Returns:
The loaded data array.
 o started
 public boolean started()
Returns:
true if the data has started loading.
 o finished
 public boolean finished()
Returns:
true if the data has finished loading.
 o length
 public int length()
Returns:
The current size of the data array.

All Packages  Class Hierarchy  This Package  Previous  Next  Index