public abstract class PointDataSource extends FilesDataSource
Modifier and Type | Class and Description |
---|---|
static class |
PointDataSource.PlotModelSelectionComponent
Class PlotModelSelectionComponent holds plot (layout) model.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
fieldsDescription
A cached version of the html description of the fields.
|
static java.lang.String |
POINT_DATA
Identifier for point data
|
static java.lang.String |
PROP_FIRSTGUESS
property id for the first guess field
|
static java.lang.String |
PROP_GRID_GAIN
dataselection property for grid gain
|
static java.lang.String |
PROP_GRID_NUMPASSES
dataselection property for grid passes
|
static java.lang.String |
PROP_GRID_PARAM
This gets set on the data choice when we are creating a
point ob field intended to be used for making a grid
|
static java.lang.String |
PROP_GRID_SEARCH_RADIUS
dataselection property for grid search radius
|
static java.lang.String |
PROP_GRID_UNIT
dataselection property for grid y spacing
|
static java.lang.String |
PROP_GRID_X
dataselection property for grid x spacing
|
static java.lang.String |
PROP_GRID_Y
dataselection property for grid x spacing
|
static java.lang.String |
PROP_STATIONMODELNAME
station model name property
|
static java.lang.String |
PROP_STATIONMODELSCALE |
static java.lang.String |
STATION_DATA
Identifier for station data
|
static java.lang.String |
STATION_PLOT
Identifier for a station plot
|
adapters, oldSourceFromBundles, sources
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YES
DATAPATH_DATE_FORMAT, DATAPATH_DATE_PATTERN, 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_TIMESTRIDE, PROP_TITLE
Constructor and Description |
---|
PointDataSource()
Default constructor
|
PointDataSource(DataSourceDescriptor descriptor,
java.util.List sources,
java.lang.String name,
java.util.Hashtable properties)
Create a new PointDataSource
|
PointDataSource(DataSourceDescriptor descriptor,
java.lang.String source,
java.lang.String description,
java.util.Hashtable properties)
Create a PointDataSource
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertiesTabs(javax.swing.JTabbedPane tabbedPane)
Add the Grid Fields component to the properties tab
|
boolean |
applyProperties()
apply the properties
|
boolean |
canAddCurrentName(DataChoice dataChoice)
not sure what this does
|
protected boolean |
canCreateGrid(visad.RealType type)
Is it ok to create a grid field for the parameter with the given real type
|
boolean |
canDoAllLevels()
Cannot do all levels!
|
void |
doMakeDataChoices()
Make the
DataChoices for this DataSource . |
void |
doRemove()
Gets called by the
DataManager when this DataSource has
been removed. |
double |
getBinRoundTo()
Get the BinRoundTo property.
|
double |
getBinWidth()
Get the BinWidth property.
|
protected visad.Data |
getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
java.util.Hashtable requestProperties)
Get the data represented by this class.
|
java.lang.String |
getDataName()
Get the name of this data.
|
protected java.util.List |
getDefaultLevels()
Get a list of selected levels.
|
protected DataChoice |
getDescriptionDataChoice()
Get the data choice to use for the description
|
java.lang.String |
getFullDescription()
Override the base class method to add on the listing of the
param names in the point tuple.
|
float |
getGridGain()
Get the grid gain property.
|
float |
getGridSearchRadius()
Get the search radius property
|
java.lang.String |
getGridUnit()
Get the GridUnit property.
|
float |
getGridX()
Get the GridX property.
|
float |
getGridY()
Get the GridY property.
|
boolean |
getMakeGridFields()
Get the MakeGridFields property.
|
int |
getNumGridPasses()
Get the NumGridPasses property.
|
protected java.util.List |
getPointCategories()
Get the default categories for data from PointDataSource-s
|
void |
getPropertiesComponents(java.util.List comps)
add to properties
|
protected visad.FieldImpl |
getSample(DataChoice dataChoice)
Read a sample of the data.
|
protected java.lang.String |
getSource(DataChoice dataChoice)
Get the file or url source path from the given data choice.
|
protected void |
init()
Initialize this object
|
protected void |
initDataSelectionComponents(java.util.List<DataSelectionComponent> components,
DataChoice dataChoice)
Add the GridParameters for the field selector
|
protected ucar.unidata.data.point.PointDataSource.GridParameters |
initGridParameters()
Allow subclasses to initialize a GridParameters
|
protected void |
makeDerivedDataChoices(java.util.List dataChoices)
Override this method so we don't make any derived data choices from the grid fields
|
protected void |
makeFieldDescription(visad.FieldImpl fi)
Create e field description from the field
|
protected abstract visad.FieldImpl |
makeObs(DataChoice dataChoice,
DataSelection subset,
ucar.unidata.geoloc.LatLonRect bbox)
Make the observation data
|
void |
reloadData()
Reload the data
|
void |
setBinRoundTo(double value)
Set the BinRoundTo property.
|
void |
setBinWidth(double value)
Set the BinWidth property.
|
void |
setGridGain(float value)
Set the grid gain property.
|
void |
setGridSearchRadius(float value)
Set the grid search radius
|
void |
setGridUnit(java.lang.String value)
Set the GridY property.
|
void |
setGridX(float value)
Set the GridX property.
|
void |
setGridY(float value)
Set the GridY property.
|
void |
setMakeGridFields(boolean value)
Set the MakeGridFields property.
|
void |
setNumGridPasses(int value)
Set the NumGridPasses property.
|
void |
setRoundToFromComboBox(TwoFacedObject tfo)
Set the property
|
void |
setSource(java.lang.String value)
Set the source property (filename or URL).
|
void |
setWidthFromComboBox(TwoFacedObject tfo)
set the property
|
protected boolean |
shouldCache(DataChoice dataChoice,
visad.Data data)
See if this DataSource should cache or not
|
equals, getDataFileExtension, getDataPaths, getFilePath, getInputStreams, getLocationsForPolling, getPartialDescription, getSource, getSources, haveSources, initAfterCreation, initAfterUnpersistence, initWithPollingInfo, isFileBased, newFilesFromPolling, processDataFilename, propertiesChanged, reloadData, saveDataToLocalDisk, setNewFiles, setSources, sourcesChanged, updateState
addActions, addDataChangeListener, addDataChoice, addReloadTab, applyFieldMask, beginWritingDataToLocalDisk, canCacheDataToDisk, canChangeData, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, canPoll, canSaveDataToLocalDisk, canShowParameter, checkForInitAfterUnPersistence, clearCachedData, clearFileCache, clearTimes, convertSourceFile, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeDateTimes, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, endWritingDataToLocalDisk, expandIfNeeded, findDataChoice, findDataChoices, flushCache, getAbsoluteDateTimes, getActions, getAlias, getAllDateTimes, getAllDateTimes, getAllLevels, getAllLevels, getAllTimesForTimeDriver, getCache, getCache, getCacheClearDelay, getCacheDataToDisk, getCompositeDataChoices, getData, getData, getDataCachePath, getDataChangeListeners, getDataChoices, getDataContext, getDataInner, getDataIsEditable, getDataPrefix, getDataSelection, getDataSelectionComponents, getDataSource, getDateTimes, getDateTimeSelection, getDefaultSave, getDescription, getDescriptor, getErrorMessage, getEverChangedName, getExtraGeoSelectionComponent, getExtraTimesComponent, getFileFilterForPolling, getid, getIdv, getInError, getLocalDirectory, getLocationForPolling, getMostRecentFiles, getName, getNameForDataSource, getNeedToShowErrorToUser, getNextId, getOutstandingGetDataCalls, getPassword, getPathsThatCanBeRelative, getPollingInfo, getProperties, getPropertiesHeader, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getRelativePaths, getSampleDataProjection, getSaveDataFileLabel, getSelectedDateTimes, getSelectedDateTimes, getTimesFromDataSelection, getTmpPaths, getTypeName, getUserName, handlePropertiesAction, hasPollingInfo, holdsDateTimes, holdsIndices, identifiedBy, identifiedByName, incrOutstandingGetDataCalls, initAfter, initDataChoice, initFromXml, isPolling, loadFieldMask, loadFieldMask, loadLatestFile, logException, logException, makeSaveLocalActions, newFileFromPolling, notifyDataChange, putCache, putCache, reloadProperties, removeCache, removeDataChangeListener, removeDataChoice, removeProperty, replaceDataChoice, resetTmpState, saveDataToLocalDisk, saveDataToLocalDisk, selectTimesFromList, setAlias, setAskToUpdate, setCacheClearDelay, setCacheDataToDisk, setDataEditableStrings, setDataIsEditable, setDataIsRelative, setDataRelativeStrings, setDataSelection, setDateTimeSelection, setDefaultSave, setDescription, setDescriptor, setDirectory, setEverChangedName, setInError, setInError, setInError, setName, setObjectProperties, setObjectProperty, setPassword, setPollingInfo, setPollLocation, setProperties, setProperty, setProperty, setRelativePaths, setTemplateName, setTmpPaths, setUserName, shouldCache, showPasswordDialog, showPropertiesDialog, showPropertiesDialog, showPropertiesDialog, showWaitDialog, tick, toString, toStringTruncated, updateDetailsText, writeFieldMaskFile, writeFieldMaskFile
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUniqueId
public static final java.lang.String PROP_FIRSTGUESS
public static final java.lang.String PROP_GRID_X
public static final java.lang.String PROP_GRID_Y
public static final java.lang.String PROP_GRID_UNIT
public static final java.lang.String PROP_GRID_NUMPASSES
public static final java.lang.String PROP_GRID_GAIN
public static final java.lang.String PROP_GRID_SEARCH_RADIUS
public static final java.lang.String PROP_GRID_PARAM
public static final java.lang.String PROP_STATIONMODELNAME
public static final java.lang.String PROP_STATIONMODELSCALE
public static final java.lang.String STATION_DATA
public static final java.lang.String POINT_DATA
public static final java.lang.String STATION_PLOT
protected java.lang.String fieldsDescription
public PointDataSource() throws visad.VisADException
visad.VisADException
- problem creating VisAD data objectpublic PointDataSource(DataSourceDescriptor descriptor, java.lang.String source, java.lang.String description, java.util.Hashtable properties) throws visad.VisADException
descriptor
- descriptor for the DataSourcesource
- file location or URLdescription
- description of dataproperties
- extra propertiesvisad.VisADException
public PointDataSource(DataSourceDescriptor descriptor, java.util.List sources, java.lang.String name, java.util.Hashtable properties) throws visad.VisADException
descriptor
- data source descriptorsources
- List of sources of data (filename/URL)name
- The name to useproperties
- extra properties for initializationvisad.VisADException
- problem creating the dataprotected void init() throws visad.VisADException
visad.VisADException
- problem during initializationprotected void initDataSelectionComponents(java.util.List<DataSelectionComponent> components, DataChoice dataChoice)
initDataSelectionComponents
in class DataSourceImpl
components
- compsdataChoice
- for this dataprotected ucar.unidata.data.point.PointDataSource.GridParameters initGridParameters()
public boolean canAddCurrentName(DataChoice dataChoice)
canAddCurrentName
in interface DataSource
canAddCurrentName
in class DataSourceImpl
dataChoice
- datachoicepublic void getPropertiesComponents(java.util.List comps)
getPropertiesComponents
in class DataSourceImpl
comps
- compspublic void addPropertiesTabs(javax.swing.JTabbedPane tabbedPane)
addPropertiesTabs
in class DataSourceImpl
tabbedPane
- properties tabpublic void setRoundToFromComboBox(TwoFacedObject tfo)
tfo
- value from combo box_public void setWidthFromComboBox(TwoFacedObject tfo)
tfo
- value_public boolean applyProperties()
applyProperties
in class DataSourceImpl
protected boolean canCreateGrid(visad.RealType type)
type
- the typeprotected visad.FieldImpl getSample(DataChoice dataChoice) throws java.lang.Exception
dataChoice
- The data choicejava.lang.Exception
- On badnesspublic void reloadData()
reloadData
in interface DataSource
reloadData
in class FilesDataSource
public void doMakeDataChoices()
DataChoices
for this DataSource
.doMakeDataChoices
in class DataSourceImpl
protected java.lang.String getSource(DataChoice dataChoice)
dataChoice
- The data choiceprotected java.util.List getPointCategories()
public java.lang.String getDataName()
protected boolean shouldCache(DataChoice dataChoice, visad.Data data)
shouldCache
in class DataSourceImpl
dataChoice
- The data choice we got this data fromdata
- Data to cacheprotected visad.Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException
getDataInner
in class DataSourceImpl
dataChoice
- choice for datacategory
- category of datadataSelection
- subselection propertiesrequestProperties
- additional selection properties (not used here)java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorprotected void makeDerivedDataChoices(java.util.List dataChoices)
makeDerivedDataChoices
in class DataSourceImpl
dataChoices
- base list of choicespublic java.lang.String getFullDescription()
getFullDescription
in interface DataSource
getFullDescription
in class FilesDataSource
protected DataChoice getDescriptionDataChoice()
protected void makeFieldDescription(visad.FieldImpl fi)
fi
- field to usepublic void doRemove()
DataManager
when this DataSource has
been removed.doRemove
in interface DataSource
doRemove
in class FilesDataSource
protected abstract visad.FieldImpl makeObs(DataChoice dataChoice, DataSelection subset, ucar.unidata.geoloc.LatLonRect bbox) throws java.lang.Exception
dataChoice
- choice describing the datasubset
- subselection (not used)bbox
- The bounding boxjava.lang.Exception
- problem (VisAD or IO)protected java.util.List getDefaultLevels()
public void setSource(java.lang.String value)
setSource
in class FilesDataSource
value
- 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()
public void setGridX(float value)
value
- The new value for GridXpublic float getGridX()
public void setGridY(float value)
value
- The new value for GridYpublic float getGridY()
public void setGridUnit(java.lang.String value)
value
- The new value for GridYpublic java.lang.String getGridUnit()
public void setNumGridPasses(int value)
value
- The new value for NumGridPassespublic int getNumGridPasses()
public void setGridGain(float value)
value
- The new value for gainpublic float getGridGain()
public void setGridSearchRadius(float value)
value
- The new value for search radiuspublic float getGridSearchRadius()
public void setMakeGridFields(boolean value)
value
- The new value for MakeGridFieldspublic boolean getMakeGridFields()
public boolean canDoAllLevels()
canDoAllLevels
in interface DataSource
canDoAllLevels
in class DataSourceImpl