|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.data.DataManager
edu.wisc.ssec.mcidasv.data.McvDataManager
public class McvDataManager
The McvDataManager exists purely as a UI nicety. In the IDV, the list of
DataSources are presented in the same ordering found in
datasources.xml.
While ordering the contents of datasources.xml certainly would have
been easier, the approach taken here is a bit more future-proof. McV simply
sorts the data sources known to the IDV.
| Field Summary | |
|---|---|
private Map<DataChoice,HydraControl> |
hydraDataToControl
|
private Map<DataChoice,MultiSpectralDisplay> |
hydraDataToDisplay
|
private static String |
STILL_LUCKY_ID
ID of the "I'm Still Feeling Lucky" data source. |
| Constructor Summary | |
|---|---|
McvDataManager()
Default constructor. |
|
McvDataManager(DataContext dataContext)
Creates a new DataManager with the given DataContext. |
|
| Method Summary | |
|---|---|
boolean |
containsHydraControl(DataChoice choice)
|
boolean |
containsHydraDisplay(DataChoice choice)
|
HydraControl |
getHydraControl(DataChoice choice)
|
MultiSpectralDisplay |
getHydraDisplay(DataChoice choice)
|
void |
loadDataSourceXml(XmlResourceCollection resources)
Process the list of xml documents that define the different DataSources used within the idv. |
void |
setHydraControl(DataChoice choice,
HydraControl control)
|
void |
setHydraDisplay(DataChoice choice,
MultiSpectralDisplay display)
|
private ArrayList<TwoFacedObject> |
sortTwoFacedObjects(ArrayList<TwoFacedObject> objs)
Sorts an ArrayList of TwoFacedObjects by label. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final String STILL_LUCKY_ID
private final Map<DataChoice,HydraControl> hydraDataToControl
private final Map<DataChoice,MultiSpectralDisplay> hydraDataToDisplay
| Constructor Detail |
|---|
public McvDataManager()
public McvDataManager(DataContext dataContext)
DataContext.
dataContext - The DataContext that this DataManager exists
within (this is usually an instance of
IntegratedDataViewer).| Method Detail |
|---|
public boolean containsHydraControl(DataChoice choice)
public boolean containsHydraDisplay(DataChoice choice)
public void setHydraControl(DataChoice choice,
HydraControl control)
public void setHydraDisplay(DataChoice choice,
MultiSpectralDisplay display)
public HydraControl getHydraControl(DataChoice choice)
public MultiSpectralDisplay getHydraDisplay(DataChoice choice)
public void loadDataSourceXml(XmlResourceCollection resources)
DataSources used within the idv. Overridden so that McIDAS-V
can alphabetize the lists of DataSources presented in the UI.
loadDataSourceXml in class DataManagerresources - The XmlResourceCollection that holds the set of
datasource xml documents. This may be null.private ArrayList<TwoFacedObject> sortTwoFacedObjects(ArrayList<TwoFacedObject> objs)
Sorts an ArrayList of TwoFacedObjects by label. Case is
ignored.
NOTE: If the ID of one of the objects represents the "I'm Still Feeling Lucky" data source, it'll always wind up at the end of the list.
objs - The list that needs some sortin' out.
objs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||