Listener for Layout calls

2 views
Skip to first unread message

Jan Bot

unread,
Dec 2, 2009, 4:54:28 AM12/2/09
to cytoscap...@googlegroups.com
Hi all,

is there a way in Cytoscape to listen for layout events? I'd like my
plugin to remember which layout was performed last by the user so that
when the plug-in adds nodes the same layout can be performed.

Kind regards,

Jan
Delft University of Technology

Scooter Morris

unread,
Dec 2, 2009, 12:38:33 PM12/2/09
to cytoscap...@googlegroups.com
On 12/02/2009 01:54 AM, Jan Bot wrote:
> plugin to remember which layout was performed last by the user so that
Hi Jan,
Actually, the layout is already saved as part of the network
attributes. Just have your plugin look for the network attribute
"__layoutAlgorithm". It's a string attribute and it will contain the
name of the layout.

-- scooter

scooter.vcf

Jan Bot

unread,
Dec 3, 2009, 5:53:41 AM12/3/09
to cytoscap...@googlegroups.com

Hi Scooter,

thanks, that works for most cases. However, it fails for yFiles layouts.
Is it true that the yFiles layouts do not update the __layoutAlgorithm
attribute?

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

Reply all
Reply to author
Forward
0 new messages