|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.data.DataSourceImpl
ucar.unidata.data.FilesDataSource
ucar.unidata.data.point.PointDataSource
ucar.unidata.data.point.TextPointDataSource
public class TextPointDataSource
A data source for point data from a Text file
| Field Summary | |
|---|---|
static String |
PREF_METADATAMAP
Where to write out the saved meta data listing |
| Fields inherited from class ucar.unidata.data.point.PointDataSource |
|---|
fieldsDescription, POINT_DATA, PROP_STATIONMODELNAME, STATION_DATA, STATION_PLOT |
| Fields inherited from class ucar.unidata.data.FilesDataSource |
|---|
adapters, oldSourceFromBundles, sources |
| Fields inherited from class ucar.unidata.data.DataSourceImpl |
|---|
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YES |
| Fields inherited from interface ucar.unidata.data.DataSource |
|---|
MOST_RECENT, ordinalNames, PROP_AUTOCREATEDISPLAY, PROP_BASEDIRECTORY, PROP_CACHEABLE, PROP_DATACHOICENAME, PROP_DISPLAYPROPERTIES, PROP_DOCUMENTLINKS, PROP_FILEPATTERN, PROP_GEOLOCATION, PROP_ICON, PROP_NAME, PROP_POLLINFO, PROP_RESOLVERURL, PROP_SERVICE_HTTP, PROP_SUBPROPERTIES, PROP_TIMELABELS, PROP_TITLE |
| Constructor Summary | |
|---|---|
TextPointDataSource()
Default constructor |
|
TextPointDataSource(DataSourceDescriptor descriptor,
String source,
Hashtable properties)
Create a new TextPointDataSource |
|
| Method Summary | |
|---|---|
void |
addPropertiesTabs(JTabbedPane tabbedPane)
add to properties tab |
void |
applyNames(String line)
_more_ |
boolean |
applyProperties()
apply properties |
void |
applySavedMetaData(List fieldList)
Init the widgets |
void |
changeMetadata()
Show the metadata gui |
void |
deleteMetaData(String key)
Remove the given key from the saved mapping. |
void |
doMakeDataChoices()
_more_ |
boolean |
equals(Object o)
Check to see if this TextPointDataSource is equal to the object in question. |
protected Data |
getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
_more_ |
String |
getGroupVarName()
Get the GroupVarName property. |
String |
getMap()
Get the Map property. |
List |
getMetaDataFields()
Get the MetaDataFields property. |
String |
getParams()
Get the Params property. |
void |
getPropertiesComponents(List comps)
_more_ |
int |
getSkipRows()
Get the SkipRows property. |
protected String |
getSource(DataChoice dataChoice)
_more_ |
int |
hashCode()
Get the hashcode for this object |
static void |
main(String[] args)
test |
protected FieldImpl |
makeObs(DataChoice dataChoice,
DataSelection subset,
ucar.unidata.geoloc.LatLonRect bbox)
Make PointObs from the raw VisAD data |
protected FieldImpl |
makeObs(DataChoice dataChoice,
DataSelection subset,
ucar.unidata.geoloc.LatLonRect bbox,
String trackParam,
boolean sampleIt,
boolean showAttributeGuiIfNeeded)
_more_ |
void |
popupMetaDataMenu(JComponent near)
Show the metadata preference menu |
void |
saveMetaDataMap()
Save the meta data |
void |
setGroupVarName(String value)
Set the GroupVarName property. |
void |
setMap(String value)
Set the Map property. |
void |
setMetaDataFields(List value)
Set the MetaDataFields property. |
void |
setParams(String value)
Set the Params property. |
void |
setSkipRows(int value)
Set the SkipRows property. |
| Methods inherited from class ucar.unidata.data.point.PointDataSource |
|---|
getBinRoundTo, getBinWidth, getDataName, getDescriptionDataChoice, getFullDescription, getPointCategories, init, makeFieldDescription, setBinRoundTo, setBinWidth, setRoundToFromComboBox, setSource, setWidthFromComboBox |
| Methods inherited from class ucar.unidata.data.FilesDataSource |
|---|
doRemove, getDataFileExtension, getDataPaths, getFilePath, getInputStreams, getLocationsForPolling, getPartialDescription, getSource, getSources, haveSources, initAfterCreation, initAfterUnpersistence, initWithPollingInfo, isFileBased, newFilesFromPolling, processDataFilename, propertiesChanged, reloadData, saveDataToLocalDisk, setNewFiles, setSources, sourcesChanged, updateState |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setShareGroup, setSharing, setUniqueId, showSharableDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ucar.unidata.data.DataSource |
|---|
getUniqueId |
| Field Detail |
|---|
public static final String PREF_METADATAMAP
| Constructor Detail |
|---|
public TextPointDataSource()
throws VisADException
VisADException - problem creating the object
public TextPointDataSource(DataSourceDescriptor descriptor,
String source,
Hashtable properties)
throws VisADException
descriptor - data source descriptorsource - source of data (filename/URL)properties - extra properties for initialization
VisADException - problem creating the data| Method Detail |
|---|
protected FieldImpl makeObs(DataChoice dataChoice,
DataSelection subset,
ucar.unidata.geoloc.LatLonRect bbox)
throws Exception
makeObs in class PointDataSourcedataChoice - choice for data (source of data)subset - subsetting parametersbbox - The area subset. May be null.
Exception - problem creating dataprotected String getSource(DataChoice dataChoice)
getSource in class PointDataSourcedataChoice - _more_
protected FieldImpl makeObs(DataChoice dataChoice,
DataSelection subset,
ucar.unidata.geoloc.LatLonRect bbox,
String trackParam,
boolean sampleIt,
boolean showAttributeGuiIfNeeded)
throws Exception
dataChoice - _more_subset - _more_bbox - _more_trackParam - _more_sampleIt - _more_showAttributeGuiIfNeeded - _more_
Exception - _more_
public void changeMetadata()
throws IOException
IOException - On badnesspublic void applyNames(String line)
line - _more_public void deleteMetaData(String key)
key - keypublic void popupMetaDataMenu(JComponent near)
near - The component to show the menu nearpublic void saveMetaDataMap()
public boolean applyProperties()
applyProperties in class PointDataSourcepublic void addPropertiesTabs(JTabbedPane tabbedPane)
addPropertiesTabs in class DataSourceImpltabbedPane - tabpublic void applySavedMetaData(List fieldList)
fieldList - widgetspublic boolean equals(Object o)
equals in class FilesDataSourceo - object in question
public int hashCode()
hashCode in class Objectpublic void doMakeDataChoices()
doMakeDataChoices in class PointDataSourcepublic void getPropertiesComponents(List comps)
getPropertiesComponents in class PointDataSourcecomps - _more_
protected Data getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
throws VisADException,
RemoteException
getDataInner in class PointDataSourcedataChoice - _more_category - _more_dataSelection - _more_requestProperties - _more_
RemoteException - _more_
VisADException - _more_
public static void main(String[] args)
throws Exception
args - args
Exception - On badnesspublic void setMap(String value)
value - The new value for Mappublic String getMap()
public void setParams(String value)
value - The new value for Paramspublic String getParams()
public void setMetaDataFields(List value)
value - The new value for MetaDataFieldspublic List getMetaDataFields()
public void setGroupVarName(String value)
value - The new value for GroupVarNamepublic String getGroupVarName()
public void setSkipRows(int value)
value - The new value for SkipRowspublic int getSkipRows()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||