Cytoscape Selection in Model versus View

6 views
Skip to first unread message

michael...@non.agilent.com

unread,
Oct 25, 2009, 2:56:29 PM10/25/09
to cytoscape...@googlegroups.com

What does selection mean for a CyNode versus a CyNodeView in Cytoscape 2.X?  I would think that selection is strictly a view-related activity, but after looking at the implementation this doesn’t appear to be the case. Selecting a CyNode via something like  CyNetwork.setSelectedNodeState() keeps its own state of selected nodes (in cytoscape.data.SelectFilter) and will fire an event that will actually select any corresponding CyNodeViews for a given selected CyNode. Then there is just selecting  via CyNodeView.setSelected()).  When should we be selecting the CyNodes versus their views? For my own application, I really only want the view selected, so that if there was another CyNetwork that was being displayed and showing the same CyNode, I would only want the node selected in a specific CyNetworkView. So, I assume I should use the CyNodeView.setSelected()?   

 

What purpose does a view-based concept like selection have with the model objects like CyNode?

Reply all
Reply to author
Forward
0 new messages