edu.psu.geovista.data.geog
Class ShapeFileDataReader

java.lang.Object
  extended byedu.psu.geovista.data.geog.ShapeFileDataReader
All Implemented Interfaces:
java.io.Serializable

public class ShapeFileDataReader
extends java.lang.Object
implements java.io.Serializable

Takes a file name and returns an Object[] with: Object[0] = names of variables 0bject[1] = data (double[], int[], or String[]) 0bject[1] = data (double[], int[], or String[]) ... Object[n-1] = the shapefile data also see DBaseFile, ShapeFile

See Also:
Serialized Form

Field Summary
static java.lang.String COMMAND_DATA_SET_MADE
           
static int FILE_TYPE_CSV
           
static int FILE_TYPE_DBF
           
 
Constructor Summary
ShapeFileDataReader()
           
 
Method Summary
 void addActionListener(java.awt.event.ActionListener l)
          implements ActionListener
 java.lang.Object[] convertShpToShape(java.lang.Object[] dataIn)
           
protected  void fireActionPerformed(java.lang.String command)
          Notify all listeners that have registered interest for notification on this event type.
 edu.psu.geovista.data.geog.DataSetForApps getDataForApps()
           
 java.lang.Object[] getDataSet()
           
 java.lang.String getFileName()
           
 void removeActionListener(java.awt.event.ActionListener l)
          removes an ActionListener from the button
 void setDataForApps(edu.psu.geovista.data.geog.DataSetForApps dataForApps)
           
 void setFileName(java.lang.String fileName)
           
 void setFileName(java.lang.String fileName, int fileType)
           
 void setFileNameCSV(java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMAND_DATA_SET_MADE

public static final java.lang.String COMMAND_DATA_SET_MADE
See Also:
Constant Field Values

FILE_TYPE_DBF

public static final int FILE_TYPE_DBF
See Also:
Constant Field Values

FILE_TYPE_CSV

public static final int FILE_TYPE_CSV
See Also:
Constant Field Values
Constructor Detail

ShapeFileDataReader

public ShapeFileDataReader()
Method Detail

setDataForApps

public void setDataForApps(edu.psu.geovista.data.geog.DataSetForApps dataForApps)

getDataForApps

public edu.psu.geovista.data.geog.DataSetForApps getDataForApps()

getDataSet

public java.lang.Object[] getDataSet()

setFileName

public void setFileName(java.lang.String fileName)

setFileNameCSV

public void setFileNameCSV(java.lang.String fileName)

setFileName

public void setFileName(java.lang.String fileName,
                        int fileType)

getFileName

public java.lang.String getFileName()

convertShpToShape

public java.lang.Object[] convertShpToShape(java.lang.Object[] dataIn)

addActionListener

public void addActionListener(java.awt.event.ActionListener l)
implements ActionListener


removeActionListener

public void removeActionListener(java.awt.event.ActionListener l)
removes an ActionListener from the button


fireActionPerformed

protected void fireActionPerformed(java.lang.String command)
Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.

See Also:
EventListenerList


Copyright © 1996-2003 GeoVista Center. All Rights Reserved.