|
Cytoscape 2.3.1 (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. Feb. 21, 2006 Refactored by kono@ucsd.edu Now addAction takes one more optional argument to specify index. Plugin writers can use this function to specify the location of the menu item.
Constructor Summary | |
CyMenus()
|
Method Summary | |
void |
addAction(CytoscapeAction action)
|
void |
addAction(CytoscapeAction action,
int index)
|
void |
addCytoscapeAction(CytoscapeAction action)
Takes a CytoscapeAction and will add it to the MenuBar or the Toolbar as is appropriate. |
void |
addCytoscapeAction(CytoscapeAction action,
int index)
Add the menu item in a specific position |
JMenu |
getCytoPanelMenu()
Returns the cytopanels menu. |
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 |
getViewMenu()
Returns the menu with items related to data operations. |
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 |
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 |
setOverviewEnabled(boolean newState)
|
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 getViewMenu()
public JMenu getSelectMenu()
public JMenu getLayoutMenu()
public JMenu getVizMenu()
public JMenu getHelpMenu()
public JMenu getOperationsMenu()
public CytoscapeToolBar getToolBar()
public void addAction(CytoscapeAction action)
public void addAction(CytoscapeAction action, int index)
public void addCytoscapeAction(CytoscapeAction action)
public void addCytoscapeAction(CytoscapeAction action, int index)
action
- index
- public void setVisualMapperItemsEnabled(boolean newState)
public void setOverviewEnabled(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 |