public interface ControlContext extends DataContext
DisplayControl
s view the
IntegratedDataViewer
. We use an interface so that,
instead of just passing the IDV as itself to the display controls,
we can keep tabs on what IDV methods are used by the display controls.
It is a way of keeping us somewhat honest.Modifier and Type | Method and Description |
---|---|
void |
addDisplayControl(DisplayControl control)
a
Add the given
DisplayControl |
DisplayControl |
createDisplay(java.lang.String dataSourceName,
java.lang.String paramName,
java.lang.String displayName,
java.lang.String properties,
boolean initDisplayInThread)
Create a new DisplayControl
|
javax.swing.JMenu |
doMakeDataChoiceMenu(DataChoice dataChoice)
Create a menu of commands for the given DataChoice
|
ColorTableManager |
getColorTableManager()
Get the
ColorTableManager |
DisplayConventions |
getDisplayConventions()
Get the
DisplayConventions |
IntegratedDataViewer |
getIdv()
Get the IDV
|
java.util.List |
getLocationList()
Return the list of
NamedStationTable s |
XmlObjectStore |
getObjectStore()
Return the
XmlObjectStore that is used
to get and store persistent user state. |
IdvPersistenceManager |
getPersistenceManager()
Get the persistence manager
|
IdvPreferenceManager |
getPreferenceManager()
Get the
IdvPreferenceManager |
IdvResourceManager |
getResourceManager()
Get the
IdvResourceManager |
StationModelManager |
getStationModelManager()
Get the
StationModelManager |
ViewManager |
getViewManager(ViewDescriptor viewDescriptor)
Create, if needed, and return the
ViewManager
identified by the given ViewDescriptor |
ViewManager |
getViewManager(ViewDescriptor viewDescriptor,
boolean newWindow,
java.lang.String properties)
Create, if needed, and return the
ViewManager
identified by the given ViewDescriptor |
boolean |
handleAction(java.lang.String action,
java.util.Hashtable properties)
Handle the given action.
|
void |
removeDisplayControl(DisplayControl control)
Remove the given
DisplayControl |
void |
showNormalCursor()
Show the normal cursor.
|
void |
showWaitCursor()
Show the wait cursor.
|
void |
showWindow(DisplayControl control,
IdvWindow window)
Popup the given window.
|
dataSourceChanged, getAllDataSources, getDataSources, getJythonManager, getPreference, loadDataSource, selectDataChoices, selectDataType, selectDataType, selectUserChoices
getColorProperty, getProperty, getProperty
void addDisplayControl(DisplayControl control)
DisplayControl
control
- The new display controlvoid removeDisplayControl(DisplayControl control)
DisplayControl
control
- The removed display controlViewManager getViewManager(ViewDescriptor viewDescriptor)
ViewManager
identified by the given ViewDescriptor
viewDescriptor
- The view descriptor that defines the view manager
being looked forViewManager getViewManager(ViewDescriptor viewDescriptor, boolean newWindow, java.lang.String properties)
ViewManager
identified by the given ViewDescriptor
viewDescriptor
- The view descriptor that defines the view manager
being looked fornewWindow
- If true it will create a new window and place the ViewManager in it
if the ViewManager was newly created (as opposed to one that already exists).properties
- Semicolon separated list of properties to configure the ViewManagerboolean handleAction(java.lang.String action, java.util.Hashtable properties)
action
- The actionproperties
- Any extra properties (e.g., properties to pass to
the DataManager when creating a new data source)XmlObjectStore getObjectStore()
XmlObjectStore
that is used
to get and store persistent user state.getObjectStore
in interface DataContext
javax.swing.JMenu doMakeDataChoiceMenu(DataChoice dataChoice)
dataChoice
- The data choice to create a menu forjava.util.List getLocationList()
NamedStationTable
svoid showWindow(DisplayControl control, IdvWindow window)
control
- The control whose window is to be popped upwindow
- The window to be popped upvoid showWaitCursor()
void showNormalCursor()
IntegratedDataViewer getIdv()
getIdv
in interface DataContext
IdvPersistenceManager getPersistenceManager()
ColorTableManager getColorTableManager()
ColorTableManager
IdvPreferenceManager getPreferenceManager()
IdvPreferenceManager
StationModelManager getStationModelManager()
StationModelManager
DisplayConventions getDisplayConventions()
DisplayConventions
IdvResourceManager getResourceManager()
IdvResourceManager
getResourceManager
in interface DataContext
DisplayControl createDisplay(java.lang.String dataSourceName, java.lang.String paramName, java.lang.String displayName, java.lang.String properties, boolean initDisplayInThread)
dataSourceName
- The identifying object for the data source (e.g., test.nc)paramName
- The name of the parameterdisplayName
- The display type (from controls.xml)properties
- A set of semi-colon delimited name=value propertiesinitDisplayInThread
- If true then intialize the new display control in its own thread