tracking network visualization changes

2 views
Skip to first unread message

Terry Weymouth

unread,
Dec 8, 2009, 11:38:13 PM12/8/09
to cytoscape...@googlegroups.com
(Not sure if this questions belongs in help or discussion, please feel free
to redirect me...)

I am trying to create a plugin that reports all of the visualization changes
in a network that was created by the plugin. That is, I'd like to be
notified if the user changes the zoom/pan aspect of the visualization of the
graph, changes the location of a node (for example, by click/drag), or
changes any aspect of the visual style (node color, etc). I thought that
this would be simple matter of locating a few addXListener methods and
listening to them, but I've yet to discover a single method that reports any
change to the appearance of the network.

Are there such listeners? Where should I look? Help!

Terry.


Mike Smoot

unread,
Dec 9, 2009, 4:12:27 PM12/9/09
to cytoscape...@googlegroups.com
Hi Terry,

There is the ContentChangeListener in the ding library in corelibs that gets fired for any change in the view, but the only thing that listener does is indicate that there was an actual change.  It won't distinguish between a change to node color vs. a change in zoom or any other change.  There is nothing else that even comes close to this functionality, let alone at the very fine level of detail you're looking for.

If this is a pressing need, then I think the best bet would be to update ContentChangeListener to provide you with the information you need.  This is a pretty big change and would require a lot of work in ding, not to mention the hassle of doing this in a backwards compatible manner.  

thanks,
Mike




--

You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To post to this group, send email to cytoscape...@googlegroups.com.
To unsubscribe from this group, send email to cytoscape-helpd...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cytoscape-helpdesk?hl=en.





--
____________________________________________________________
Michael Smoot, Ph.D.              
UCSD Department of Medicine
tel: 858-822-4756
Reply all
Reply to author
Forward
0 new messages