|
||||||||||
| 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
| Nested Class Summary | |
|---|---|
static class |
PointDataSource.PlotModelSelectionComponent
Class PlotModelSelectionComponent holds plot (layout) model. |
| 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_FIRSTGUESS
property id for the first guess field |
static String |
PROP_GRID_GAIN
dataselection property for grid gain |
static String |
PROP_GRID_NUMPASSES
dataselection property for grid passes |
static 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 String |
PROP_GRID_SEARCH_RADIUS
dataselection property for grid search radius |
static String |
PROP_GRID_UNIT
dataselection property for grid y spacing |
static String |
PROP_GRID_X
dataselection property for grid x spacing |
static String |
PROP_GRID_Y
dataselection property for grid x spacing |
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 |
|---|
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_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 | |
|---|---|
void |
addPropertiesTabs(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(RealType type)
Is it ok to create a grid field for the parameter with the given real type |
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 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 List |
getDefaultLevels()
Get a list of selected levels. |
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. |
float |
getGridGain()
Get the grid gain property. |
float |
getGridSearchRadius()
Get the search radius property |
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 List |
getPointCategories()
Get the default categories for data from PointDataSource-s |
void |
getPropertiesComponents(List comps)
add to properties |
protected FieldImpl |
getSample(DataChoice dataChoice)
Read a sample of the data. |
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 |
initDataSelectionComponents(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(List dataChoices)
Override this method so we don't make any derived data choices from the grid fields |
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 |
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(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(String value)
Set the source property (filename or URL). |
void |
setWidthFromComboBox(TwoFacedObject tfo)
set the property |
protected boolean |
shouldCache(DataChoice dataChoice,
Data data)
See if this DataSource should cache or not |
| Methods inherited from class ucar.unidata.data.FilesDataSource |
|---|
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, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, 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_FIRSTGUESS
public static final String PROP_GRID_X
public static final String PROP_GRID_Y
public static final String PROP_GRID_UNIT
public static final String PROP_GRID_NUMPASSES
public static final String PROP_GRID_GAIN
public static final String PROP_GRID_SEARCH_RADIUS
public static final String PROP_GRID_PARAM
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 initialization
protected void initDataSelectionComponents(List<DataSelectionComponent> components,
DataChoice dataChoice)
initDataSelectionComponents in class DataSourceImplcomponents - compsdataChoice - for this dataprotected ucar.unidata.data.point.PointDataSource.GridParameters initGridParameters()
public boolean canAddCurrentName(DataChoice dataChoice)
canAddCurrentName in interface DataSourcecanAddCurrentName in class DataSourceImpldataChoice - datachoice
public void getPropertiesComponents(List comps)
getPropertiesComponents in class DataSourceImplcomps - compspublic void addPropertiesTabs(JTabbedPane tabbedPane)
addPropertiesTabs in class DataSourceImpltabbedPane - properties tabpublic void setRoundToFromComboBox(TwoFacedObject tfo)
tfo - value from combo box_public void setWidthFromComboBox(TwoFacedObject tfo)
tfo - value_public boolean applyProperties()
applyProperties in class DataSourceImplprotected boolean canCreateGrid(RealType type)
type - the type
protected FieldImpl getSample(DataChoice dataChoice)
throws Exception
dataChoice - The data choice
Exception - On badnesspublic void reloadData()
reloadData in interface DataSourcereloadData in class FilesDataSourcepublic 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 boolean shouldCache(DataChoice dataChoice,
Data data)
shouldCache in class DataSourceImpldataChoice - The data choice we got this data fromdata - Data to cache
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 Errorprotected void makeDerivedDataChoices(List dataChoices)
makeDerivedDataChoices in class DataSourceImpldataChoices - base list of choicespublic String getFullDescription()
getFullDescription in interface DataSourcegetFullDescription in class FilesDataSourceprotected DataChoice getDescriptionDataChoice()
protected void makeFieldDescription(FieldImpl fi)
fi - field to usepublic void doRemove()
DataManager when this DataSource has
been removed.
doRemove in interface DataSourcedoRemove in class FilesDataSource
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)protected List getDefaultLevels()
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()
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(String value)
value - The new value for GridYpublic 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||