Cytoscape 3.0.1 API

org.cytoscape.application.swing
Interface CyNodeViewContextMenuFactory


public interface CyNodeViewContextMenuFactory

A factory interface used to produce a CyMenuItem (JMenuItem) that will be added to the context menu for the specified node view.


Cytoscape Backwards Compatibility (SPI Interface): We expect that this interface will be implemented. Therefore to maintain backwards compatibility this interface will only be modified for major version updates.

Method Summary
 CyMenuItem createMenuItem(CyNetworkView netView, View<CyNode> nodeView)
          This method should return a CyMenuItem to be added to the context menu of the specified node view.
 

Method Detail

createMenuItem

CyMenuItem createMenuItem(CyNetworkView netView,
                          View<CyNode> nodeView)
This method should return a CyMenuItem to be added to the context menu of the specified node view.

Parameters:
netView - The CyNetworkView containing the node view in question.
nodeView - The View<CyNode> whose menu will be updated with the returned CyMenuItem.
Returns:
The CyMenuItem to be added to the node view's context menu.

Cytoscape 3.0.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.