Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [Zest] Cycle connection between two nodes
[Zest] Cycle connection between two nodes [message #515525] Fri, 19 February 2010 09:23 Go to next message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Hi all,

I have 2 nodes in Zest GraphView. They are connected each other. But the connections are drawn one over the other like this:
------        --------
I    I        I      I
I    I<------>I      I
I    I        I      I
------        --------


Is there any chance to draw it like this?
------         --------
I    I-------->I      I
I    I         I      I
I    I<--------I      I
------         --------


Please, help

[Updated on: Fri, 19 February 2010 09:28]

Report message to a moderator

Re: [Zest] Cycle connection between two nodes [message #517684 is a reply to message #515525] Mon, 01 March 2010 17:03 Go to previous message
Erika Contiero is currently offline Erika ContieroFriend
Messages: 2
Registered: January 2010
Junior Member
Hi!

If you set the curve depth of these GraphConnection objects
c1.setCurveDepth(10); 
c2.setCurveDepth(10); 

they will be drawn as two opposite semicircles. I use this solution to avoid the overlap.
With this solution they aren't drawn as two parallel lines, to obtain parallel lines I think you must modify the anchors of the connections.
Previous Topic:[Zest] Layout
Next Topic:Dialog figure
Goto Forum:
  


Current Time: Sun Nov 23 08:57:07 GMT 2014

Powered by FUDForum. Page generated in 0.01727 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software