On Mon, Jul 2, 2012 at 10:49 AM, Jiao, Dazhi <dj
...@indiana.edu> wrote:
> Thanks for the answer. One more question: how do I register a
> RowsSetListener to listen to the RowsSetEvent? I looked around in the Cy3
> API but couldn’t find an “addRowsSetListener” method in any class.
> From: cytoscape-discuss@googlegroups.com
> [mailto:cytoscape-discuss@googlegroups.com] On Behalf Of Mike Smoot
> Sent: Monday, June 25, 2012 12:21 AM
> To: cytoscape-discuss@googlegroups.com
> Subject: Re: [Cytoscape-discuss] Cy3 node selected event
> Since selected state is now stored as an attribute of the node in the
> default node table, you can listen to the RowsSetEvent. When you hear the
> event, check to see if it's from the table you care about and whether that
> particular event contains selection events. Something like this:
> void handleEvent(RowsSetEvent e) {
> if (e.getSource() != tableICareAbout)
> return;
> if (!e.containsColumn(CyNetwork.SELECTED)
> return;
> for (RowSetRecord record : e.getColumnRecords(CyNetwork.SELECTED)) {
> // do something for the nodes you care about!
> }
> }
> Mike
> On Sun, Jun 24, 2012 at 6:56 PM, Jiao, Dazhi <dj...@indiana.edu> wrote:
> Hi,
> In Cy3 is there any new way for capture the node selected event? I know in
> Cy2 one can use the GraphViewChangeEvent in giny but wonder if there is any
> new method in Cy3 for this types of events.
> Thanks,
> Dazhi
> --
> You received this message because you are subscribed to the Google Groups
> "cytoscape-discuss" group.
> To post to this group, send email to cytoscape-discuss@googlegroups.com.
> To unsubscribe from this group, send email to
> cytoscape-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cytoscape-discuss?hl=en.
> --
> ____________________________________________________________
> Michael Smoot, Ph.D.
> UCSD Department of Medicine
> tel: 858-822-4756
> --
> You received this message because you are subscribed to the Google Groups
> "cytoscape-discuss" group.
> To post to this group, send email to cytoscape-discuss@googlegroups.com.
> To unsubscribe from this group, send email to
> cytoscape-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cytoscape-discuss?hl=en.
> --
> You received this message because you are subscribed to the Google Groups
> "cytoscape-discuss" group.
> To post to this group, send email to cytoscape-discuss@googlegroups.com.
> To unsubscribe from this group, send email to
> cytoscape-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cytoscape-discuss?hl=en.