How to listen the changes of VisualMappingManager

2 views
Skip to first unread message

Jie Li

unread,
Jun 22, 2009, 1:12:08 PM6/22/09
to cytoscape-discuss
Hello,

I am developing a plug-in which needs to get edge colors (and other
graphics properties) in Cytoscape networks. Therefore, I need to
listen to the events when the visual style is changed in the manager.
I have tried VisMappingManager.addChangeListener() and
CalculatorCatelog.addChangeListener() but they do not work as
expected. For example, when I changed the default edge color for the
whole network, Neither method can capture the event. When I changed
the edge color mapping type but did not assign a color yet, the
ChangeListener for CalculatorCatelog was triggered.

I am new to the Cytoscape development. Can anyone tell me which event
and listener should be used in this case? Alternatively, how can I
listen to the event when Cytoscape.redrawGraph() is called.

Thank you very much.

Jie
Reply all
Reply to author
Forward
0 new messages