public class IdvResourceManager extends IdvManager implements javax.swing.event.HyperlinkListener
For example in resources/idv.rbi we have:
<resources name="idv.resource.colortables"> <resource location="%USERPATH%/colortables.xml"/> <resource location="%SITEPATH%/colortables.xml"/> <resource location="%IDVPATH%/colortables.xml"/> </resources>This defines the collection of color table resources. The %USERPATH%, etc., are macros that are replaced with the corresponding value.
This class has a set of static IdvResource and XmlIdvResource members,
one for each resource collection, e.g., RSC_COLORTABLES.
The IdvResource objects are those that point to text resources. The XmlIdvResource
objects point to xml files. These objects provide methods to access the
ResourceCollection
and
XmlResourceCollection
objects that actually do the
work of reading in the resources, creating the xml doms, etc.
Modifier and Type | Class and Description |
---|---|
static class |
IdvResourceManager.IdvResource
Class IdvResource holds the resources files for a particular
type of resource
|
static class |
IdvResourceManager.XmlIdvResource
Class XmlIdvResource.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_ID
Xml attr name for the "id" attribute in the rbi file
|
static java.lang.String |
ATTR_LABEL
Xml attr name for the "label" attribute in the rbi file
|
static java.lang.String |
ATTR_LOADMORE
Xml attr name for the "loadmore" attribute in the rbi file
|
static java.lang.String |
ATTR_LOCATION
Xml attr name for the "location" attribute in the rbi file
|
static java.lang.String |
ATTR_NAME
xml attribute
|
static java.lang.String |
ATTR_REMOVEPREVIOUS
Xml attr name for the "removeprevious" attribute in the rbi file
|
static java.lang.String |
ATTR_RESOURCETYPE
Xml attr name for the "type" attribute in the rbi file
|
static java.lang.String |
ATTR_VALUE
Xml attr name for the "value" attribute in the rbi file
|
static boolean |
hasInitializedTranslations |
protected static java.util.List |
resources
List of static IdvResource objects
|
static IdvResourceManager.XmlIdvResource |
RSC_ACTIONS
Points to the skin xml
|
static IdvResourceManager.IdvResource |
RSC_ADDESERVER
Points to the adde server descriptions
|
static IdvResourceManager.IdvResource |
RSC_ALIASES
Points to data aliases
|
static IdvResourceManager.XmlIdvResource |
RSC_AUTODISPLAYS
Points to the automatic display creation xml
|
static IdvResourceManager.XmlIdvResource |
RSC_BACKGROUNDWMS
Points to the background image defaults
|
static IdvResourceManager.IdvResource |
RSC_BUNDLES
Points to xidv bundle files
|
static IdvResourceManager.IdvResource |
RSC_BUNDLEXML
Points to canned bundles
|
static IdvResourceManager.IdvResource |
RSC_CHOOSERS
Points to the specification of the choosers ui
|
static IdvResourceManager.XmlIdvResource |
RSC_COLORPAIRS
Points to the pairs of foreground/background colors
|
static IdvResourceManager.IdvResource |
RSC_COLORTABLES
Points to the color tables
|
static IdvResourceManager.IdvResource |
RSC_CONTROLS
Points to the control descriptor specification
|
static IdvResourceManager.IdvResource |
RSC_DATASOURCE
Points to the data source descriptions
|
static IdvResourceManager.IdvResource |
RSC_DERIVED
Points to the derived quantities and end user formulas
|
static IdvResourceManager.IdvResource |
RSC_DISPLAYSETTINGS
Points to the projections
|
static IdvResourceManager.IdvResource |
RSC_GEMPAKGRIDPARAMTABLES
Points to the gempak parameter look up tables
|
static IdvResourceManager.IdvResource |
RSC_GLOBEMAPS
Points to the maps
|
static IdvResourceManager.IdvResource |
RSC_GRIB1LOOKUPTABLES
Points to the grib look up tables
|
static IdvResourceManager.IdvResource |
RSC_GRIB2LOOKUPTABLES
Points to the grib look up tables
|
static IdvResourceManager.IdvResource |
RSC_HELPTIPS
Points to the help tips
|
static IdvResourceManager.XmlIdvResource |
RSC_IMAGEDEFAULTS
Points to the adde image defaults
|
static IdvResourceManager.XmlIdvResource |
RSC_IMAGESETS
Points to the background image defaults
|
static IdvResourceManager.IdvResource |
RSC_JYTHON
Points to jython libraries
|
static IdvResourceManager.IdvResource |
RSC_JYTHONTOCOPY
Points to jython libraries that are to be copied into the local
Jython directory
|
static IdvResourceManager.IdvResource |
RSC_LOCATIONS
Points to the location files (e.g., nexrad stations)
|
static IdvResourceManager.IdvResource |
RSC_MAPS
Points to the maps
|
static IdvResourceManager.IdvResource |
RSC_MENUBAR
Points to the menu bar xml
|
static IdvResourceManager.IdvResource |
RSC_MESSAGES
Points to the message catalogs
|
static IdvResourceManager.IdvResource |
RSC_NJCONFIG
Points to netcdf-Java config files
|
static IdvResourceManager.IdvResource |
RSC_PARAMDEFAULTS
Points to the parameter defaults
|
static IdvResourceManager.IdvResource |
RSC_PARAMGROUPS
Points to the parameter groups
|
static IdvResourceManager.IdvResource |
RSC_PLUGININDEX
resource listing the plugins index
|
static IdvResourceManager.IdvResource |
RSC_PLUGINS
Points to plugin
|
static IdvResourceManager.IdvResource |
RSC_PREFERENCES
Points to user preferences
|
static IdvResourceManager.IdvResource |
RSC_PROJECTIONS
Points to the projections
|
static IdvResourceManager.IdvResource |
RSC_PROTOTYPES
Points to prototypes
|
static IdvResourceManager.IdvResource |
RSC_PUBLISHERS
Publishers
|
static IdvResourceManager.IdvResource |
RSC_PUBLISHERTYPES
Publishers
|
static IdvResourceManager.IdvResource |
RSC_QUICKLINKS
Points to the quicklink pages
|
static IdvResourceManager.XmlIdvResource |
RSC_SKIN
Points to the skin xml
|
static IdvResourceManager.IdvResource |
RSC_STATIONMODELS
Points to station models
|
static IdvResourceManager.XmlIdvResource |
RSC_STATIONSYMBOLS
Points to station model symbols
|
static IdvResourceManager.XmlIdvResource |
RSC_TOOLBAR
Points to the skin xml
|
static IdvResourceManager.IdvResource |
RSC_TRANSECTS
Points to the projections
|
static IdvResourceManager.IdvResource |
RSC_TRANSLATIONS |
static IdvResourceManager.XmlIdvResource |
RSC_URLMAPS
Points to url maps
|
static IdvResourceManager.IdvResource |
RSC_USERCHOOSER
Points to the user created chooser components
|
static IdvResourceManager.XmlIdvResource |
RSC_VARIABLERENAMER
Points to Variable name maps (to handle loading data when variable names change)
|
static IdvResourceManager.IdvResource |
RSC_VIEWPOINTS
viewpoints
|
static java.lang.String |
TAG_PROPERTY
Xml tag name
|
static java.lang.String |
TAG_RESOURCE
Xml tag name for the "resource" tag in the rbi file
|
static java.lang.String |
TAG_RESOURCEBUNDLE
resource bundle tag
|
static java.lang.String |
TAG_RESOURCES
Xml tag name for the "resources" tag in the rbi file
|
static java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.lang.String>> |
translationTables |
contents, dialog, frame, window
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_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 |
---|
IdvResourceManager(IntegratedDataViewer idv)
Create me
|
Modifier and Type | Method and Description |
---|---|
void |
addDisplaySetting(DisplaySetting displaySetting)
Add new display setting
|
void |
clearDefaultBundles()
Remove all default bundles
|
void |
clearResourceMacros()
Clear the macro values
|
MapInfo |
createMapInfo(boolean forGlobe)
A utility to instantiate a MapInfo from the maps resources
|
protected ResourceCollection |
createResourceCollection(java.lang.String id)
Create, if needed, and return the ResourceCollection
defined by the given id
|
protected XmlResourceCollection |
createXmlResourceCollection(java.lang.String id)
Create, if needed, and return the XmlResourceCollection
defined by the given id
|
void |
displaySettingChanged(DisplaySetting displaySetting)
handle when a display setting changed
|
DisplaySetting |
findDisplaySetting(java.lang.String name)
Find display setting by name
|
NamedStationTable |
findLocations(java.lang.String name)
Find the NamedStationTable with the given name
|
java.util.List |
findLocationsByType(java.lang.String type)
Find the NamedStationTable with the given name
|
java.lang.String |
getAppResourcePath()
Return the path used to substitute the %APPPATH% macro for in the
resource list properties.
|
java.lang.String |
getDataResourcePath()
Return the path used to substitute the %DATAPATH% macro for in the
resource list properties.
|
NamedStationTable |
getDefaultStations()
Find the default NamedStationTable
|
java.util.List<DisplaySetting> |
getDisplaySettings()
Get all display settings
|
long |
getDisplaySettingsTimestamp()
get timestamp
|
java.lang.String |
getHtmlView()
Create the html representation of the list of resources.
|
java.lang.String |
getIdvResourcePath()
Return the path used to substitute the %IDVPATH% macro for in the
resource list properties.
|
java.util.List |
getLocationList()
Create (if null) and return the list NamedStationTable-s defined by the
locationResources XmlResourceCollection.
|
protected java.util.Hashtable |
getMacroMap()
Get map of macro name -> value.
|
XmlResourceCollection |
getMapResources(boolean forGlobe)
_more_
|
java.util.List<MapData> |
getMaps()
_more_
|
protected java.util.List |
getResourceList(java.lang.String propName)
Do a property lookup of the given resource list property.
|
java.lang.String |
getResourcePath(java.lang.String path)
Do the macro expansion
|
java.util.List |
getResourcePaths(java.util.List paths)
For each string in the given paths list
do a textual substitution of a set of macros with their values (e.g., %USERPATH%).
|
java.util.List |
getResources()
Get the resources
|
ResourceCollection |
getResources(IdvResourceManager.IdvResource resource)
Create, if needed, and return the
ResourceCollection that is represented by
the given resource. |
ResourceCollection |
getResources(java.lang.String id)
Lookup up in the resource collections map the ResouceCollection
with the given id
|
java.util.List |
getResourcesForUser()
Get the list of resources for the user
|
java.lang.String |
getResourceUrlBase()
A hardcoded url base to find resources at
|
java.lang.String |
getSitePath()
Return the path used to substitute the %SITEPATH% macro for in the
resource list properties.
|
java.util.List |
getTransects()
Get the list of transects
|
java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.lang.String>> |
getTranslationsHashtable() |
java.lang.String |
getUserHome()
Return the path used to substitute the %USERHOME% macro for in the
resource list properties.
|
java.lang.String |
getUserPath()
Return the path used to substitute the %USERPATH% macro for in the
resource list properties.
|
XmlResourceCollection |
getXmlResources(IdvResourceManager.IdvResource resource)
Create, if needed, and return the
XmlResourceCollection that is represented by
the given resource. |
XmlResourceCollection |
getXmlResources(java.lang.String name)
Lookup up in the resource collections map the XmlResouceCollection
with the given id
|
void |
hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
Respond to events from the html view.
|
protected void |
init(java.util.List rbiFiles)
Create the set of resources (defined in the idv.properties file)
and do the relevant initializations.
|
void |
processRbi(org.w3c.dom.Element root)
Process the top level root of the rbi xml file
|
protected void |
processRbi(org.w3c.dom.Element root,
boolean payAttentionToLoadMore)
Process the top level root of the rbi xml file
|
void |
removeDisplaySetting(DisplaySetting displaySetting)
Remove display setting
|
void |
removeDisplaySettings(java.util.List<DisplaySetting> list)
Remove list of display settings
|
boolean |
removeLocalMaps(boolean forGlobe)
Remove any local maps.xml file
|
void |
removeResources(java.lang.String id)
Remove the resources identified by id
|
void |
showHtmlView()
Show the html representation of the list of resources
|
void |
writeMapState(java.lang.String mapsXml,
boolean forGlobe)
Write out the given maps xml to the writable resource
|
void |
writeTransects(java.util.List t)
Write the non-system transects in the list to the users
transects resource file
|
getArgsManager, getCollabManager, getColorTableManager, getDataManager, getIdv, getIdvChooserManager, getIdvClass, getIdvProjectionManager, getIdvUIManager, getImageGenerator, getInstallManager, getJythonManager, getPersistenceManager, getPreferenceManager, getProperty, getProperty, getProperty, getPublishManager, getResourceManager, getStateManager, getStationModelManager, getStore, getVMManager, logException, showNormalCursor, showWaitCursor, waitUntilDisplaysAreDone, waitUntilDisplaysAreDone
actionPerformed, close, doMakeContents, getContents, getDialog, getFrame, getWindow, getWindowTitle, isShowing, removeAll, setMenuBar, setWindowTitle, shouldMakeDialog, show, show, showModal, toFront, windowIsClosing
public static final java.lang.String TAG_RESOURCES
public static final java.lang.String TAG_RESOURCEBUNDLE
public static final java.lang.String TAG_RESOURCE
public static final java.lang.String TAG_PROPERTY
public static final java.lang.String ATTR_LOADMORE
public static final java.lang.String ATTR_REMOVEPREVIOUS
public static final java.lang.String ATTR_NAME
public static final java.lang.String ATTR_ID
public static final java.lang.String ATTR_VALUE
public static final java.lang.String ATTR_LABEL
public static final java.lang.String ATTR_LOCATION
public static final java.lang.String ATTR_RESOURCETYPE
protected static java.util.List resources
public static final IdvResourceManager.IdvResource RSC_COLORTABLES
public static final IdvResourceManager.IdvResource RSC_STATIONMODELS
public static final IdvResourceManager.IdvResource RSC_VIEWPOINTS
public static final IdvResourceManager.IdvResource RSC_PROJECTIONS
public static final IdvResourceManager.IdvResource RSC_PARAMDEFAULTS
public static final IdvResourceManager.IdvResource RSC_DISPLAYSETTINGS
public static final IdvResourceManager.IdvResource RSC_ALIASES
public static final IdvResourceManager.IdvResource RSC_TRANSLATIONS
public static final IdvResourceManager.IdvResource RSC_BUNDLEXML
public static final IdvResourceManager.IdvResource RSC_DERIVED
public static final IdvResourceManager.IdvResource RSC_JYTHON
public static final IdvResourceManager.XmlIdvResource RSC_SKIN
public static final IdvResourceManager.IdvResource RSC_QUICKLINKS
public static final IdvResourceManager.IdvResource RSC_TRANSECTS
public static final IdvResourceManager.IdvResource RSC_MESSAGES
public static final IdvResourceManager.IdvResource RSC_GRIB1LOOKUPTABLES
public static final IdvResourceManager.IdvResource RSC_GRIB2LOOKUPTABLES
public static final IdvResourceManager.IdvResource RSC_GEMPAKGRIDPARAMTABLES
public static final IdvResourceManager.IdvResource RSC_JYTHONTOCOPY
public static final IdvResourceManager.XmlIdvResource RSC_IMAGEDEFAULTS
public static final IdvResourceManager.XmlIdvResource RSC_BACKGROUNDWMS
public static final IdvResourceManager.XmlIdvResource RSC_IMAGESETS
public static final IdvResourceManager.XmlIdvResource RSC_AUTODISPLAYS
public static final IdvResourceManager.XmlIdvResource RSC_TOOLBAR
public static final IdvResourceManager.XmlIdvResource RSC_ACTIONS
public static final IdvResourceManager.XmlIdvResource RSC_STATIONSYMBOLS
public static final IdvResourceManager.XmlIdvResource RSC_COLORPAIRS
public static final IdvResourceManager.XmlIdvResource RSC_VARIABLERENAMER
public static final IdvResourceManager.XmlIdvResource RSC_URLMAPS
public static final IdvResourceManager.IdvResource RSC_DATASOURCE
public static final IdvResourceManager.IdvResource RSC_ADDESERVER
public static final IdvResourceManager.IdvResource RSC_CHOOSERS
public static final IdvResourceManager.IdvResource RSC_BUNDLES
public static final IdvResourceManager.IdvResource RSC_CONTROLS
public static final IdvResourceManager.IdvResource RSC_HELPTIPS
public static final IdvResourceManager.IdvResource RSC_LOCATIONS
public static final IdvResourceManager.IdvResource RSC_GLOBEMAPS
public static final IdvResourceManager.IdvResource RSC_MAPS
public static final IdvResourceManager.IdvResource RSC_MENUBAR
public static final IdvResourceManager.IdvResource RSC_PARAMGROUPS
public static final IdvResourceManager.IdvResource RSC_USERCHOOSER
public static final IdvResourceManager.IdvResource RSC_PREFERENCES
public static final IdvResourceManager.IdvResource RSC_PLUGINS
public static final IdvResourceManager.IdvResource RSC_PLUGININDEX
public static final IdvResourceManager.IdvResource RSC_PROTOTYPES
public static final IdvResourceManager.IdvResource RSC_NJCONFIG
public static final IdvResourceManager.IdvResource RSC_PUBLISHERS
public static final IdvResourceManager.IdvResource RSC_PUBLISHERTYPES
public static boolean hasInitializedTranslations
public static java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.lang.String>> translationTables
public IdvResourceManager(IntegratedDataViewer idv)
idv
- The IDVpublic java.util.List getResources()
public java.util.List getResourcesForUser()
public ResourceCollection getResources(IdvResourceManager.IdvResource resource)
ResourceCollection
that is represented by
the given resource.resource
- The resourcepublic XmlResourceCollection getXmlResources(IdvResourceManager.IdvResource resource)
XmlResourceCollection
that is represented by
the given resource.resource
- The resourcepublic void clearDefaultBundles()
public void showHtmlView()
public java.lang.String getHtmlView()
public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
hyperlinkUpdate
in interface javax.swing.event.HyperlinkListener
e
- The eventpublic void processRbi(org.w3c.dom.Element root)
root
- The root of the rbi fileprotected void processRbi(org.w3c.dom.Element root, boolean payAttentionToLoadMore)
root
- The root of the rbi filepayAttentionToLoadMore
- Flags whether we should stop processing
when we encounter a "loadmore" tag in the rbi xmlprotected ResourceCollection createResourceCollection(java.lang.String id)
id
- The id of the resource, e.g., idv.resource.colortablesprotected XmlResourceCollection createXmlResourceCollection(java.lang.String id)
id
- The id of the resource, e.g., idv.resource.colortablespublic ResourceCollection getResources(java.lang.String id)
id
- The resource idpublic void removeResources(java.lang.String id)
id
- id of the resource to removepublic XmlResourceCollection getXmlResources(java.lang.String name)
name
- The resource nameprotected void init(java.util.List rbiFiles)
rbiFiles
- List of rbi filesprotected java.util.List getResourceList(java.lang.String propName)
propName
- The property namepublic java.util.List getResourcePaths(java.util.List paths)
paths
- Incoming stringspublic void clearResourceMacros()
protected java.util.Hashtable getMacroMap()
public java.lang.String getResourcePath(java.lang.String path)
path
- Macro containing pathapublic java.util.List getLocationList()
public java.lang.String getIdvResourcePath()
public java.lang.String getUserHome()
public java.lang.String getDataResourcePath()
public java.lang.String getAppResourcePath()
public java.lang.String getSitePath()
public java.lang.String getUserPath()
public boolean removeLocalMaps(boolean forGlobe)
forGlobe
- if true then use the globemaps resourcepublic XmlResourceCollection getMapResources(boolean forGlobe)
forGlobe
- _more_public java.util.List<MapData> getMaps()
public MapInfo createMapInfo(boolean forGlobe)
forGlobe
- if true then use the globemaps resourcepublic void writeMapState(java.lang.String mapsXml, boolean forGlobe)
mapsXml
- The maps xmlforGlobe
- if true then use the globemaps resourcepublic NamedStationTable getDefaultStations()
public java.util.List findLocationsByType(java.lang.String type)
type
- typepublic NamedStationTable findLocations(java.lang.String name)
name
- Name of stationpublic java.lang.String getResourceUrlBase()
public java.util.List getTransects()
public void writeTransects(java.util.List t)
t
- List of transectspublic java.util.List<DisplaySetting> getDisplaySettings()
public DisplaySetting findDisplaySetting(java.lang.String name)
name
- namepublic void displaySettingChanged(DisplaySetting displaySetting)
displaySetting
- display setting that changedpublic void addDisplaySetting(DisplaySetting displaySetting)
displaySetting
- display settingpublic void removeDisplaySettings(java.util.List<DisplaySetting> list)
list
- listpublic void removeDisplaySetting(DisplaySetting displaySetting)
displaySetting
- display settingpublic long getDisplaySettingsTimestamp()
public java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.lang.String>> getTranslationsHashtable()