edu.psu.geovista.app.parvis.file
Class STFDataSet
java.lang.Object
edu.psu.geovista.app.parvis.model.SimpleParallelSpaceModel
edu.psu.geovista.app.parvis.file.STFDataSet
- All Implemented Interfaces:
- ParallelSpaceModel
- public class STFDataSet
- extends SimpleParallelSpaceModel
A Simple file parser for reading STF (Simple Table Fomrat) files from URLs.
The STF File format is defined as follows:
# test.stf
# Comments have # in the first column.
# Type the number of fields, on a line by itself.
3
# Then type field names and types. Field names must not contain
# spaces.
#
PersonName String
Age Integer
HourlyWage Real
#
# Data type is case-insensitive.
# Default data delimiters are tabs and spaces.
# Here's the data, tab-delimited. Notice that the data columns are
# in the order they are listed above.
#
Joe 23 5.75
Mary 18 4.75
Fred 54 100.00
Ginger 48 100.00
#
# Nothing special is required to end the file.
Once the file is read and parsed, the data can be accessed with the methods
defined in the ParallelSpaceModel interface.
- Version:
- 0.1
- Author:
- Flo Ledermann flo@subnet.at
|
Constructor Summary |
STFDataSet(java.lang.Object[] dataSet)
Creates a new STFDataSet with the given url. |
| Methods inherited from class edu.psu.geovista.app.parvis.model.SimpleParallelSpaceModel |
addChangeListener, addRecord, addRecord, getAxisLabel, getMaxValue, getMinValue, getNumDimensions, getNumRecords, getRecordLabel, getValue, getValueLabel, getValueLabels, getValues, initNumDimensions, removeChangeListener, setAxisLabel, setAxisLabels, setValueLabel, setValueLabels |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STFDataSet
public STFDataSet(java.lang.Object[] dataSet)
- Creates a new STFDataSet with the given url. The content is not read until
readContents() is called.
addProgressListener
public void addProgressListener(ProgressListener l)
removeProgressListener
public void removeProgressListener(ProgressListener l)
fireProgressEvent
public void fireProgressEvent(ProgressEvent e)
main
public static void main(java.lang.String[] args)
- Main method for testing purposes.
Copyright © 1996-2003 GeoVista Center. All Rights Reserved.