|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.ui.WindowHolder
ucar.unidata.idv.IdvManager
ucar.unidata.idv.ui.IdvUIManager
public class IdvUIManager
Manages the user interface for the IDV
| Field Summary | |
|---|---|
static String |
ATTR_ACTION
Xml attribute name for the action in the actions resource |
static String |
ATTR_DESCRIPTION
Xml attribute name for the description in the actions resource |
static String |
ATTR_GROUP
Xml attribute name for the group in the actions resource |
static String |
ATTR_ID
Xml attribute name for the in the actions resource |
static String |
ATTR_IMAGE
Xml attribute name for the image in the actions resource |
static String |
ATTR_MAINWINDOW
Xml attribute name for skin mainwindow attribute |
static String |
COMP_CHOOSER
Xml tag name for the chooser tag. |
static String |
COMP_CHOOSERS
tag for xmlui to show choosers |
static String |
COMP_COMPONENT_CHOOSERS
The identifier of the choosers component |
static String |
COMP_COMPONENT_GROUP
The identifier of the group component |
static String |
COMP_COMPONENT_HTML
The identifier for html |
static String |
COMP_COMPONENT_SKIN
The identifier for skins |
static String |
COMP_DATASELECTOR
The identifier of the data selector component |
static String |
COMP_DATATREE
Xml tag name for datatree |
static String |
COMP_FAVORITESBAR
The identifier of the toolbar component |
static String |
COMP_GLOBEVIEW
Xml tag name for map view manager |
static String |
COMP_HELP
Help tag for xmlui |
static String |
COMP_MAPVIEW
Xml tag name for map view manager |
static String |
COMP_MEMORYMONITOR
The identifier of the toolbar component |
static String |
COMP_MENUBAR
The identifier of the menubar component |
static String |
COMP_MESSAGELABEL
Xml tag name for messagelabel |
static String |
COMP_MESSAGELOGGER
Xml tag name for messagelogger |
static String |
COMP_PROGRESSBAR
The identifier of the progress bar |
static String |
COMP_READINGLABEL
The identifier of the wait label |
static String |
COMP_STATUSBAR
Xml tag name for status label |
static String |
COMP_STREAMINGLABEL
The identifier of the streaming indicator |
static String |
COMP_TOOLBAR
The identifier of the toolbar component |
static String |
COMP_TRANSECTVIEW
Xml tag name for map view manager |
static String |
COMP_VIEW
Xml tag name for any view manager |
static String |
COMP_VIEWPANEL
Xml tag name for the panel that holds all of the views |
static String |
COMP_WAITLABEL
The identifier of the wait label |
static String |
FIELDTYPE_AREA
type names for user data choices gui creation |
static String |
FIELDTYPE_BOOLEAN
type names for user data choices gui creation |
static String |
FIELDTYPE_CHOICE
type names for user data choices gui creation |
static String |
FIELDTYPE_FILE
type names for user data choices gui creation |
static String |
FIELDTYPE_LOCATION
type names for user data choices gui creation |
static String |
FIELDTYPE_TEXT
type names for user data choices gui creation |
static ImageIcon |
ICON_LOCK
The icon used to show locked legend components |
static ImageIcon |
ICON_REMOVE
Icon used to remove displays |
static 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 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 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 String |
MENU_DELETEVIEWS
Menu id in the menu xml for the delete views menu |
static 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 String |
MENU_EDITFORMULAS
the edit formulas menu |
static String |
MENU_HELP
Help menu |
static 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 String |
MENU_LOCATIONS
identifier for locations menu |
static String |
MENU_MAPS
identifier for maps menu |
static String |
MENU_NEWDISPLAY
Id of the "New Display" menu item for the file menu |
static 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 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 String |
MENU_PUBLISH_CONFIG
Menu id in the menu xml for the publis/configure menu |
static String |
MENU_SPECIAL
identifier for special menu |
static String |
MENU_VIEW
ID for the View menu |
static String |
MENU_WINDOWS
id for the windows menu |
static String |
PREF_LightWeightPopupEnabled
light weight popup |
static String |
PROP_HELP_EMAIL
property for support form |
static String |
PROP_HELP_NAME
property for support form |
static String |
PROP_HELP_ORG
property for support form |
static String |
PROP_SUPPORT_MESSAGE
property for support form |
static String |
PROP_SUPPORT_PACKAGE
property for support form |
static long |
startTime
For timing debugs |
static String |
TAG_ACTION
Xml tag for the actions resource |
static long |
timeSinceLastWait
For timing debugs |
| Fields inherited from class ucar.unidata.ui.WindowHolder |
|---|
contents, dialog, frame, window |
| Constructor Summary | |
|---|---|
IdvUIManager(IntegratedDataViewer idv)
Create me with the IDV |
|
| Method Summary | |
|---|---|
void |
about()
Popup the about dialog. |
void |
addChoicesToMenu(DataSource dataSource,
JMenu dataSourceMenu,
JMenu dataMenu)
Add the menu items for dealing with the DataChoices from the
given dataSource into the given menu. |
void |
addDataHolderState(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(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,
List items)
Gets called by the display controls. |
void |
applyDataHolderState(Hashtable misc)
misc contains state that was from a bundle. |
void |
captureImage(String filename)
Deprecated. Use ImageGenerator.captureImage |
void |
captureMovie(String filename)
Deprecated. Use ImageGenerator.captureMovie |
void |
changeState(DataSource dataSource)
Notify the data source of a change in state |
boolean |
checkHaiku(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,
JMenu parentMenu,
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(List viewManagers)
Create a new IdvWindow for the given viewManager. |
IdvWindow |
createNewWindow(List viewManagers,
boolean notifyCollab)
Create a new IdvWindow for the given viewManager. |
IdvWindow |
createNewWindow(List viewManagers,
boolean notifyCollab,
String skinPath,
Element skinRoot)
Create a new IdvWindow |
IdvWindow |
createNewWindow(List viewManagers,
boolean notifyCollab,
String title,
String skinPath,
Element root)
Create a new window |
IdvWindow |
createNewWindow(List viewManagers,
boolean notifyCollab,
String title,
String skinPath,
Element skinRoot,
boolean show,
WindowInfo windowInfo)
Create a new window |
IdvWindow |
createNewWindow(List viewManagers,
String skinPath)
Create a new IdvWindow with the lsit of ViewManager-s and the xml skin. |
IdvWindow |
createNewWindow(List viewManagers,
String skinPath,
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,
MouseEvent event)
The data tree was clicked. |
void |
deleteHistoryMenuSelected(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. |
JPanel |
doMakeControlButtons(boolean vertical)
Creates the icon buttons for creating display controls |
JMenu |
doMakeDataChoiceMenu(DataChoice dataChoice)
Make the menu for the given data choice |
List |
doMakeDataChoiceMenuItems(DataChoice dataChoice,
boolean isUserFormula,
boolean showAll)
Make the menu items for the given data choice |
List |
doMakeDataChoiceMenus(DataChoice dataChoice)
Make the menu items for the given data choice |
List |
doMakeDataSourceMenuItems(DataSource dataSource,
Component src)
Return the list of menu items to use when the user has clicked on a DataSource. |
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,
List viewManagers,
Element skinRoot)
Factory method to create an xmlui |
void |
doMakeInitialGui()
Create the first display window |
JMenuBar |
doMakeMenuBar()
Make the menu bar and menus for the given IdvWindow. |
JMenuBar |
doMakeMenuBar(IdvWindow idvWindow)
Make the menu bar and menus for the given IdvWindow. |
static JTextField |
doMakeParamField(String delimiter,
boolean includeAliases)
Make a JTextField that is for entering a parameter name. |
RovingProgress |
doMakeRovingProgressBar()
Make the roving progress bar |
JPanel |
doMakeStatusBar(IdvWindow window)
Make the status bar for the window. |
protected JComponent |
doMakeToolbar()
Make the toolbar |
protected ViewPanel |
doMakeViewPanel()
Factory method for making the ViewPanel |
void |
editDisplaySettings()
Show the modal display settings dialog |
void |
editFormulasMenuSelected(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. |
Object |
findComponent(String id)
Find the component that is in an IdvWindow with the id |
protected IdvWindow |
findWindowThatMatches(List currentWindows,
WindowInfo windowInfo)
Find the window that matches the window info |
String |
getAction(String id)
Get the action action for the given action id |
String |
getActionAttr(String id,
String attr)
Get the given named attribute from the xml element that represents the action id |
String |
getActionDescription(String id)
Get the description for the given action |
String |
getActionImage(String id)
Get the image for the given action |
Element |
getActionNode(String id)
Find the xml element for the given action |
List |
getActions()
Get the list of (String) action ids. |
void |
getComponentGroupMenuItems(IdvComponentGroup group,
List items)
Get component group items |
List |
getComponentGroups()
Get the component groups |
List |
getComponents()
Get all components in all windows |
List |
getDataSourceHolders()
Get the list of DataSource holders |
JFrame |
getFrame()
If there is a lastActiveFrame then return that. |
List |
getMapLocations()
Get the map locations |
Hashtable |
getMenuIds()
Get the map of menu ids |
static List |
getParamsMenuItems(JTextComponent fld,
String delimiter,
boolean includeAliases)
A utility method to make a list of menu items of the current parameters and the aliases. |
GraphicsDevice |
getScreen(Point p)
return the screen containing the point, null if none do |
protected boolean |
getShowControlsInTab()
Do we do control tabs |
String |
getSkinHtml()
Get the skin's HTML |
List |
getStandAloneControlDescriptors()
Add the stand alone displays into the display menu |
Border |
getStatusBorder()
Get the border used for the status bar |
StringBuffer |
getSystemInfo()
Get the system info |
Element |
getToolbarRoot()
Get the root of the toolbar xml |
JComponent |
getToolbarUI()
Create a gui component of the toolbar |
protected String |
getViewManagerTabLabel(ViewManager viewManager,
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 |
List |
getWindowGroup(Object group)
This gets all of the objects that are associated with the given group for all active windows. |
List |
getWindowsToPersist()
Get the list of IdvWindows that should be saved in a bundle |
protected void |
handleMenuDeSelected(String id,
JMenu menu,
IdvWindow idvWindow)
DeInitialize the given menu before it is shown |
protected void |
handleMenuSelected(String id,
JMenu menu,
IdvWindow idvWindow)
Initialize the given menu before it is shown |
boolean |
handleSideLegend(ViewManager viewManager,
JComponent sideLegend)
noop |
void |
handleWindowActivated(IdvWindow window)
Handle when the window is activated. |
boolean |
haveBasicWindow()
Do we have a basic window |
void |
historyMenuSelected(JMenu fileMenu)
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 |
initializeDisplayMenu(JMenu displayMenu)
Add in the menu items for the given display menu |
protected void |
initializeViewMenu(JMenu viewMenu)
Add in the menu items for the given view menu |
void |
initSplash()
Create the splash screen if needed |
boolean |
isAction(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 |
List |
makeActionMenu(Object object,
String method,
boolean makeCall)
Make the menu of actions |
List |
makeCenterMenus(ActionListener listener)
Make menus for centering |
void |
makeDeleteViewsMenu(JMenu menu)
This adds to the given menu a set of MenuItems, one for each saved ViewManager, for deleting the selected saved ViewManager. |
List |
makeSkinMenuItems(ActionListener listener,
boolean onlyUI,
boolean onlyEmbedded)
Make the skin menu items |
void |
makeViewStateMenu(JMenu menu)
This adds to the given menu a set of MenuItems, one for each saved viewmanager in the vmState list. |
void |
makeViewStateMenu(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,
JMenu menu)
Make the window menu |
void |
makeWindowsMenu(JMenu menu,
IdvWindow idvWindow)
Make the windows menu. |
void |
popupCenterMenu(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(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(JMenu displayMenu)
Add the instances into the display menu |
protected void |
processMapMenu(JMenu displayMenu,
boolean makeNew)
Add the map menu into the display menu |
protected void |
processStandAloneMenu(JMenu displayMenu,
boolean makeNew)
Add the stand alone displays into the display menu |
protected void |
processStationMenu(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. |
List |
selectDataChoices(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. |
List |
selectUserChoices(String msg,
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,
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,
MouseEvent event,
boolean showFullMenu)
Popup a menu for a datachoice object over the tree component at (x,y) |
void |
showHelp(String target)
Show the help identified by the given target |
void |
showHelp(String url,
String target)
Show the javahelp with the given base url and help target |
void |
showHelpTips()
Create (if null) and show the HelpTipDialog |
void |
showMenu(String s)
This automatically pops up the menu identified by the colon delimited string of menu names |
void |
showMenuInThread(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(JTextComponent fld,
MouseEvent e,
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(String description,
String stackTrace)
Show the support request form |
void |
showSupportForm(String description,
String stackTrace,
JDialog dialog)
Show the support request form |
void |
showTimeSelection(DataSource dataSource,
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(String m)
Show a message in the splash screen (if it exists) |
void |
startReading(Object source)
Start reading |
void |
stopReading(Object source)
Stop reading |
String |
stripAction(String id)
Strip any "action:& string from the beginning. |
void |
toFrontMainWindows()
Run through all windows and call show |
void |
unpersistWindowInfo(List windows,
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. |
| Methods inherited from class ucar.unidata.ui.WindowHolder |
|---|
actionPerformed, close, doMakeContents, getContents, getDialog, getWindow, getWindowTitle, isShowing, removeAll, setMenuBar, setWindowTitle, shouldMakeDialog, show, show, showModal, toFront, windowIsClosing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FIELDTYPE_TEXT
public static final String FIELDTYPE_BOOLEAN
public static final String FIELDTYPE_CHOICE
public static final String FIELDTYPE_FILE
public static final String FIELDTYPE_LOCATION
public static final String FIELDTYPE_AREA
public static ImageIcon ICON_LOCK
public static ImageIcon ICON_UNLOCK
public static ImageIcon ICON_REMOVE
public static final String PROP_SUPPORT_PACKAGE
public static final String PROP_SUPPORT_MESSAGE
public static final String PROP_HELP_EMAIL
public static final String PROP_HELP_ORG
public static final String PROP_HELP_NAME
public static final String TAG_ACTION
public static final String ATTR_ID
public static final String ATTR_MAINWINDOW
public static final String ATTR_DESCRIPTION
public static final String ATTR_GROUP
public static final String ATTR_ACTION
public static final String ATTR_IMAGE
public static final String COMP_FAVORITESBAR
public static final String COMP_HELP
public static final String COMP_MENUBAR
public static final String COMP_TOOLBAR
public static final String COMP_DATASELECTOR
public static final String COMP_COMPONENT_GROUP
public static final String COMP_COMPONENT_CHOOSERS
public static final String COMP_COMPONENT_SKIN
public static final String COMP_COMPONENT_HTML
public static final String COMP_MEMORYMONITOR
public static final String COMP_WAITLABEL
public static final String COMP_STREAMINGLABEL
public static final String COMP_READINGLABEL
public static final String COMP_PROGRESSBAR
public static final String COMP_DATATREE
public static final String COMP_VIEWPANEL
public static final String COMP_MESSAGELOGGER
public static final String COMP_MESSAGELABEL
public static final String COMP_MAPVIEW
public static final String COMP_GLOBEVIEW
public static final String COMP_TRANSECTVIEW
public static final String COMP_VIEW
public static final String COMP_STATUSBAR
public static final String COMP_CHOOSER
public static final String COMP_CHOOSERS
public static final String MENU_DATA
public static final String MENU_MAPS
public static final String MENU_SPECIAL
public static final String MENU_LOCATIONS
public static final String MENU_HELP
public static final String MENU_VIEW
public static final String MENU_DELETEVIEWS
public static final String MENU_EDITFORMULAS
public static final String MENU_NEWVIEWS
public static final String MENU_WINDOWS
public static final String MENU_PUBLISH
public static final String MENU_PUBLISH_CONFIG
public static final String MENU_HISTORY
public static final String MENU_DELETEHISTORY
public static final String MENU_DISPLAYS
public static final String MENU_NEWDISPLAY
protected IdvWindow lastActiveFrame
public static final String PREF_LightWeightPopupEnabled
public static long timeSinceLastWait
public static long startTime
| Constructor Detail |
|---|
public IdvUIManager(IntegratedDataViewer idv)
idv - The IDV| Method Detail |
|---|
public void loadLookAndFeel()
public void init()
public void doMakeInitialGui()
public void doMakeBasicWindows()
public Object findComponent(String id)
id - id
public List getWindowGroup(Object group)
group - The group id
public List getComponents()
public GraphicsDevice getScreen(Point p)
p - point in the display
public void closeCurrentWindow()
public ViewPanel getViewPanel()
protected ViewPanel doMakeViewPanel()
public boolean handleSideLegend(ViewManager viewManager,
JComponent sideLegend)
viewManager - The view managersideLegend - The side legend
public 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 changed
protected String getViewManagerTabLabel(ViewManager viewManager,
JTabbedPane tabs)
viewManager - View manager in the tabtabs - The tabs
public void initDone()
public List makeActionMenu(Object object,
String method,
boolean makeCall)
object - object to callmethod - method to callmakeCall - If true we call idv.handleAction
public boolean isAction(String id)
id - The id
public String stripAction(String id)
id - The action id
public Element getActionNode(String id)
id - The action id. May start with "action:"
public String getActionAttr(String id,
String attr)
id - The actionattr - The attr name
public String getAction(String id)
id - The action id
public String getActionImage(String id)
id - The action id
public String getActionDescription(String id)
id - The action id
public 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 IdvManagerpublic void showNormalCursor()
showNormalCursor in class IdvManagerpublic void clearWaitCursor()
public void startReading(Object source)
source - the object to readpublic void stopReading(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 dialog
public 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 dialog
protected void handleMenuSelected(String id,
JMenu menu,
IdvWindow idvWindow)
id - Id of the menumenu - The menuidvWindow - the IDV window
protected void handleMenuDeSelected(String id,
JMenu menu,
IdvWindow idvWindow)
id - Id of the menumenu - The menuidvWindow - the IDV windowpublic Hashtable getMenuIds()
public JMenuBar doMakeMenuBar()
public JMenuBar doMakeMenuBar(IdvWindow idvWindow)
idvWindow - the IDV window
public void getComponentGroupMenuItems(IdvComponentGroup group,
List items)
group - the groupitems - list of items
public List makeSkinMenuItems(ActionListener listener,
boolean onlyUI,
boolean onlyEmbedded)
listener - the listener for the menuonlyUI - true if only in the UIonlyEmbedded - true if only for embedded
public String getSkinHtml()
public void loadSkinByIndex(int skinIndex)
skinIndex - index for the skin
public void makeWindowsMenu(JMenu menu,
IdvWindow idvWindow)
menu - windows menuidvWindow - the IDV window
protected void makeWindowMenu(IdvWindow window,
JMenu menu)
window - the windowmenu - the menupublic void makeViewStateMenu(JMenu menu)
menu - The menu
public void makeViewStateMenu(JMenu menu,
ViewManager vm)
menu - The menuvm - The view managerpublic void makeDeleteViewsMenu(JMenu menu)
menu - The menupublic void editDisplaySettings()
public void editFormulasMenuSelected(JMenu menu)
menu - edit menu to add topublic void historyMenuSelected(JMenu fileMenu)
fileMenu - The menu to fillpublic void deleteHistoryMenuSelected(JMenu fileMenu)
fileMenu - the menu to fill
public void addChoicesToMenu(DataSource dataSource,
JMenu dataSourceMenu,
JMenu dataMenu)
DataChoices from the
given dataSource into the given menu.
dataSource - The data sourcedataSourceMenu - Its menudataMenu - The menu to hold the data choice items
public void createDataChoiceMenuItem(DataChoice choice,
JMenu parentMenu,
JMenu dataMenu)
choice - The data choiceparentMenu - The parent menudataMenu - Where to put the itemspublic void processBundle(SavedBundle bundle)
bundle - The bundle to create
protected void processBundleMenu(JMenu displayMenu,
int bundleType)
displayMenu - The menu to add the bundle menu intobundleType - Is this for the favorites or the display templates
protected void processMapMenu(JMenu displayMenu,
boolean makeNew)
displayMenu - The display menumakeNew - if true, make a new menu
protected void processStationMenu(JMenu displayMenu,
boolean makeNew)
displayMenu - The display menumakeNew - if true, make a new menupublic List getStandAloneControlDescriptors()
protected void processStandAloneMenu(JMenu displayMenu,
boolean makeNew)
displayMenu - The display menumakeNew - if true, make a new menuprotected void processInstanceMenu(JMenu displayMenu)
displayMenu - The display menuprotected void initializeViewMenu(JMenu viewMenu)
viewMenu - The view menuprotected void initializeDisplayMenu(JMenu displayMenu)
displayMenu - 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 changed
public void addStationDisplay(NamedStationTable stationTable,
ControlDescriptor cd)
stationTable - The station tablecd - The display control descriptor for the station location display
public List doMakeDataSourceMenuItems(DataSource dataSource,
Component src)
dataSource - The data sourcesrc - Where this menu pops up
public 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 for
public void showTimeSelection(DataSource dataSource,
Component src)
DataControlDialog for selecting times
for the given dataSource
dataSource - The data sourcesrc - Where to popup the dialogpublic JMenu doMakeDataChoiceMenu(DataChoice dataChoice)
dataChoice - The data choice
public List doMakeDataChoiceMenus(DataChoice dataChoice)
dataChoice - The data choice
public 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
displays
public JPanel doMakeControlButtons(boolean vertical)
vertical - Alignment is vertical
public void showDataTreeMenu(DataTree dataTree,
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(String m)
m - The message to showpublic void splashClose()
public void about()
public void deleteKeyPressed(DataTree dataTree)
dataTree - The data tree
public void dataTreeClick(DataTree dataTree,
MouseEvent event)
dataTree - The DataTree that was clickedevent - The MouseEvent
public void showControlDialog(DataTree dataTree,
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 MouseEventpublic JPanel doMakeStatusBar(IdvWindow window)
MemoryMonitor and a message label.
This does not add the status bar to the frame though.
window - The window
public RovingProgress doMakeRovingProgressBar()
public Border getStatusBorder()
public JFrame getFrame()
getFrame in class WindowHolderpublic void doBasicInitialization()
protected IdvWindow findWindowThatMatches(List currentWindows,
WindowInfo windowInfo)
currentWindows - list of windowswindowInfo - the info to search for
public void unpersistWindowInfo(List windows,
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(List viewManagers)
viewManagers - The view managers
public IdvWindow createNewWindow(List viewManagers,
String skinPath)
viewManagers - The view managers to put in the window.skinPath - The skin
public IdvWindow createNewWindow(List viewManagers,
boolean notifyCollab)
viewManagers - The view managersnotifyCollab - Should the CollabManager
be notified
public IdvWindow createNewWindow(List viewManagers,
boolean notifyCollab,
String title,
String skinPath,
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 element
public IdvWindow createNewWindow(List viewManagers,
String skinPath,
String windowTitle,
WindowInfo windowInfo)
viewManagers - The view managers to put in the window.skinPath - The skinwindowTitle - titlewindowInfo - the WindowInfo
public IdvWindow createNewWindow(List viewManagers,
boolean notifyCollab,
String skinPath,
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(List viewManagers,
boolean notifyCollab,
String title,
String skinPath,
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 List getComponentGroups()
public List getWindowsToPersist()
public JComponent getToolbarUI()
protected IdvXmlUi doMakeIdvXmlUi(IdvWindow window,
List viewManagers,
Element skinRoot)
window - The windowviewManagers - The view managerskinRoot - The skin xml
protected JComponent doMakeToolbar()
public void reloadToolbarResources()
public void updateIconBar()
public void checkToolbarVisibility()
public JComponent doMakeDefaultContents(IdvWindow window,
ViewManager viewManager)
window - The windowviewManager - The ViewManager being shown in the window
public 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 initialize
public 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,
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(Hashtable data)
data - Where to put the state.public void addDataHolderState(Hashtable data)
data - Where to put the state.public void applyDataHolderState(Hashtable misc)
misc - The statepublic List getDataSourceHolders()
public void showMenu(String s)
s - colon delimited list of menu namespublic void showMenuInThread(String s)
s - colon delimited list of menu namespublic void showHelp(String target)
target - The target in the help system
public void showHelp(String url,
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 window
DataTreepublic DataTree createDataTreeWindow()
DataTree object that is in its own window
DataTreepublic DataTree createDataTree()
DataTree object that is not in its own window
DataTreepublic 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.
DataSelectorpublic 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 window
public DataChoice selectDataChoice(ControlDescriptor descriptor)
DataTreeDialog to let the user select a
DataChoice that the given control
descriptor is applicable to.
descriptor - The control descriptor
public List selectDataChoices(List operands)
operands - List of param names
DataChoices
public List selectUserChoices(String msg,
List userOperands)
msg - The message to display in the GUIuserOperands - List of DataOperand-s, one for each value
public boolean checkHaiku(String action)
action - some haiku stuff
public void captureImage(String filename)
filename - The image filenamepublic void captureMovie(String filename)
filename - The movie filenamepublic void showSupportForm()
public void showSupportForm(String description,
String stackTrace)
description - Default value for the description form entrystackTrace - The stack trace that caused this error.
public void showSupportForm(String description,
String stackTrace,
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 StringBuffer getSystemInfo()
public void addToolbarPreferences(IdvPreferenceManager preferenceManager)
preferenceManager - The preference managerpublic void setDateFormat()
public static List getParamsMenuItems(JTextComponent fld,
String delimiter,
boolean includeAliases)
fld - fld to setdelimiter - delimiter to use. If null then do fld.setTextincludeAliases - Do we include the list of aliases
public static void showParamsPopup(JTextComponent fld,
MouseEvent e,
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 aliases
public static JTextField doMakeParamField(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 popup
public void popupCenterMenu(JComponent near,
LatLonWidget latLonWidget)
near - component to popup nearlatLonWidget - the lat/lon widgetpublic List makeCenterMenus(ActionListener listener)
listener - a listener for the actions
public List getMapLocations()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||