|
||||||||||
| 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
public abstract class PointDataSource
A data source for point data
| Field Summary | |
|---|---|
protected String |
fieldsDescription
A cached version of the html description of the fields. |
static String |
POINT_DATA
Identifier for point data |
static String |
PROP_STATIONMODELNAME
station model name property |
static String |
STATION_DATA
Identifier for station data |
static String |
STATION_PLOT
Identifier for a 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 | |
|---|---|
PointDataSource()
Default constructor |
|
PointDataSource(DataSourceDescriptor descriptor,
List sources,
String name,
Hashtable properties)
Create a new PointDataSource |
|
PointDataSource(DataSourceDescriptor descriptor,
String source,
String description,
Hashtable properties)
Create a PointDataSource |
|
| Method Summary | |
|---|---|
boolean |
applyProperties()
apply the properties |
void |
doMakeDataChoices()
Make the DataChoices for this DataSource. |
double |
getBinRoundTo()
Get the BinRoundTo property. |
double |
getBinWidth()
Get the BinWidth property. |
protected Data |
getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
Get the data represented by this class. |
String |
getDataName()
Get the name of this data. |
protected DataChoice |
getDescriptionDataChoice()
Get the data choice to use for the description |
String |
getFullDescription()
Override the base class method to add on the listing of the param names in the point tuple. |
protected List |
getPointCategories()
Get the default categories for data from PointDataSource-s |
void |
getPropertiesComponents(List comps)
add to properties |
protected String |
getSource(DataChoice dataChoice)
Get the file or url source path from the given data choice. |
protected void |
init()
Initialize this object |
protected void |
makeFieldDescription(FieldImpl fi)
Create e field description from the field |
protected abstract FieldImpl |
makeObs(DataChoice dataChoice,
DataSelection subset,
ucar.unidata.geoloc.LatLonRect bbox)
Make the observation data |
void |
setBinRoundTo(double value)
Set the BinRoundTo property. |
void |
setBinWidth(double value)
Set the BinWidth property. |
void |
setRoundToFromComboBox(TwoFacedObject tfo)
Set the property |
void |
setSource(String value)
Set the source property (filename or URL). |
void |
setWidthFromComboBox(TwoFacedObject tfo)
set the property |
| Methods inherited from class ucar.unidata.data.FilesDataSource |
|---|
doRemove, equals, 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, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ucar.unidata.data.DataSource |
|---|
getUniqueId |
| Field Detail |
|---|
public static final String PROP_STATIONMODELNAME
public static final String STATION_DATA
public static final String POINT_DATA
public static final String STATION_PLOT
protected String fieldsDescription
| Constructor Detail |
|---|
public PointDataSource()
throws VisADException
VisADException - problem creating VisAD data object
public PointDataSource(DataSourceDescriptor descriptor,
String source,
String description,
Hashtable properties)
throws VisADException
descriptor - descriptor for the DataSourcesource - file location or URLdescription - description of dataproperties - extra properties
VisADException
public PointDataSource(DataSourceDescriptor descriptor,
List sources,
String name,
Hashtable properties)
throws VisADException
descriptor - data source descriptorsources - List of sources of data (filename/URL)name - The name to useproperties - extra properties for initialization
VisADException - problem creating the data| Method Detail |
|---|
protected void init()
throws VisADException
VisADException - problem during initializationpublic void getPropertiesComponents(List comps)
getPropertiesComponents in class DataSourceImplcomps - compspublic void setRoundToFromComboBox(TwoFacedObject tfo)
tfo - value from combo box_public void setWidthFromComboBox(TwoFacedObject tfo)
tfo - value_public boolean applyProperties()
applyProperties in class DataSourceImplpublic void doMakeDataChoices()
DataChoices for this DataSource.
doMakeDataChoices in class DataSourceImplprotected String getSource(DataChoice dataChoice)
dataChoice - The data choice
protected List getPointCategories()
public String getDataName()
protected Data getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
throws VisADException,
RemoteException
getDataInner in class DataSourceImpldataChoice - choice for datacategory - category of datadataSelection - subselection propertiesrequestProperties - additional selection properties (not used here)
RemoteException - Java RMI error
VisADException - VisAD Errorpublic String getFullDescription()
getFullDescription in interface DataSourcegetFullDescription in class FilesDataSourceprotected DataChoice getDescriptionDataChoice()
protected void makeFieldDescription(FieldImpl fi)
fi - field to use
protected abstract FieldImpl makeObs(DataChoice dataChoice,
DataSelection subset,
ucar.unidata.geoloc.LatLonRect bbox)
throws Exception
dataChoice - choice describing the datasubset - subselection (not used)bbox - The bounding box
Exception - problem (VisAD or IO)public void setSource(String value)
setSource in class FilesDataSourcevalue - data sourcepublic void setBinWidth(double value)
value - The new value for BinWidthpublic double getBinWidth()
public void setBinRoundTo(double value)
value - The new value for BinRoundTopublic double getBinRoundTo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||