Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Cy3 node selected event
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jiao, Dazhi  
View profile  
 More options Jun 24 2012, 9:56 pm
From: "Jiao, Dazhi" <dj...@indiana.edu>
Date: Mon, 25 Jun 2012 01:56:00 +0000
Subject: Cy3 node selected event

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Smoot  
View profile  
 More options Jun 25 2012, 12:20 am
From: Mike Smoot <msm...@ucsd.edu>
Date: Sun, 24 Jun 2012 21:20:37 -0700
Local: Mon, Jun 25 2012 12:20 am
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

--
____________________________________________________________
Michael Smoot, Ph.D.
UCSD Department of Medicine
tel: 858-822-4756

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jiao, Dazhi  
View profile  
 More options Jul 2 2012, 1:49 pm
From: "Jiao, Dazhi" <dj...@indiana.edu>
Date: Mon, 2 Jul 2012 17:49:39 +0000
Local: Mon, Jul 2 2012 1:49 pm
Subject: RE: [Cytoscape-discuss] Cy3 node selected event

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<mailto: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<mailto:cytoscape-discuss@googlegroups.co m>.
To unsubscribe from this group, send email to cytoscape-discuss+unsubscribe@googlegroups.com<mailto:cytoscape-discuss%2Bu nsubscribe@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<mailto:cytoscape-discuss@googlegroups.co m>.
To unsubscribe from this group, send email to cytoscape-discuss+unsubscribe@googlegroups.com<mailto:cytoscape-discuss+uns ubscribe@googlegroups.com>.
For more options, visit this group at http://groups.google.com/group/cytoscape-discuss?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peng-Liang Wang  
View profile  
 More options Jul 2 2012, 2:36 pm
From: Peng-Liang Wang <penwang2...@gmail.com>
Date: Mon, 2 Jul 2012 11:36:35 -0700
Local: Mon, Jul 2 2012 2:36 pm
Subject: Re: [Cytoscape-discuss] Cy3 node selected event
There is a cookbook at
http://wiki.cytoscape.org/Cytoscape_3/AppDeveloper/Cytoscape_3_App_Co...

Look at sample08.

Peng


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »