Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Zest: Multiple distinguishable connections
Zest: Multiple distinguishable connections [message #779780] Mon, 16 January 2012 14:53 Go to next message
Hannes Sörensson is currently offline Hannes SörenssonFriend
Messages: 1
Registered: January 2012
Junior Member
Hi,

When creating multiple connections between the same nodes in Zest the connections will not be distinguishable, but will display "on top of" each other. This is in contrast to what you typically get with dot.

For illustration, I have here rendered the following dot file:

digraph s{ 
 n1[label="A"];
 n2[label="B"];
 
 n1 -> n1; 
 n1 -> n2;
 n1 -> n2;
}


...using Zest/Dot in Zest 2 and the built-in Zest Graph looks like this:

index.php/fa/6751/0/

...and when rendered with dot I get this:

index.php/fa/6752/0/

The second image is typically what I want in regards to the edges (for a multitude of reasons I would like to use Zest, however). Notice also that the self-connection is much more visible here.

Does anyone know of a simple way to achieve this?
  • Attachment: graph1.png
    (Size: 6.71KB, Downloaded 810 times)
  • Attachment: graph1dot.png
    (Size: 2.73KB, Downloaded 616 times)
Re: Zest: Multiple distinguishable connections [message #779873 is a reply to message #779780] Mon, 16 January 2012 18:05 Go to previous message
Fabian Steeg is currently offline Fabian SteegFriend
Messages: 76
Registered: July 2009
Member
Unfortunately, this is currently only supported in GraphViewers (see [1] for a sample), but not for plain Graphs (which are created by the DOT support). Contributions are very welcome - see [2] for details on what we have so far.

[1] http://git.eclipse.org/c/gef/org.eclipse.zest.git/tree/org.eclipse.zest.examples/src/org/eclipse/zest/examples/jface/GraphJFaceSnippet8.java
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=190223
Previous Topic:Scrolling the GEF Editor at the end
Next Topic:Retrieve point of selection
Goto Forum:
  


Current Time: Fri Apr 26 09:38:55 GMT 2024

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

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

Back to the top