public abstract class IdvBase extends java.lang.Object implements IdvConstants, XmlPersistable
Modifier and Type | Field and Description |
---|---|
protected AliasEditor |
aliasEditor
The data alias editor
|
protected java.lang.String[] |
args
Command line arguments
|
protected ArgsManager |
argsManager
The command line argument manager
|
protected AutoDisplayEditor |
autoDisplayEditor
The data alias editor
|
protected IdvChooserManager |
chooserManager
The chooser manager
|
protected CollabManager |
collabManager
Handles collaboration and the event capture
|
protected ColorTableEditor |
colorTableEditor
The color table editor.
|
protected ColorTableManager |
colorTableManager
The color table manager.
|
protected DataManager |
dataManager
The data manager
|
protected DisplayConventions |
displayConventions
Handles the different display conventions
|
protected IntegratedDataViewer |
idv
The idv.
|
protected ImageGenerator |
imageGenerator
Handles generating images, movies, etc.
|
protected InstallManager |
installManager
Handles reinstalling the IDV
|
protected JythonManager |
jythonManager
The jython manager
|
protected ParamDefaultsEditor |
paramDefaultsEditor
The parameter defaults editor
|
protected ParamGroupsEditor |
paramGroupsEditor
The parameter defaults editor
|
protected IdvPersistenceManager |
persistenceManager
Handles bundle writing
|
protected PluginManager |
pluginManager
The plugin manager
|
protected IdvPreferenceManager |
preferenceManager
Handles the end user preferences
|
protected IdvProjectionManager |
projectionManager
The porojection manager
|
protected PublishManager |
publishManager
Handles doing publishing of content
|
protected IdvResourceManager |
resourceManager
The resource manager
|
protected ResourceViewer |
resourceViewer
_more_
|
protected StateManager |
stateManager
Handles properties, etc.
|
protected StationModelManager |
stationModelManager
The station model manager
|
protected ucar.unidata.idv.test.TestManager |
testManager
Handles running tests, creating test archives, etc.
|
protected IdvUIManager |
uiManager
Handles creating user interfaces, etc.
|
protected VMManager |
vmManager
The manager of ViewManagers
|
ARG_B64BUNDLE, ARG_B64ISL, ARG_BUNDLE, ARG_CATALOG, ARG_CHOOSER, ARG_CLEARDEFAULT, ARG_CODE, ARG_CONNECT, ARG_CURRENTTIME, ARG_DATA, ARG_DEBUG, ARG_DEFAULT, ARG_DISPLAY, ARG_DXML, ARG_FIXEDTIME, ARG_HELP, ARG_IMAGE, ARG_IMAGESERVER, ARG_INSTALLPLUGIN, ARG_ISLFILE, ARG_ISLINTERACTIVE, ARG_LISTRESOURCES, ARG_MAINCLASS, ARG_MOVIE, ARG_MSG_DEBUG, ARG_MSG_RECORD, ARG_NODEFAULT, ARG_NOERRORSINGUI, ARG_NOGUI, ARG_NOONEINSTANCE, ARG_NOPLUGINS, ARG_NOPREF, ARG_ONEINSTANCEPORT, ARG_PLUGIN, ARG_PORT, ARG_PRINTJNLP, ARG_PROPERTIES, ARG_SCRIPT, ARG_SERVER, ARG_SETFILES, ARG_SITEPATH, ARG_TEMPLATE, ARG_TEST, ARG_TESTEVAL, ARG_TRACE, ARG_TRACEONLY, ARG_USERPATH, DEFAULT_DATE_FORMAT, DEFAULT_DOCPATH, DEFAULT_TIMEZONE, FILTER_CPT, FILTER_ISL, FILTER_JNLP, FILTER_XIDV, FILTER_XIDVZIDV, FILTER_XML, FILTER_ZIDV, ID_COMMANDSTORUN, ID_DATASOURCES, ID_DISPLAYCONTROLS, ID_IDV, ID_JYTHON, ID_MESSAGE, ID_MISCHASHTABLE, ID_NCIDV_VERSION, ID_VERSION, ID_VIEWMANAGERS, ID_WINDOWS, INITIAL_PROBE_EARTHLOCATION, NULL_DATA_SELECTION, NULL_STRING, PREF_APPEARANCEMODE, PREF_ARCHIVEDIR, PREF_ARCHIVENAME, PREF_AUTODISPLAYS_ENABLE, PREF_AUTODISPLAYS_SHOWGUI, PREF_AUTOSELECTDATA, PREF_CACHESIZE, PREF_CONTROLSINTABS, PREF_DATAPREFIX, PREF_DATE_FORMAT, PREF_DISTANCEUNIT, PREF_DOCACHE, PREF_EMBEDDATACHOOSERINDASHBOARD, PREF_EMBEDFIELDSELECTORINDASHBOARD, PREF_EMBEDLEGENDINDASHBOARD, PREF_EMBEDQUICKLINKSINDASHBOARD, PREF_EVENT_KEYBOARDMAP, PREF_EVENT_MOUSEMAP, PREF_EVENT_WHEELMAP, PREF_FAST_RENDER, PREF_FIELD_CACHETHRESHOLD, PREF_FILEREADDIR, PREF_FILEWRITEDIR, PREF_GEOMETRY_BY_REF, PREF_HISTORY, PREF_IMAGE_BY_REF, PREF_LARGE_REMOTE_DATA_WARN, PREF_LASTVERSION, PREF_LATLON_FORMAT, PREF_LEGEND_SHOWICONS, PREF_LOCALE, PREF_LOOKANDFEEL, PREF_MAXIMAGESIZE, PREF_MEMORY, PREF_NPOT_IMAGE, PREF_OPEN_ASK, PREF_OPEN_MERGE, PREF_OPEN_REMOVE, PREF_PROJ_LIST, PREF_SAMPLINGMODE, PREF_SHOWCONTROLWINDOW, PREF_SHOWDASHBOARD, PREF_SHOWDECODEDIALOG, PREF_SHOWHIDDENFILES, PREF_SHOWQUITCONFIRM, PREF_SITEPATH, PREF_THREADS_DATA, PREF_THREADS_RENDER, PREF_TIMEZONE, PREF_VERTICALCS, PREF_VERTICALUNIT, PREF_WINDOW_SHOWTOOLBAR, PREF_ZIDV_ASK, PREF_ZIDV_DIRECTORY, PREF_ZIDV_SAVETOTMP, PROP_3DMODE, PROP_ABOUTTEXT, PROP_APPRESOURCEPATH, PROP_CHOOSERS, PROP_CHOOSERS_ALL, PROP_CONTROLDESCRIPTORS, PROP_CONTROLDESCRIPTORS_ALL, PROP_DATAHOLDERBOUNDS, PROP_DEFAULTLOCATIONS, PROP_DISPLAYLIST_GROUP, PROP_FIXFILELOCKUP, PROP_JNLPCODEBASE, PROP_JNLPTEMPLATE, PROP_JNLPTITLE, PROP_LOADINGXML, PROP_MAP_GLOBE_LEVEL, PROP_MAP_MAP_LEVEL, PROP_MINIMUMFRAMECYCLETIME, PROP_MONITORPORT, PROP_OLDCONTROLDESCRIPTORS, PROP_ONEINSTANCEPORT, PROP_PREFERENCES, PROP_PROJ_NAME, PROP_RESOURCEFILES, PROP_SHOWCLOCK_DASH, PROP_SHOWCLOCK_VIEW, PROP_SHOWDASHBOARD, PROP_SHOWDATATREE, PROP_SHOWFORMULAS, PROP_SHOWSPLASH, PROP_SPLASHICON, PROP_UI_DESKTOP, PROP_USE_DISPLAYAREA, PROP_USE_TIMEDRIVER, PROP_VERSIONFILE, PROP_WINDOW_SCREENSIZEOFFSET, PROP_WINDOW_SIZEHEIGHT, PROP_WINDOW_SIZEWIDTH, PROP_WINDOW_USESCREENSIZE, SUFFIX_BAT, SUFFIX_CPT, SUFFIX_ISL, SUFFIX_JNLP, SUFFIX_RBI, SUFFIX_SH, SUFFIX_XIDV, SUFFIX_XML, SUFFIX_ZIDV
Constructor and Description |
---|
IdvBase(java.lang.String[] args)
Create the IdvBase
|
Modifier and Type | Method and Description |
---|---|
static void |
addPluginClass(java.lang.Class c)
Add a class that was loaded in via the plugin mechanism.
|
org.w3c.dom.Element |
createElement(XmlEncoder encoder)
Implement the XmlPersistable createElement method,
just return null since we don't really want to be persisted.
|
protected AliasEditor |
doMakeAliasEditor()
Factory method to create the
AliasEditor |
protected ArgsManager |
doMakeArgsManager(java.lang.String[] args)
Factory method to create the
ArgsManager |
protected AutoDisplayEditor |
doMakeAutoDisplayEditor()
Factory method to create the
AutoDisplayEditor |
protected CollabManager |
doMakeCollabManager()
Factory method to create the
CollabManager |
protected ColorTableEditor |
doMakeColorTableEditor()
Factory method to create the
ColorTableEditor |
protected ColorTableManager |
doMakeColorTableManager()
Factory method to create the
ColorTableManager |
protected DataManager |
doMakeDataManager()
Factory method to create the
DataManager |
protected DisplayConventions |
doMakeDisplayConventions()
Factory method to create the
DisplayConventions |
protected IdvChooserManager |
doMakeIdvChooserManager()
Factory method to create the
IdvChooserManager |
protected IdvProjectionManager |
doMakeIdvProjectionManager()
Factory method to create the
ProjectionManager |
protected IdvUIManager |
doMakeIdvUIManager()
Factory method to create the
IdvUIManager |
protected ImageGenerator |
doMakeImageGenerator()
Factory method to create the
ImageGenerator |
protected InstallManager |
doMakeInstallManager()
Factory method to create the
InstallManager . |
protected JythonManager |
doMakeJythonManager()
Factory method to create the
JythonManager |
protected ParamDefaultsEditor |
doMakeParamDefaultsEditor()
Factory method to create the
ParamDefaultsEditor |
protected ParamGroupsEditor |
doMakeParamGroupsEditor()
Factory method to create the
ParamGroupsEditor |
protected IdvPersistenceManager |
doMakePersistenceManager()
Factory method to create the
IdvPersistenceManager |
protected PluginManager |
doMakePluginManager()
Factory method to create the
PluginManager |
protected IdvPreferenceManager |
doMakePreferenceManager()
Factory method to create the
IdvPreferenceManager |
protected PublishManager |
doMakePublishManager()
Factory method to create the
PublishManager
This manages publishing content to weblogs, etc. |
protected IdvResourceManager |
doMakeResourceManager()
Factory method to create the
IdvResourceManager |
protected ResourceViewer |
doMakeResourceViewer()
_more_
|
protected StateManager |
doMakeStateManager()
Factory method to create the
StateManager . |
protected StationModelManager |
doMakeStationModelManager()
Factory method to create the
StationModelManager |
protected ucar.unidata.idv.test.TestManager |
doMakeTestManager()
Factory method to create the
TestManager . |
protected VMManager |
doMakeVMManager()
Factory method to create the
VMManager . |
AliasEditor |
getAliasEditor()
Create, if needed, and return the
AliasEditor |
ArgsManager |
getArgsManager()
Create, if needed, and return the
ArgsManager |
AutoDisplayEditor |
getAutoDisplayEditor()
Create, if needed, and return the
AutoDisplayEditor |
CollabManager |
getCollabManager()
Create, if needed, and return the
CollabManager |
java.awt.Color |
getColorProperty(java.lang.String name,
java.awt.Color dflt)
Utility method to retrieve a String property from the idv properties.
|
ColorTableEditor |
getColorTableEditor()
Create, if needed, and return the
ColorTableEditor |
ColorTableManager |
getColorTableManager()
Create, if needed, and return the
ColorTableManager |
DataManager |
getDataManager()
Create, if needed, and return the
DataManager . |
DisplayConventions |
getDisplayConventions()
Create, if needed, and return the
DisplayConventions . |
protected XmlEncoder |
getEncoder() |
IntegratedDataViewer |
getIdv()
Get the IDV
|
IdvChooserManager |
getIdvChooserManager()
Create, if needed, and return the
IdvChooserManager |
IdvProjectionManager |
getIdvProjectionManager()
Create, if needed, and return the
ProjectionManager |
IdvUIManager |
getIdvUIManager()
Create, if needed, and return the
IdvUIManager |
ImageGenerator |
getImageGenerator()
Create, if needed, and return the
ImageGenerator |
InstallManager |
getInstallManager()
Create, if needed, and return the
InstallManager |
JythonManager |
getJythonManager()
Create, if needed, and return the
JythonManager |
XmlObjectStore |
getObjectStore()
This simply returns the call to getStore.
|
ParamDefaultsEditor |
getParamDefaultsEditor()
Create, if needed, and return the
ParamDefaultsEditor |
ParamGroupsEditor |
getParamGroupsEditor()
Create, if needed, and return the
ParamGroupsEditor |
IdvPersistenceManager |
getPersistenceManager()
Get the persistence manager
|
PluginManager |
getPluginManager()
Create, if needed, and return the
IdvResourceManager |
java.lang.Object |
getPreference(java.lang.String pref)
Helper method that wraps getStore().get (pref)
|
java.lang.Object |
getPreference(java.lang.String pref,
java.lang.Object dflt)
Helper method that wraps getStore().get (pref)
|
IdvPreferenceManager |
getPreferenceManager()
Create, if needed, and return the
IdvPreferenceManager |
boolean |
getProperty(java.lang.String name,
boolean dflt)
Utility method to retrieve a boolean property from the idv properties.
|
double |
getProperty(java.lang.String name,
double dflt)
Utility method to retrieve an int property from the idv properties.
|
int |
getProperty(java.lang.String name,
int dflt)
Utility method to retrieve an int property from the idv properties.
|
java.lang.String |
getProperty(java.lang.String name,
java.lang.String dflt)
Utility method to retrieve a String property from the idv properties.
|
PublishManager |
getPublishManager()
Create, if needed, and return
PublishManager |
IdvResourceManager |
getResourceManager()
Create, if needed, and return the
IdvResourceManager |
ResourceViewer |
getResourceViewer()
Create, if needed, and return the
AliasEditor |
StateManager |
getStateManager()
Create, if needed, and return the
StateManager |
StationModelManager |
getStationModelManager()
Create, if needed, and return the
StationModelManager |
IdvObjectStore |
getStore()
Create the IdvObjectStore (if null) and return it.
|
ucar.unidata.idv.test.TestManager |
getTestManager()
Create, if needed, and return the
TestManager . |
VMManager |
getVMManager()
Create, if needed, and return the
VMManager . |
boolean |
haveCollabManager()
Do we have a non-null collab manager
|
boolean |
initFromXml(XmlEncoder encoder,
org.w3c.dom.Element element)
Just needed so we can implement XmlPersistable
|
protected java.lang.Object |
makeManager(java.lang.Class managerClass,
java.lang.Object[] args)
Utility to make a manager class.
|
protected void |
setIdv(IntegratedDataViewer idv)
Set the reference to the idv.
|
void |
showAliasEditor()
Show the alias editor
|
void |
showAutoDisplayEditor()
Show the alias editor
|
void |
showChooser()
Call show on the
IdvChooserManager |
void |
showChooserModal()
Call show on the
IdvChooserManager |
void |
showColorTableEditor()
Show the color table editor
|
void |
showColorTableEditor(java.lang.String colorTableName)
Show the color table editor with the color table
with the given name (if non-null)
|
void |
showDefaultsEditor()
Show the param defaults editor
|
void |
showIdvProjectionManager()
Show the alias editor
|
void |
showParamGroupsEditor()
Show the param defaults editor
|
void |
showPreferenceManager()
Create (if null) and popup the user preference dialog window.
|
void |
showResourceViewer()
Show the alias editor
|
void |
showStationModelEditor()
Show the station model editor
|
protected IntegratedDataViewer idv
protected java.lang.String[] args
protected IdvResourceManager resourceManager
protected PluginManager pluginManager
protected VMManager vmManager
protected PublishManager publishManager
protected IdvPersistenceManager persistenceManager
protected DisplayConventions displayConventions
protected ArgsManager argsManager
protected ColorTableEditor colorTableEditor
protected ColorTableManager colorTableManager
protected StationModelManager stationModelManager
protected AliasEditor aliasEditor
protected ResourceViewer resourceViewer
protected IdvProjectionManager projectionManager
protected AutoDisplayEditor autoDisplayEditor
protected JythonManager jythonManager
protected ParamDefaultsEditor paramDefaultsEditor
protected ParamGroupsEditor paramGroupsEditor
protected IdvChooserManager chooserManager
protected DataManager dataManager
protected CollabManager collabManager
protected IdvPreferenceManager preferenceManager
protected ucar.unidata.idv.test.TestManager testManager
protected IdvUIManager uiManager
protected ImageGenerator imageGenerator
protected StateManager stateManager
protected InstallManager installManager
public IdvBase(java.lang.String[] args)
args
- Command line argumentsprotected void setIdv(IntegratedDataViewer idv)
idv
- The IDVpublic IntegratedDataViewer getIdv()
public static void addPluginClass(java.lang.Class c)
c
- The classprotected java.lang.Object makeManager(java.lang.Class managerClass, java.lang.Object[] args)
managerClass
- Class to instantiateargs
- Args to pass in. May be null.protected StationModelManager doMakeStationModelManager()
StationModelManager
public StationModelManager getStationModelManager()
StationModelManager
public void showStationModelEditor()
protected ArgsManager doMakeArgsManager(java.lang.String[] args)
ArgsManager
args
- The command lint argumentspublic IdvPersistenceManager getPersistenceManager()
protected IdvPersistenceManager doMakePersistenceManager()
IdvPersistenceManager
public ArgsManager getArgsManager()
ArgsManager
protected DataManager doMakeDataManager()
DataManager
public DataManager getDataManager()
DataManager
. This
manages the creation and manipulation of the
data sources.protected DisplayConventions doMakeDisplayConventions()
DisplayConventions
public DisplayConventions getDisplayConventions()
DisplayConventions
. This
manages the creation and manipulation of the
data sources.protected ColorTableManager doMakeColorTableManager()
ColorTableManager
public ColorTableManager getColorTableManager()
ColorTableManager
protected ucar.unidata.idv.test.TestManager doMakeTestManager()
TestManager
.public ucar.unidata.idv.test.TestManager getTestManager()
TestManager
. This class runs the
idv in test mode and also creates the test archives.protected VMManager doMakeVMManager()
VMManager
. This manages the set of
ViewManager
s. It really should be called
the ViewManagerManagerpublic VMManager getVMManager()
VMManager
.protected PublishManager doMakePublishManager()
PublishManager
This manages publishing content to weblogs, etc.public PublishManager getPublishManager()
PublishManager
protected IdvUIManager doMakeIdvUIManager()
IdvUIManager
public IdvUIManager getIdvUIManager()
IdvUIManager
protected ImageGenerator doMakeImageGenerator()
ImageGenerator
public ImageGenerator getImageGenerator()
ImageGenerator
protected StateManager doMakeStateManager()
StateManager
.public StateManager getStateManager()
StateManager
protected InstallManager doMakeInstallManager()
InstallManager
.public InstallManager getInstallManager()
InstallManager
protected JythonManager doMakeJythonManager()
JythonManager
public JythonManager getJythonManager()
JythonManager
protected IdvChooserManager doMakeIdvChooserManager()
IdvChooserManager
public IdvChooserManager getIdvChooserManager()
IdvChooserManager
public void showChooser()
IdvChooserManager
public void showChooserModal()
IdvChooserManager
protected CollabManager doMakeCollabManager()
CollabManager
public CollabManager getCollabManager()
CollabManager
public boolean haveCollabManager()
protected AliasEditor doMakeAliasEditor()
AliasEditor
public AliasEditor getAliasEditor()
AliasEditor
public void showAliasEditor()
protected ResourceViewer doMakeResourceViewer()
public ResourceViewer getResourceViewer()
AliasEditor
public void showResourceViewer()
protected IdvProjectionManager doMakeIdvProjectionManager()
ProjectionManager
public IdvProjectionManager getIdvProjectionManager()
ProjectionManager
public void showIdvProjectionManager()
protected AutoDisplayEditor doMakeAutoDisplayEditor()
AutoDisplayEditor
public AutoDisplayEditor getAutoDisplayEditor()
AutoDisplayEditor
public void showAutoDisplayEditor()
protected ParamDefaultsEditor doMakeParamDefaultsEditor()
ParamDefaultsEditor
public ParamDefaultsEditor getParamDefaultsEditor()
ParamDefaultsEditor
public void showDefaultsEditor()
protected ParamGroupsEditor doMakeParamGroupsEditor()
ParamGroupsEditor
public ParamGroupsEditor getParamGroupsEditor()
ParamGroupsEditor
public void showParamGroupsEditor()
protected ColorTableEditor doMakeColorTableEditor()
ColorTableEditor
public ColorTableEditor getColorTableEditor()
ColorTableEditor
public void showColorTableEditor()
public void showColorTableEditor(java.lang.String colorTableName)
colorTableName
- The name of the color table to showprotected IdvPreferenceManager doMakePreferenceManager()
IdvPreferenceManager
public IdvPreferenceManager getPreferenceManager()
IdvPreferenceManager
public void showPreferenceManager()
protected IdvResourceManager doMakeResourceManager()
IdvResourceManager
public IdvResourceManager getResourceManager()
IdvResourceManager
protected PluginManager doMakePluginManager()
PluginManager
public PluginManager getPluginManager()
IdvResourceManager
public XmlObjectStore getObjectStore()
XmlObjectStore
public IdvObjectStore getStore()
XmlObjectStore
public boolean getProperty(java.lang.String name, boolean dflt)
name
- The name of the propertydflt
- The default value if the property is not foundpublic int getProperty(java.lang.String name, int dflt)
name
- The name of the propertydflt
- The default value if the property is not foundpublic double getProperty(java.lang.String name, double dflt)
name
- The name of the propertydflt
- The default value if the property is not foundpublic java.lang.String getProperty(java.lang.String name, java.lang.String dflt)
name
- The name of the propertydflt
- The default value if the property is not foundpublic java.awt.Color getColorProperty(java.lang.String name, java.awt.Color dflt)
name
- The name of the propertydflt
- The default value if the property is not foundpublic java.lang.Object getPreference(java.lang.String pref)
pref
- The name of the preferencepublic java.lang.Object getPreference(java.lang.String pref, java.lang.Object dflt)
pref
- The name of the preferencedflt
- The default value to return if the preference is not foundpublic org.w3c.dom.Element createElement(XmlEncoder encoder)
createElement
in interface XmlPersistable
encoder
- The encoder doing the encodingprotected XmlEncoder getEncoder()
public boolean initFromXml(XmlEncoder encoder, org.w3c.dom.Element element)
initFromXml
in interface XmlPersistable
encoder
- The encoder doing the encodingelement
- The xml element that defines the object