public class IdvUIManager extends IdvManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_ACTION
Xml attribute name for the action in the actions resource
|
static java.lang.String |
ATTR_DESCRIPTION
Xml attribute name for the description in the actions resource
|
static java.lang.String |
ATTR_GROUP
Xml attribute name for the group in the actions resource
|
static java.lang.String |
ATTR_ID
Xml attribute name for the in the actions resource
|
static java.lang.String |
ATTR_IMAGE
Xml attribute name for the image in the actions resource
|
static java.lang.String |
ATTR_MAINWINDOW
Xml attribute name for skin mainwindow attribute
|
static java.lang.String |
COMP_CHOOSER
Xml tag name for the chooser tag.
|
static java.lang.String |
COMP_CHOOSERS
tag for xmlui to show choosers
|
static java.lang.String |
COMP_COMPONENT_CHOOSERS
The identifier of the choosers component
|
static java.lang.String |
COMP_COMPONENT_GROUP
The identifier of the group component
|
static java.lang.String |
COMP_COMPONENT_HTML
The identifier for html
|
static java.lang.String |
COMP_COMPONENT_SKIN
The identifier for skins
|
static java.lang.String |
COMP_DATASELECTOR
The identifier of the data selector component
|
static java.lang.String |
COMP_DATATREE
Xml tag name for datatree
|
static java.lang.String |
COMP_FAVORITESBAR
The identifier of the toolbar component
|
static java.lang.String |
COMP_GLOBEVIEW
Xml tag name for map view manager
|
static java.lang.String |
COMP_HELP
Help tag for xmlui
|
static java.lang.String |
COMP_MAPVIEW
Xml tag name for map view manager
|
static java.lang.String |
COMP_MEMORYMONITOR_DASH
The identifier of the toolbar component on dashboard
|
static java.lang.String |
COMP_MEMORYMONITOR_VIEW
The identifier of the toolbar component on view window
|
static java.lang.String |
COMP_MENUBAR
The identifier of the menubar component
|
static java.lang.String |
COMP_MESSAGELABEL
Xml tag name for messagelabel
|
static java.lang.String |
COMP_MESSAGELOGGER
Xml tag name for messagelogger
|
static java.lang.String |
COMP_PROGRESSBAR
The identifier of the progress bar
|
static java.lang.String |
COMP_READINGLABEL
The identifier of the wait label
|
static java.lang.String |
COMP_STATUSBAR
Xml tag name for status label
|
static java.lang.String |
COMP_STREAMINGLABEL
The identifier of the streaming indicator
|
static java.lang.String |
COMP_TOOLBAR
The identifier of the toolbar component
|
static java.lang.String |
COMP_TRANSECTVIEW
Xml tag name for map view manager
|
static java.lang.String |
COMP_VIEW
Xml tag name for any view manager
|
static java.lang.String |
COMP_VIEWPANEL
Xml tag name for the panel that holds all of the views
|
static java.lang.String |
COMP_WAITLABEL
The identifier of the wait label
|
static java.lang.String |
FIELDTYPE_AREA
type names for user data choices gui creation
|
static java.lang.String |
FIELDTYPE_BOOLEAN
type names for user data choices gui creation
|
static java.lang.String |
FIELDTYPE_CHOICE
type names for user data choices gui creation
|
static java.lang.String |
FIELDTYPE_FILE
type names for user data choices gui creation
|
static java.lang.String |
FIELDTYPE_LOCATION
type names for user data choices gui creation
|
static java.lang.String |
FIELDTYPE_TEXT
type names for user data choices gui creation
|
static javax.swing.ImageIcon |
ICON_LOCK
The icon used to show locked legend components
|
static javax.swing.ImageIcon |
ICON_REMOVE
Icon used to remove displays
|
static javax.swing.ImageIcon |
ICON_UNLOCK
The icon used to show unlocked legend components
|
protected IdvWindow |
lastActiveFrame
Keep track of the last window that the user has moused in
We do this so when we are adding a DisplayControl into one of the
main windows we add it into the last active window.
|
static java.lang.String |
MENU_BUNDLES |
static java.lang.String |
MENU_DATA
The identifier of the "Data" menu held in the xml file that defines
the menu bar (e.g., resources/defaultmenu.xml).
|
static java.lang.String |
MENU_DELETEHISTORY
The identifier of the "Deletehistory" menu held in the xml file that defines
the menu bar (e.g., resources/defaultmenu.xml).
|
static java.lang.String |
MENU_DELETEVIEWS
Menu id in the menu xml for the delete views menu
|
static java.lang.String |
MENU_DISPLAYS
The identifier of the "Displays" menu held in the xml file that defines
the menu bar (e.g., resources/defaultmenu.xml).
|
static java.lang.String |
MENU_EDITFORMULAS
the edit formulas menu
|
static java.lang.String |
MENU_HELP
Help menu
|
static java.lang.String |
MENU_HISTORY
The identifier of the "History" menu held in the xml file that defines
the menu bar (e.g., resources/defaultmenu.xml).
|
static java.lang.String |
MENU_HISTORY_BUNDLE |
static java.lang.String |
MENU_HISTORY_FILE |
static java.lang.String |
MENU_LOCATIONS
identifier for locations menu
|
static java.lang.String |
MENU_MAPS
identifier for maps menu
|
static java.lang.String |
MENU_NEWDISPLAY
Id of the "New Display" menu item for the file menu
|
static java.lang.String |
MENU_NEWVIEWS
The identifier of the "New views" menu item held in the xml file that defines
the menu bar (e.g., resources/defaultmenu.xml).
|
static java.lang.String |
MENU_PUBLISH
The identifier of the "Data" menu held in the xml file that defines
the menu bar (e.g., resources/defaultmenu.xml).
|
static java.lang.String |
MENU_PUBLISH_CONFIG
Menu id in the menu xml for the publis/configure menu
|
static java.lang.String |
MENU_SPECIAL
identifier for special menu
|
static java.lang.String |
MENU_VIEW
ID for the View menu
|
static java.lang.String |
MENU_WINDOWS
id for the windows menu
|
static java.lang.String |
PREF_LightWeightPopupEnabled
light weight popup
|
static java.lang.String |
PROP_HELP_EMAIL
property for support form
|
static java.lang.String |
PROP_HELP_NAME
property for support form
|
static java.lang.String |
PROP_HELP_ORG
property for support form
|
static java.lang.String |
PROP_SUPPORT_MESSAGE
property for support form
|
static java.lang.String |
PROP_SUPPORT_PACKAGE
property for support form
|
static long |
startTime
For timing debugs
|
static java.lang.String |
TAG_ACTION
Xml tag for the actions resource
|
static long |
timeSinceLastWait
For timing debugs
|
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 |
---|
IdvUIManager(IntegratedDataViewer idv)
Create me with the IDV
|
Modifier and Type | Method and Description |
---|---|
void |
about()
Popup the about dialog.
|
void |
addChoicesToMenu(DataSource dataSource,
javax.swing.JMenu dataSourceMenu,
javax.swing.JMenu dataMenu)
Add the menu items for dealing with the
DataChoice s from the
given dataSource into the given menu. |
void |
addDataHolderState(java.util.Hashtable data)
Add any UI state concerning the data holders (e.g., window size)
to the bundle.
|
void |
addDataSource(DataSource dataSource)
Tell the data source holders of the change.
|
void |
addDataSourceHolder(DataSourceHolder holder)
Add the given data source holder to the list of data source holders
|
DataControlDialog |
addDCD(DataControlDialog dcd)
Adds the given DataControlDialog to the dcdWindows list.
|
void |
addDisplayControl(DisplayControl control)
Notify the data source holders of a new display control.
|
void |
addStateToBundle(java.util.Hashtable data)
Add any UI state to the bundle.
|
void |
addStationDisplay(NamedStationTable stationTable,
ControlDescriptor cd)
Create the station table display for the given station table
|
void |
addToolbarPreferences(IdvPreferenceManager preferenceManager)
Create the toolbar preference panel
|
void |
addViewMenuItems(DisplayControl control,
java.util.List items)
Gets called by the display controls.
|
void |
applyDataHolderState(java.util.Hashtable misc)
misc contains state that was from a bundle.
|
void |
captureImage(java.lang.String filename)
Deprecated.
Use ImageGenerator.captureImage
|
void |
captureMovie(java.lang.String filename)
Deprecated.
Use ImageGenerator.captureMovie
|
void |
changeState(DataSource dataSource)
Notify the data source of a change in state
|
boolean |
checkHaiku(java.lang.String action)
Just some haiku stuff
|
void |
checkToolbarVisibility()
Check and toggle the toolbar visibility
|
void |
clearWaitCursor()
Helper method to clear any outstanding wait cursor calls.
|
void |
closeCurrentWindow()
Close the currently active window.
|
void |
closeHelpTips()
If created, close the HelpTipDialog window.
|
void |
createDataChoiceMenuItem(DataChoice choice,
javax.swing.JMenu parentMenu,
javax.swing.JMenu dataMenu)
Create the menu items for dealing with the given data choice
|
DataSelector |
createDataSelector()
Create a
DataSelector window. |
DataSelector |
createDataSelector(boolean inOwnWindow)
Create a
DataSelector window. |
DataSelector |
createDataSelector(boolean horizontalOrientation,
boolean inOwnWindow)
Create the data selector
|
DataTree |
createDataTree()
Create a
DataTree object that is not in its own window |
DataTree |
createDataTree(boolean inOwnWindow)
Create a
DataTree object. |
DataTree |
createDataTreeWindow()
Create a
DataTree object that is in its own window |
void |
createInitialDataSelector()
Deprecated.
not used
|
IdvWindow |
createNewWindow()
Create a new window containing a new
MapViewManager |
IdvWindow |
createNewWindow(java.util.List viewManagers)
Create a new IdvWindow for the given viewManager.
|
IdvWindow |
createNewWindow(java.util.List viewManagers,
boolean notifyCollab)
Create a new IdvWindow for the given viewManager.
|
IdvWindow |
createNewWindow(java.util.List viewManagers,
boolean notifyCollab,
java.lang.String skinPath,
org.w3c.dom.Element skinRoot)
Create a new IdvWindow
|
IdvWindow |
createNewWindow(java.util.List viewManagers,
boolean notifyCollab,
java.lang.String title,
java.lang.String skinPath,
org.w3c.dom.Element root)
Create a new window
|
IdvWindow |
createNewWindow(java.util.List viewManagers,
boolean notifyCollab,
java.lang.String title,
java.lang.String skinPath,
org.w3c.dom.Element skinRoot,
boolean show,
WindowInfo windowInfo)
Create a new window
|
IdvWindow |
createNewWindow(java.util.List viewManagers,
java.lang.String skinPath)
Create a new IdvWindow with the lsit of ViewManager-s and the xml skin.
|
IdvWindow |
createNewWindow(java.util.List viewManagers,
java.lang.String skinPath,
java.lang.String windowTitle,
WindowInfo windowInfo)
Create a new IdvWindow with the lsit of ViewManager-s and the xml skin.
|
boolean |
dataSelectorToFront()
If there is a data selector window around then show it.
|
void |
dataSelectorToFrontIfOk()
Deprecated.
Moving away from hard-coded windows
|
void |
dataSourceChanged(DataSource source)
Tell the data source holders of the change.
|
void |
dataSourceTimeChanged(DataSource source)
Tell the data source holders of the change.
|
void |
dataTreeClick(DataTree dataTree,
java.awt.event.MouseEvent event)
The data tree was clicked.
|
void |
deleteHistoryMenuSelected(javax.swing.JMenu fileMenu)
Fill in the delete history menu
|
void |
deleteKeyPressed(DataTree dataTree)
Handle when the delete key is pressed in the data tree
|
void |
displayControlChanged(DisplayControl displayControl)
The display changed
|
void |
displayControlsChanged()
Called by the IDV when there has been a change to the display controls.
|
void |
displayTemplatesChanged()
Use this to notify when any of the display templates changed.
|
void |
disposeAllWindows()
Dispose of all Windows
|
void |
doBasicInitialization()
Do basic initialization
|
void |
doMakeBasicWindows()
Create the basic windows.
|
javax.swing.JPanel |
doMakeControlButtons(boolean vertical)
Creates the icon buttons for creating display controls
|
javax.swing.JMenu |
doMakeDataChoiceMenu(DataChoice dataChoice)
Make the menu for the given data choice
|
java.util.List |
doMakeDataChoiceMenuItems(DataChoice dataChoice,
boolean isUserFormula,
boolean showAll)
Make the menu items for the given data choice
|
java.util.List |
doMakeDataChoiceMenus(DataChoice dataChoice)
Make the menu items for the given data choice
|
java.util.List |
doMakeDataSourceMenuItems(DataSource dataSource,
java.awt.Component src)
Return the list of menu items to use when the user has clicked on a DataSource.
|
javax.swing.JComponent |
doMakeDefaultContents(IdvWindow window,
ViewManager viewManager)
If we don't have a UI skin then this method is called to create the window contents
|
protected IdvXmlUi |
doMakeIdvXmlUi(IdvWindow window,
java.util.List viewManagers,
org.w3c.dom.Element skinRoot)
Factory method to create an xmlui
|
void |
doMakeInitialGui()
Create the first display window
|
javax.swing.JMenuBar |
doMakeMenuBar()
Make the menu bar and menus for the given IdvWindow.
|
javax.swing.JMenuBar |
doMakeMenuBar(IdvWindow idvWindow)
Make the menu bar and menus for the given IdvWindow.
|
static javax.swing.JTextField |
doMakeParamField(java.lang.String delimiter,
boolean includeAliases)
Make a JTextField that is for entering a parameter name.
|
RovingProgress |
doMakeRovingProgressBar()
Make the roving progress bar
|
javax.swing.JPanel |
doMakeStatusBar(IdvWindow window)
Make the status bar for the window.
|
protected javax.swing.JComponent |
doMakeToolbar()
Make the toolbar
|
protected ViewPanel |
doMakeViewPanel()
Factory method for making the ViewPanel
|
void |
editDisplaySettings()
Show the modal display settings dialog
|
void |
editFormulasMenuSelected(javax.swing.JMenu menu)
Add in the dynamic menu for editing formulas
|
boolean |
embedDataChooserInDashboard()
Should we embed the chooser in the dashboard
|
boolean |
embedFieldSelectorInDashboard()
Should we embed the selector in the dashboard
|
boolean |
embedLegendInDashboard()
Should we embed the legends in the dashboard
|
boolean |
embedQuickLinksInDashboard()
Should we embed the quick links in the dashboard
|
void |
favoriteBundlesChanged()
Use this to notify when any of the favorite bundles changed.
|
java.lang.Object |
findComponent(java.lang.String id)
Find the component that is in an IdvWindow with the id
|
protected IdvWindow |
findWindowThatMatches(java.util.List currentWindows,
WindowInfo windowInfo)
Find the window that matches the window info
|
java.lang.String |
getAction(java.lang.String id)
Get the action action for the given action id
|
java.lang.String |
getActionAttr(java.lang.String id,
java.lang.String attr)
Get the given named attribute from the xml element that represents the
action id
|
java.lang.String |
getActionDescription(java.lang.String id)
Get the description for the given action
|
java.lang.String |
getActionImage(java.lang.String id)
Get the image for the given action
|
org.w3c.dom.Element |
getActionNode(java.lang.String id)
Find the xml element for the given action
|
java.util.List |
getActions()
Get the list of (String) action ids.
|
void |
getComponentGroupMenuItems(IdvComponentGroup group,
java.util.List items)
Get component group items
|
java.util.List |
getComponentGroups()
Get the component groups
|
java.util.List |
getComponents()
Get all components in all windows
|
java.util.List |
getDataSourceHolders()
Get the list of DataSource holders
|
javax.swing.JFrame |
getFrame()
If there is a lastActiveFrame then return that.
|
java.util.List |
getMapLocations()
Get the map locations
|
java.util.Hashtable |
getMenuIds()
Get the map of menu ids
|
static java.util.List |
getParamsMenuItems(javax.swing.text.JTextComponent fld,
java.lang.String delimiter,
boolean includeAliases)
A utility method to make a list of menu items of the current parameters
and the aliases.
|
java.awt.GraphicsDevice |
getScreen(java.awt.Point p)
return the screen containing the point, null if none do
|
protected boolean |
getShowControlsInTab()
Do we do control tabs
|
java.lang.String |
getSkinHtml()
Get the skin's HTML
|
java.util.List |
getStandAloneControlDescriptors()
Add the stand alone displays into the display menu
|
javax.swing.border.Border |
getStatusBorder()
Get the border used for the status bar
|
java.lang.StringBuffer |
getSystemInfo()
Get the system info
|
org.w3c.dom.Element |
getToolbarRoot()
Get the root of the toolbar xml
|
javax.swing.JComponent |
getToolbarUI()
Create a gui component of the toolbar
|
protected java.lang.String |
getViewManagerTabLabel(ViewManager viewManager,
javax.swing.JTabbedPane tabs)
Create the tab label for the embedded legend tabs
|
ViewPanel |
getViewPanel()
get the view panel, the one that holds the displays.
|
int |
getWaitCursorCount()
Return the number of open wait cursor calls
|
java.util.List |
getWindowGroup(java.lang.Object group)
This gets all of the objects that are associated with the given
group for all active windows.
|
java.util.List |
getWindowsToPersist()
Get the list of IdvWindows that should be saved in a bundle
|
protected void |
handleMenuDeSelected(java.lang.String id,
javax.swing.JMenu menu,
IdvWindow idvWindow)
DeInitialize the given menu before it is shown
|
protected void |
handleMenuSelected(java.lang.String id,
javax.swing.JMenu menu,
IdvWindow idvWindow)
Initialize the given menu before it is shown
|
boolean |
handleSideLegend(ViewManager viewManager,
javax.swing.JComponent sideLegend)
noop
|
void |
handleWindowActivated(IdvWindow window)
Handle when the window is activated.
|
boolean |
haveBasicWindow()
Do we have a basic window
|
void |
historyMenuSelected(javax.swing.JMenu fileMenu)
User just clicked on the file-history menu.
|
void |
historyMenuSelectedV(javax.swing.JMenu fileMenu,
java.lang.String type)
User just clicked on the file-history menu.
|
void |
init()
Called by the IDV when its initialization is done.
|
void |
initDataSourceHolder(DataSourceHolder holder,
boolean inWindow)
Add the set of data sources to the given holder.
|
void |
initDataTree(DataTree dataTree)
When a new
DataTree is created this method is called. |
void |
initDone()
Called by the IDV when its initialization is done.
|
void |
initHelpTips(boolean checkPrefs)
Create (if null) and show the HelpTipDialog.
|
protected void |
initializeBundleMenu(javax.swing.JMenu bundleMenu)
Add in the menu items for the given display menu
|
protected void |
initializeDisplayMenu(javax.swing.JMenu displayMenu)
Add in the menu items for the given display menu
|
protected void |
initializeViewMenu(javax.swing.JMenu viewMenu)
Add in the menu items for the given view menu
|
void |
initSplash()
Create the splash screen if needed
|
boolean |
isAction(java.lang.String id)
Is the given id an action.
|
boolean |
isMac()
Is this running on a Mac?
|
void |
loadLookAndFeel()
Load in the look and feel
|
void |
loadSkinByIndex(int skinIndex)
Load the skin by index
|
java.util.List |
makeActionMenu(java.lang.Object object,
java.lang.String method,
boolean makeCall)
Make the menu of actions
|
java.util.List |
makeCenterMenus(java.awt.event.ActionListener listener)
Make menus for centering
|
void |
makeDeleteViewsMenu(javax.swing.JMenu menu)
This adds to the given menu a set of MenuItems, one for each saved ViewManager, for
deleting the selected saved ViewManager.
|
java.util.List |
makeSkinMenuItems(java.awt.event.ActionListener listener,
boolean onlyUI,
boolean onlyEmbedded)
Make the skin menu items
|
void |
makeViewStateMenu(javax.swing.JMenu menu)
This adds to the given menu a set of MenuItems, one for each saved viewmanager
in the vmState list.
|
void |
makeViewStateMenu(javax.swing.JMenu menu,
ViewManager vm)
This adds to the given menu a set of MenuItems, one for each saved viewmanager
in the vmState list.
|
protected void |
makeWindowMenu(IdvWindow window,
javax.swing.JMenu menu)
Make the window menu
|
void |
makeWindowsMenu(javax.swing.JMenu menu,
IdvWindow idvWindow)
Make the windows menu.
|
void |
popupCenterMenu(javax.swing.JComponent near,
LatLonWidget latLonWidget)
Popup a centering menu
|
void |
processBundle(SavedBundle bundle)
Pass through to the idv to load in the given bundle
|
protected void |
processBundleMenu(javax.swing.JMenu displayMenu,
int bundleType)
Create the bundle menu for the given list of bundles
|
void |
processDialog(DataControlDialog dcd)
Handle (polymorphically) the
DataControlDialog . |
protected void |
processInstanceMenu(javax.swing.JMenu displayMenu)
Add the instances into the display menu
|
protected void |
processMapMenu(javax.swing.JMenu displayMenu,
boolean makeNew)
Add the map menu into the display menu
|
protected void |
processStandAloneMenu(javax.swing.JMenu displayMenu,
boolean makeNew)
Add the stand alone displays into the display menu
|
protected void |
processStationMenu(javax.swing.JMenu displayMenu,
boolean makeNew)
Add the station menu into the display menu
|
void |
reloadToolbarResources()
Reload the toolbar xml resources
|
void |
removeAllDataSources()
Remove all data sources from the data source holders.
|
void |
removeDataSource(DataSource dataSource)
Remove the data source the data source holders.
|
void |
removeDataSourceHolder(DataSourceHolder holder)
Remove the given data tree from the list of data trees
|
void |
removeDCD(DataControlDialog dcd)
Removes the given DataControlDialog from the dcdWindows list.
|
void |
removeDisplayControl(DisplayControl control)
Notify the data source holders of a removed display control.
|
void |
removeWindow(IdvWindow window)
Remove the window from the list of windows
|
void |
resetLastActiveViewManager()
Update the last active view manager.
|
DataChoice |
selectDataChoice(ControlDescriptor descriptor)
Popup a
DataTreeDialog to let the user select a
DataChoice that the given control
descriptor is applicable to. |
java.util.List |
selectDataChoices(java.util.List operands)
Popup a dialog containing a DataTree for each operand in the given operands list
Return a List of DataChoice's the user selects or null if they canceled.
|
java.util.List |
selectUserChoices(java.lang.String msg,
java.util.List userOperands)
Popup a JTextField containing dialog that allows the user
to enter text values, one for each name in the userChoices List.
|
void |
setAlias(DataSource dataSource)
This prompts the user for the alias name for the given dataSource and
sets the alias on the data source.
|
void |
setDateFormat()
Set the date format from the preferences
|
void |
showAllWindows()
Run through all windows and call show
|
boolean |
showBasicWindow(boolean createThemIfNotThere)
This tries to show one of the main gui windows
|
void |
showBundleDialog()
Popup the favorites manage dialog
|
void |
showBundleDialog(int bundleType)
Popup the dialog that edits the list of bundles
|
void |
showControlDialog(DataTree dataTree,
java.awt.event.MouseEvent event)
Create and show a
DataControlDialog for the DataChoice
in the DataTree at the given mouse x and y (if there is a data choice there). |
void |
showDashboard()
This tries to show one of the main gui windows
|
boolean |
showDataSelector()
Show data selector.
|
void |
showDataSourceDetails(DataSource dataSource)
Show the html description of the given data source.
|
void |
showDataTreeMenu(DataTree dataTree,
java.awt.event.MouseEvent event,
boolean showFullMenu)
Popup a menu for a datachoice object over the tree component at (x,y)
|
void |
showHelp(java.lang.String target)
Show the help identified by the given target
|
void |
showHelp(java.lang.String url,
java.lang.String target)
Show the javahelp with the given base url and help target
|
void |
showHelpTips()
Create (if null) and show the HelpTipDialog
|
void |
showMenu(java.lang.String s)
This automatically pops up the menu identified by the colon delimited string of menu names
|
void |
showMenuInThread(java.lang.String s)
This automatically pops up the menu identified by the colon delimited string of menu names
|
void |
showNormalCursor()
Helper method to show the "normal" cursor.
|
void |
showOrCreateDataSelector()
Deprecated.
Moving away from hard-coded windows
|
static void |
showParamsPopup(javax.swing.text.JTextComponent fld,
java.awt.event.MouseEvent e,
java.lang.String delimiter,
boolean includeAliases)
A utility method to popup a menu listing the current parameters
and the aliases.
|
void |
showResults(DataSourceResults results)
Display any errors that are contained in the given results.
|
void |
showSupportForm()
Show the support request form
|
void |
showSupportForm(java.lang.String description,
java.lang.String stackTrace)
Show the support request form
|
void |
showSupportForm(java.lang.String description,
java.lang.String stackTrace,
javax.swing.JDialog dialog)
Show the support request form
|
void |
showTimeSelection(DataSource dataSource,
java.awt.Component src)
Deprecated.
Don't use this anymore
|
void |
showWaitCursor()
Increment the waitCursorCount and set the wait cursor on the last active frame
|
void |
showWindow(DisplayControl control,
IdvWindow window)
Implementation of the ControlContext method.
|
void |
splashClose()
Close and dispose of the splash window (if it has been created).
|
void |
splashMsg(java.lang.String m)
Show a message in the splash screen (if it exists)
|
void |
startReading(java.lang.Object source)
Start reading
|
void |
stopReading(java.lang.Object source)
Stop reading
|
java.lang.String |
stripAction(java.lang.String id)
Strip any "action:& string from the beginning.
|
void |
toFrontMainWindows()
Run through all windows and call show
|
void |
unpersistWindowInfo(java.util.List windows,
java.util.List newViewManagers,
boolean okToMerge,
boolean fromCollab,
boolean didRemoveAll)
Handle the list of IdvWindow-s from the bundle
|
void |
updateHistoryLinks()
Update history links
|
void |
updateIconBar()
Update the icon toolbar in all windows
|
void |
viewManagerActiveChanged(ViewManager viewManager)
The active state of the view manager has changed
|
void |
viewManagerAdded(ViewManager viewManager)
Be notified of the addition of a VM
|
void |
viewManagerChanged(ViewManager viewManager)
Called when the ViewManager is changed.
|
void |
viewManagerDestroyed(ViewManager viewManager)
Called when the ViewManager is removed.
|
getArgsManager, getCollabManager, getColorTableManager, getDataManager, getIdv, getIdvChooserManager, getIdvClass, getIdvProjectionManager, getIdvUIManager, getImageGenerator, getInstallManager, getJythonManager, getPersistenceManager, getPreferenceManager, getProperty, getProperty, getProperty, getPublishManager, getResourceManager, getStateManager, getStationModelManager, getStore, getVMManager, logException, waitUntilDisplaysAreDone, waitUntilDisplaysAreDone
actionPerformed, close, doMakeContents, getContents, getDialog, getWindow, getWindowTitle, isShowing, removeAll, setMenuBar, setWindowTitle, shouldMakeDialog, show, show, showModal, toFront, windowIsClosing
public static final java.lang.String FIELDTYPE_TEXT
public static final java.lang.String FIELDTYPE_BOOLEAN
public static final java.lang.String FIELDTYPE_CHOICE
public static final java.lang.String FIELDTYPE_FILE
public static final java.lang.String FIELDTYPE_LOCATION
public static final java.lang.String FIELDTYPE_AREA
public static javax.swing.ImageIcon ICON_LOCK
public static javax.swing.ImageIcon ICON_UNLOCK
public static javax.swing.ImageIcon ICON_REMOVE
public static final java.lang.String PROP_SUPPORT_PACKAGE
public static final java.lang.String PROP_SUPPORT_MESSAGE
public static final java.lang.String PROP_HELP_EMAIL
public static final java.lang.String PROP_HELP_ORG
public static final java.lang.String PROP_HELP_NAME
public static final java.lang.String TAG_ACTION
public static final java.lang.String ATTR_ID
public static final java.lang.String ATTR_MAINWINDOW
public static final java.lang.String ATTR_DESCRIPTION
public static final java.lang.String ATTR_GROUP
public static final java.lang.String ATTR_ACTION
public static final java.lang.String ATTR_IMAGE
public static final java.lang.String COMP_FAVORITESBAR
public static final java.lang.String COMP_HELP
public static final java.lang.String COMP_MENUBAR
public static final java.lang.String COMP_TOOLBAR
public static final java.lang.String COMP_DATASELECTOR
public static final java.lang.String COMP_COMPONENT_GROUP
public static final java.lang.String COMP_COMPONENT_CHOOSERS
public static final java.lang.String COMP_COMPONENT_SKIN
public static final java.lang.String COMP_COMPONENT_HTML
public static final java.lang.String COMP_MEMORYMONITOR_VIEW
public static final java.lang.String COMP_MEMORYMONITOR_DASH
public static final java.lang.String COMP_WAITLABEL
public static final java.lang.String COMP_STREAMINGLABEL
public static final java.lang.String COMP_READINGLABEL
public static final java.lang.String COMP_PROGRESSBAR
public static final java.lang.String COMP_DATATREE
public static final java.lang.String COMP_VIEWPANEL
public static final java.lang.String COMP_MESSAGELOGGER
public static final java.lang.String COMP_MESSAGELABEL
public static final java.lang.String COMP_MAPVIEW
public static final java.lang.String COMP_GLOBEVIEW
public static final java.lang.String COMP_TRANSECTVIEW
public static final java.lang.String COMP_VIEW
public static final java.lang.String COMP_STATUSBAR
public static final java.lang.String COMP_CHOOSER
public static final java.lang.String COMP_CHOOSERS
public static final java.lang.String MENU_DATA
public static final java.lang.String MENU_MAPS
public static final java.lang.String MENU_SPECIAL
public static final java.lang.String MENU_LOCATIONS
public static final java.lang.String MENU_HELP
public static final java.lang.String MENU_VIEW
public static final java.lang.String MENU_DELETEVIEWS
public static final java.lang.String MENU_EDITFORMULAS
public static final java.lang.String MENU_NEWVIEWS
public static final java.lang.String MENU_WINDOWS
public static final java.lang.String MENU_PUBLISH
public static final java.lang.String MENU_PUBLISH_CONFIG
public static final java.lang.String MENU_HISTORY
public static final java.lang.String MENU_HISTORY_FILE
public static final java.lang.String MENU_HISTORY_BUNDLE
public static final java.lang.String MENU_DELETEHISTORY
public static final java.lang.String MENU_DISPLAYS
public static final java.lang.String MENU_NEWDISPLAY
protected IdvWindow lastActiveFrame
public static final java.lang.String PREF_LightWeightPopupEnabled
public static final java.lang.String MENU_BUNDLES
public static long timeSinceLastWait
public static long startTime
public IdvUIManager(IntegratedDataViewer idv)
idv
- The IDVpublic void loadLookAndFeel()
public void init()
public void doMakeInitialGui()
public void doMakeBasicWindows()
public java.lang.Object findComponent(java.lang.String id)
id
- idpublic java.util.List getWindowGroup(java.lang.Object group)
group
- The group idpublic java.util.List getComponents()
public java.awt.GraphicsDevice getScreen(java.awt.Point p)
p
- point in the displaypublic void closeCurrentWindow()
public ViewPanel getViewPanel()
protected ViewPanel doMakeViewPanel()
public boolean handleSideLegend(ViewManager viewManager, javax.swing.JComponent sideLegend)
viewManager
- The view managersideLegend
- The side legendpublic void viewManagerAdded(ViewManager viewManager)
viewManager
- The VMpublic void viewManagerDestroyed(ViewManager viewManager)
viewManager
- The ViewManager that was destroyedpublic void viewManagerActiveChanged(ViewManager viewManager)
viewManager
- The view managerpublic void viewManagerChanged(ViewManager viewManager)
viewManager
- The ViewManager that was changedprotected java.lang.String getViewManagerTabLabel(ViewManager viewManager, javax.swing.JTabbedPane tabs)
viewManager
- View manager in the tabtabs
- The tabspublic void initDone()
public java.util.List makeActionMenu(java.lang.Object object, java.lang.String method, boolean makeCall)
object
- object to callmethod
- method to callmakeCall
- If true we call idv.handleActionpublic boolean isAction(java.lang.String id)
id
- The idpublic java.lang.String stripAction(java.lang.String id)
id
- The action idpublic org.w3c.dom.Element getActionNode(java.lang.String id)
id
- The action id. May start with "action:"public java.lang.String getActionAttr(java.lang.String id, java.lang.String attr)
id
- The actionattr
- The attr namepublic java.lang.String getAction(java.lang.String id)
id
- The action idpublic java.lang.String getActionImage(java.lang.String id)
id
- The action idpublic java.lang.String getActionDescription(java.lang.String id)
id
- The action idpublic java.util.List getActions()
public void showWindow(DisplayControl control, IdvWindow window)
control
- The new DisplayControlwindow
- Its windowpublic boolean isMac()
public void initSplash()
public int getWaitCursorCount()
public void showWaitCursor()
showWaitCursor
in class IdvManager
public void showNormalCursor()
showNormalCursor
in class IdvManager
public void clearWaitCursor()
public void startReading(java.lang.Object source)
source
- the object to readpublic void stopReading(java.lang.Object source)
source
- the object to stop readingpublic void showAllWindows()
public void toFrontMainWindows()
public void resetLastActiveViewManager()
public void handleWindowActivated(IdvWindow window)
window
- The windowpublic void removeWindow(IdvWindow window)
window
- The window to removepublic void updateHistoryLinks()
public DataControlDialog addDCD(DataControlDialog dcd)
dcd
- The dialogpublic void removeDCD(DataControlDialog dcd)
dcd
- The dialogpublic void processDialog(DataControlDialog dcd)
DataControlDialog
.
This dialog is used to either select a display control to create
or is used to set the timers used for a DataSource
.dcd
- The dialogprotected void handleMenuSelected(java.lang.String id, javax.swing.JMenu menu, IdvWindow idvWindow)
id
- Id of the menumenu
- The menuidvWindow
- the IDV windowprotected void handleMenuDeSelected(java.lang.String id, javax.swing.JMenu menu, IdvWindow idvWindow)
id
- Id of the menumenu
- The menuidvWindow
- the IDV windowpublic java.util.Hashtable getMenuIds()
public javax.swing.JMenuBar doMakeMenuBar()
public javax.swing.JMenuBar doMakeMenuBar(IdvWindow idvWindow)
idvWindow
- the IDV windowpublic void getComponentGroupMenuItems(IdvComponentGroup group, java.util.List items)
group
- the groupitems
- list of itemspublic java.util.List makeSkinMenuItems(java.awt.event.ActionListener listener, boolean onlyUI, boolean onlyEmbedded)
listener
- the listener for the menuonlyUI
- true if only in the UIonlyEmbedded
- true if only for embeddedpublic java.lang.String getSkinHtml()
public void loadSkinByIndex(int skinIndex)
skinIndex
- index for the skinpublic void makeWindowsMenu(javax.swing.JMenu menu, IdvWindow idvWindow)
menu
- windows menuidvWindow
- the IDV windowprotected void makeWindowMenu(IdvWindow window, javax.swing.JMenu menu)
window
- the windowmenu
- the menupublic void makeViewStateMenu(javax.swing.JMenu menu)
menu
- The menupublic void makeViewStateMenu(javax.swing.JMenu menu, ViewManager vm)
menu
- The menuvm
- The view managerpublic void makeDeleteViewsMenu(javax.swing.JMenu menu)
menu
- The menupublic void editDisplaySettings()
public void editFormulasMenuSelected(javax.swing.JMenu menu)
menu
- edit menu to add topublic void historyMenuSelected(javax.swing.JMenu fileMenu)
fileMenu
- The menu to fillpublic void historyMenuSelectedV(javax.swing.JMenu fileMenu, java.lang.String type)
fileMenu
- The menu to fillpublic void deleteHistoryMenuSelected(javax.swing.JMenu fileMenu)
fileMenu
- the menu to fillpublic void addChoicesToMenu(DataSource dataSource, javax.swing.JMenu dataSourceMenu, javax.swing.JMenu dataMenu)
DataChoice
s from the
given dataSource into the given menu.dataSource
- The data sourcedataSourceMenu
- Its menudataMenu
- The menu to hold the data choice itemspublic void createDataChoiceMenuItem(DataChoice choice, javax.swing.JMenu parentMenu, javax.swing.JMenu dataMenu)
choice
- The data choiceparentMenu
- The parent menudataMenu
- Where to put the itemspublic void processBundle(SavedBundle bundle)
bundle
- The bundle to createprotected void processBundleMenu(javax.swing.JMenu displayMenu, int bundleType)
displayMenu
- The menu to add the bundle menu intobundleType
- Is this for the favorites or the display templatesprotected void processMapMenu(javax.swing.JMenu displayMenu, boolean makeNew)
displayMenu
- The display menumakeNew
- if true, make a new menuprotected void processStationMenu(javax.swing.JMenu displayMenu, boolean makeNew)
displayMenu
- The display menumakeNew
- if true, make a new menupublic java.util.List getStandAloneControlDescriptors()
protected void processStandAloneMenu(javax.swing.JMenu displayMenu, boolean makeNew)
displayMenu
- The display menumakeNew
- if true, make a new menuprotected void processInstanceMenu(javax.swing.JMenu displayMenu)
displayMenu
- The display menuprotected void initializeViewMenu(javax.swing.JMenu viewMenu)
viewMenu
- The view menuprotected void initializeDisplayMenu(javax.swing.JMenu displayMenu)
displayMenu
- The display menuprotected void initializeBundleMenu(javax.swing.JMenu bundleMenu)
bundleMenu
- The display menupublic void showBundleDialog()
public void showBundleDialog(int bundleType)
bundleType
- What is the type of the bundle we are showing an edit dialog forpublic void displayTemplatesChanged()
public void favoriteBundlesChanged()
public void displayControlsChanged()
public void displayControlChanged(DisplayControl displayControl)
displayControl
- display that changedpublic void addStationDisplay(NamedStationTable stationTable, ControlDescriptor cd)
stationTable
- The station tablecd
- The display control descriptor for the station location displaypublic java.util.List doMakeDataSourceMenuItems(DataSource dataSource, java.awt.Component src)
dataSource
- The data sourcesrc
- Where this menu pops uppublic void changeState(DataSource dataSource)
dataSource
- the data source to notifypublic void setAlias(DataSource dataSource)
dataSource
- The data source to set an alias onpublic void showDataSourceDetails(DataSource dataSource)
dataSource
- The data source to show details forpublic void showTimeSelection(DataSource dataSource, java.awt.Component src)
DataControlDialog
for selecting times
for the given dataSourcedataSource
- The data sourcesrc
- Where to popup the dialogpublic javax.swing.JMenu doMakeDataChoiceMenu(DataChoice dataChoice)
dataChoice
- The data choicepublic java.util.List doMakeDataChoiceMenus(DataChoice dataChoice)
dataChoice
- The data choicepublic java.util.List doMakeDataChoiceMenuItems(DataChoice dataChoice, boolean isUserFormula, boolean showAll)
dataChoice
- The data choiceisUserFormula
- Is this data choice a user formulashowAll
- If true then add in the items for creating applicable
displayspublic javax.swing.JPanel doMakeControlButtons(boolean vertical)
vertical
- Alignment is verticalpublic void showDataTreeMenu(DataTree dataTree, java.awt.event.MouseEvent event, boolean showFullMenu)
dataTree
- The data tree to show a menu forevent
- The clickshowFullMenu
- Should show the full menupublic void initHelpTips(boolean checkPrefs)
checkPrefs
- Should the user preferences be checkedpublic void closeHelpTips()
public void showHelpTips()
public void splashMsg(java.lang.String m)
m
- The message to showpublic void splashClose()
public void about()
public void deleteKeyPressed(DataTree dataTree)
dataTree
- The data treepublic void dataTreeClick(DataTree dataTree, java.awt.event.MouseEvent event)
dataTree
- The DataTree
that was clickedevent
- The MouseEvent
public void showControlDialog(DataTree dataTree, java.awt.event.MouseEvent event)
DataControlDialog
for the DataChoice
in the DataTree at the given mouse x and y (if there is a data choice there).dataTree
- The DataTreeevent
- The MouseEvent
public javax.swing.JPanel doMakeStatusBar(IdvWindow window)
MemoryMonitor
and a message label.
This does not add the status bar to the frame though.window
- The windowpublic RovingProgress doMakeRovingProgressBar()
public javax.swing.border.Border getStatusBorder()
public javax.swing.JFrame getFrame()
getFrame
in class WindowHolder
public void doBasicInitialization()
protected IdvWindow findWindowThatMatches(java.util.List currentWindows, WindowInfo windowInfo)
currentWindows
- list of windowswindowInfo
- the info to search forpublic void unpersistWindowInfo(java.util.List windows, java.util.List newViewManagers, boolean okToMerge, boolean fromCollab, boolean didRemoveAll)
windows
- The windows form the bundle.newViewManagers
- List of the new view managers. We remove any ones we initokToMerge
- true if okay to mergefromCollab
- From collaborationdidRemoveAll
- true if remove all was donepublic void disposeAllWindows()
public IdvWindow createNewWindow()
MapViewManager
public IdvWindow createNewWindow(java.util.List viewManagers)
viewManagers
- The view managerspublic IdvWindow createNewWindow(java.util.List viewManagers, java.lang.String skinPath)
viewManagers
- The view managers to put in the window.skinPath
- The skinpublic IdvWindow createNewWindow(java.util.List viewManagers, boolean notifyCollab)
viewManagers
- The view managersnotifyCollab
- Should the CollabManager
be notifiedpublic IdvWindow createNewWindow(java.util.List viewManagers, boolean notifyCollab, java.lang.String title, java.lang.String skinPath, org.w3c.dom.Element root)
viewManagers
- the ViewManagers for the windownotifyCollab
- true if we should notify collaboratorstitle
- the window titleskinPath
- the path tot he skinroot
- the skin root elementpublic IdvWindow createNewWindow(java.util.List viewManagers, java.lang.String skinPath, java.lang.String windowTitle, WindowInfo windowInfo)
viewManagers
- The view managers to put in the window.skinPath
- The skinwindowTitle
- titlewindowInfo
- the WindowInfopublic IdvWindow createNewWindow(java.util.List viewManagers, boolean notifyCollab, java.lang.String skinPath, org.w3c.dom.Element skinRoot)
viewManagers
- The view managers to put in the window.notifyCollab
- Should we tell the collab facilityskinPath
- The skin. May be null.skinRoot
- Root of the skin xml. May be null.public IdvWindow createNewWindow(java.util.List viewManagers, boolean notifyCollab, java.lang.String title, java.lang.String skinPath, org.w3c.dom.Element skinRoot, boolean show, WindowInfo windowInfo)
viewManagers
- The view managers to put in the window.notifyCollab
- Should we tell the collab facilitytitle
- The titleskinPath
- The skin. May be null.skinRoot
- Root of the skin xml. May be null.show
- If true show the window once created, otherwise leave
it to the caller.public java.util.List getComponentGroups()
public java.util.List getWindowsToPersist()
public javax.swing.JComponent getToolbarUI()
protected IdvXmlUi doMakeIdvXmlUi(IdvWindow window, java.util.List viewManagers, org.w3c.dom.Element skinRoot)
window
- The windowviewManagers
- The view managerskinRoot
- The skin xmlprotected javax.swing.JComponent doMakeToolbar()
public void reloadToolbarResources()
public void updateIconBar()
public void checkToolbarVisibility()
public javax.swing.JComponent doMakeDefaultContents(IdvWindow window, ViewManager viewManager)
window
- The windowviewManager
- The ViewManager being shown in the windowpublic org.w3c.dom.Element getToolbarRoot()
public void showResults(DataSourceResults results)
results
- The results to showpublic void removeDataSourceHolder(DataSourceHolder holder)
holder
- The holder to removepublic void addDataSourceHolder(DataSourceHolder holder)
holder
- The holder to initializepublic void initDataSourceHolder(DataSourceHolder holder, boolean inWindow)
holder
- The holder to initializeinWindow
- Put the holder in a window?public void addDisplayControl(DisplayControl control)
control
- The new controlpublic void showDashboard()
public boolean haveBasicWindow()
public boolean showBasicWindow(boolean createThemIfNotThere)
createThemIfNotThere
- If true then, if there isn't any
non view containing windows then call doMakeBasicWindows()public void addViewMenuItems(DisplayControl control, java.util.List items)
control
- The controlitems
- List of menu itemsprotected boolean getShowControlsInTab()
public void removeDisplayControl(DisplayControl control)
control
- The removed controlpublic void removeAllDataSources()
public void removeDataSource(DataSource dataSource)
dataSource
- The removed data sourcepublic void dataSourceChanged(DataSource source)
source
- The data source that changed.public void dataSourceTimeChanged(DataSource source)
source
- The data source that changed.public void addDataSource(DataSource dataSource)
dataSource
- The new data sourcepublic void addStateToBundle(java.util.Hashtable data)
data
- Where to put the state.public void addDataHolderState(java.util.Hashtable data)
data
- Where to put the state.public void applyDataHolderState(java.util.Hashtable misc)
misc
- The statepublic java.util.List getDataSourceHolders()
public void showMenu(java.lang.String s)
s
- colon delimited list of menu namespublic void showMenuInThread(java.lang.String s)
s
- colon delimited list of menu namespublic void showHelp(java.lang.String target)
target
- The target in the help systempublic void showHelp(java.lang.String url, java.lang.String target)
url
- The base url. May be null, if so use the StateManager's getDefaultHelpUrltarget
- The javahelp target. May be null, if so use the StateManager's getDefaultHelpTargetpublic DataTree createDataTree(boolean inOwnWindow)
DataTree
object. Put it in its own window
if the parameter inOwnWindow is true.inOwnWindow
- Put it in its own windowDataTree
public DataTree createDataTreeWindow()
DataTree
object that is in its own windowDataTree
public DataTree createDataTree()
DataTree
object that is not in its own windowDataTree
public void initDataTree(DataTree dataTree)
DataTree
is created this method is called.
It adds a mouseListener on the tree to listen for mouseClick events
which it then calls the dataTreeClick method.dataTree
- The DataTree
to initializepublic DataSelector createDataSelector()
DataSelector
window.
Put it in its own window if the parameter inOwnWindow is true.DataSelector
public boolean embedFieldSelectorInDashboard()
public boolean embedQuickLinksInDashboard()
public boolean embedDataChooserInDashboard()
public boolean embedLegendInDashboard()
public void showOrCreateDataSelector()
public void dataSelectorToFrontIfOk()
public boolean showDataSelector()
public boolean dataSelectorToFront()
public void createInitialDataSelector()
public DataSelector createDataSelector(boolean inOwnWindow)
DataSelector
window.
Put it in its own window if the parameter inOwnWindow is true.inOwnWindow
- Should the data selector be in its own window.DataSelector
public DataSelector createDataSelector(boolean horizontalOrientation, boolean inOwnWindow)
horizontalOrientation
- Do we have all 4 components horizontal
or do we stack the 'Displays' and 'Times' componentinOwnWindow
- Should we popup a windowpublic DataChoice selectDataChoice(ControlDescriptor descriptor)
DataTreeDialog
to let the user select a
DataChoice
that the given control
descriptor is applicable to.descriptor
- The control descriptorpublic java.util.List selectDataChoices(java.util.List operands)
operands
- List of param namesDataChoice
spublic java.util.List selectUserChoices(java.lang.String msg, java.util.List userOperands)
msg
- The message to display in the GUIuserOperands
- List of DataOperand-s, one for each valuepublic boolean checkHaiku(java.lang.String action)
action
- some haiku stuffpublic void captureImage(java.lang.String filename)
filename
- The image filenamepublic void captureMovie(java.lang.String filename)
filename
- The movie filenamepublic void showSupportForm()
public void showSupportForm(java.lang.String description, java.lang.String stackTrace)
description
- Default value for the description form entrystackTrace
- The stack trace that caused this error.public void showSupportForm(java.lang.String description, java.lang.String stackTrace, javax.swing.JDialog dialog)
description
- Default value for the description form entrystackTrace
- The stack trace that caused this error.dialog
- The dialog to put the gui in, if non-null.public java.lang.StringBuffer getSystemInfo()
public void addToolbarPreferences(IdvPreferenceManager preferenceManager)
preferenceManager
- The preference managerpublic void setDateFormat()
public static java.util.List getParamsMenuItems(javax.swing.text.JTextComponent fld, java.lang.String delimiter, boolean includeAliases)
fld
- fld to setdelimiter
- delimiter to use. If null then do fld.setTextincludeAliases
- Do we include the list of aliasespublic static void showParamsPopup(javax.swing.text.JTextComponent fld, java.awt.event.MouseEvent e, java.lang.String delimiter, boolean includeAliases)
fld
- fld to sete
- mouse eventdelimiter
- delimiter to use. If null then do fld.setTextincludeAliases
- Do we include the list of aliasespublic static javax.swing.JTextField doMakeParamField(java.lang.String delimiter, boolean includeAliases)
delimiter
- If non-null then we append the name from the popup menu,
else we set the text on the field.includeAliases
- Include the list of aliases in the popuppublic void popupCenterMenu(javax.swing.JComponent near, LatLonWidget latLonWidget)
near
- component to popup nearlatLonWidget
- the lat/lon widgetpublic java.util.List makeCenterMenus(java.awt.event.ActionListener listener)
listener
- a listener for the actionspublic java.util.List getMapLocations()