making an edge curved?

5 views
Skip to first unread message

Botond Ballo

unread,
Jun 19, 2009, 2:16:01 PM6/19/09
to cytoscape-discuss
Hello,

I'm writing a plugin for cytoscape that contains a new layout
algorithm, and I'm wondering how I can make an edge curved using the
API. For example, if I use the Editor to create two nodes and two
edges between them, the second edge will be smoothly curved. That's
what I'm after.

I tried calling setLineType(EdgeView.CURVED_LINES) on the EdgeView,
but that alone does nothing. Do I also need to call addHandle() on the
EdgeView? If so, how do I figure out what coordinates to pass to
addHandle().

Thanks,
Botond.
Reply all
Reply to author
Forward
0 new messages