|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.view.CyMenus
public class CyMenus
Creates the menu and tool bars for a Cytoscape window object. It
also provides access to individual menus and items.
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()
Creates a new CyMenus object. |
Method Summary | |
---|---|
void |
addAction(CytoscapeAction action)
Add the menu item. |
void |
addAction(CytoscapeAction action,
int index)
Add the menu item in a specific position |
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()
Deprecated. Will be removed April 2008. Cytopanels no longer have a separate menu (they're in View). |
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 |
getNewNetworkMenu()
Returns the File.New.Network menu. |
JMenu |
getOperationsMenu()
Returns the menu with items associated with plugins. |
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)
We are not listening for any GraphViewChangeEvents. |
void |
initCytoPanelMenus()
Deprecated. Will be removed April 2008. Cytopanels are initialized in the Display* actions. Do not use. |
void |
initializeMenus()
This method should be called by the creator of this object after the constructor has finished. |
void |
propertyChange(PropertyChangeEvent e)
|
void |
setNodesRequiredItemsEnabled()
Deprecated. Will be removed April 2008. Item state is now handled by Actions directly. Don't use this. |
void |
setOverviewEnabled(boolean newState)
Deprecated. Will be removed April 2008. Item state is now handled by Actions directly. Don't use this. |
void |
setVisualMapperItemsEnabled(boolean newState)
Deprecated. Will be removed April 2008. Item state is now handled by Actions directly. Don't use this. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, 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 JMenu getNewNetworkMenu()
public CytoscapeToolBar getToolBar()
public void addAction(CytoscapeAction action)
action
- public void addAction(CytoscapeAction action, int index)
action
- 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()
public void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |