|
Cytoscape 2.2 (c) 2004 ISB, MSKCC, UCSD | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcytoscape.view.CyMenus
This class creates the menu and tool bars for a Cytoscape window object. It also provides access to individual menus and items.
Constructor Summary | |
CyMenus()
|
Method Summary | |
void |
addAction(CytoscapeAction action)
|
void |
addCytoscapeAction(CytoscapeAction action)
Takes a CytoscapeAction and will add it to the MenuBar or the Toolbar as is appropriate. |
void |
disableDeleteSelectionMenuItem()
Called when the window switches to read-only mode, disabling the menu option for deleting selected objects. |
void |
enableDeleteSelectionMenuItem()
Called when the window switches to edit mode, enabling the menu option for deleting selected objects. |
JMenu |
getCytoPanelMenu()
Returns the cytopanels menu. |
JMenu |
getDataMenu()
Returns the menu with items related to data operations. |
JMenu |
getEditMenu()
returns the menu with items related to editing the graph. |
JMenu |
getFileMenu()
Returns the menu with items related to file operations. |
JMenu |
getHelpMenu()
Returns the help menu. |
JMenu |
getLayoutMenu()
Returns the menu with items realted to layout actions. |
JMenu |
getLoadSubMenu()
Returns the submenu with items related to loading objects. |
CytoscapeMenuBar |
getMenuBar()
Returns the main menu bar constructed by this object. |
JMenu |
getOperationsMenu()
Returns the menu with items associated with plug-ins. |
JMenu |
getSaveSubMenu()
Returns the submenu with items related to saving objects. |
JMenu |
getSelectMenu()
Returns the menu with items related to selecting nodes and edges in the graph. |
CytoscapeToolBar |
getToolBar()
Returns the toolbar object constructed by this class. |
JMenu |
getVizMenu()
Returns the menu with items related to visualiation. |
void |
graphViewChanged(GraphViewChangeEvent e)
Update the UI menus and buttons. |
void |
initCytoPanelMenus()
|
void |
initializeMenus()
This method should be called by the creator of this object after the constructor has finished. |
void |
refreshOperationsMenu()
Deprecated. This method is no longer needed now that we don't use the NO_OPERATIONS menu placeholder. This method does nothing. |
void |
setNodesRequiredItemsEnabled()
Enables or disables save, print, and display nodes in new window GUI functions, based on the number of nodes in this window's graph perspective. |
void |
setVisualMapperItemsEnabled(boolean newState)
Enables the menu items related to the visual mapper if the argument is true, else disables them. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CyMenus()
Method Detail |
public CytoscapeMenuBar getMenuBar()
public JMenu getFileMenu()
public JMenu getLoadSubMenu()
public JMenu getSaveSubMenu()
public JMenu getEditMenu()
public JMenu getDataMenu()
public JMenu getSelectMenu()
public JMenu getLayoutMenu()
public JMenu getVizMenu()
public JMenu getHelpMenu()
public JMenu getOperationsMenu()
public void refreshOperationsMenu()
public CytoscapeToolBar getToolBar()
public void addAction(CytoscapeAction action)
public void addCytoscapeAction(CytoscapeAction action)
public void enableDeleteSelectionMenuItem()
public void disableDeleteSelectionMenuItem()
public void setVisualMapperItemsEnabled(boolean newState)
public void setNodesRequiredItemsEnabled()
public void graphViewChanged(GraphViewChangeEvent e)
graphViewChanged
in interface GraphViewChangeListener
e
- public JMenu getCytoPanelMenu()
public void initCytoPanelMenus()
public void initializeMenus()
|
www.cytoscape.org | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |