All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.chart.FileDataSource

java.lang.Object
   |
   +----jclass.chart.InputStreamDataSource
           |
           +----jclass.chart.FileDataSource

public class FileDataSource
extends InputStreamDataSource
Creates an InputStreamDataSource from a file.

Properties

Name Description
DataInterpretation The DataInterpretation property is responsible for what format is the data in.
DataItem The DataItem property specifies a data item from the data source.
Name The Name property defines the name of the data object. Default value is null.
NumRows The NumRows property of the data source, which specifies the number of rows of data available.
PointLabels The value of the PointLabels property. The PointLabels property is an indexed property that contains a list of point labels provided by the data source.
Row The Row property specifies an entire row of data items.
SeriesLabel The value of the SeriesLabel property. The SeriesLabel property defines the label that is associated with a data series. The SeriesLabel can be unparsed JCString text, whereas SeriesName is a name used for retrieving data series.
SeriesName The value of the SeriesName property. The SeriesName property is a string associated with a row in a data source. It is used by ChartDataView as the name for a data series.


Constructor Index

 o FileDataSource(File)
 o FileDataSource(String)

Constructors

 o FileDataSource
 public FileDataSource(String fname) throws FileNotFoundException, IOException
Parameters:
fname - The name of the file to be used.
Throws: FileNotFoundException
Thrown if the file isn't there
Throws: IOException
Thrown if some other sort of i/o problem is encountered.
 o FileDataSource
 public FileDataSource(File f) throws FileNotFoundException, IOException
Parameters:
f - A File object representing the file to be opened.
Throws: FileNotFoundException
Thrown if the file isn't there
Throws: IOException
Thrown if some other sort of i/o problem is encountered.
See Also:
File

All Packages  Class Hierarchy  This Package  Previous  Next  Index