Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [Zest] Dot export compatibility
[Zest] Dot export compatibility [message #1021278] Tue, 19 March 2013 19:32 Go to next message
ilhami visne is currently offline ilhami visneFriend
Messages: 4
Registered: March 2013
Junior Member
Hello,

I've exported the sample graph from the wiki first with the zest-dot and then with the original dot (from graphviz). The generated dots were not the same.

Is there a way to generate the same dot or was this never the goal from the beginning?

Best wishes,
ilhami visne

[Updated on: Tue, 19 March 2013 19:33]

Report message to a moderator

Re: [Zest] Dot export compatibility [message #1021528 is a reply to message #1021278] Wed, 20 March 2013 09:20 Go to previous messageGo to next message
Fabian Steeg is currently offline Fabian SteegFriend
Messages: 72
Registered: July 2009
Member
Hi Ilhami!

I'm not sure I understand what you mean exactly... which sample graph from the wiki are you referring to?

If you want to export a DOT file rendered in the Zest graph view to an image file using the original DOT input, you can check the 'Use original DOT input for export' button (third from the right side).

Cheers,
Fabian
Re: [Zest] Dot export compatibility [message #1021560 is a reply to message #1021528] Wed, 20 March 2013 10:14 Go to previous messageGo to next message
ilhami visne is currently offline ilhami visneFriend
Messages: 4
Registered: March 2013
Junior Member
Hi Fabian,

Sorry, i could not make myself clear.

> which sample graph from the wiki are you referring to?
The one from this link: http://wiki.eclipse.org/Zest/DOT :
digraph s{ 
 n1[label="Node 1"]; n2[label="Node 2"]; 
 n1 -> n2[style=dotted label="A dotted edge"]
}


I've exported this with Zest this using the following code:
String graphStr = "digraph s{ n1[label=\"Node 1\"]; n2[label=\"Node 2\"];"
		+ " n1 -> n2[style=dotted label=\"A dotted edge\"]}";
Shell shell = new Shell();
DotGraph graph = new DotGraph(graphStr, shell, SWT.NONE);
System.out.println(graph.toDot());


This gives me:
digraph DotGraph{
	/* Global settings */
	graph[layout=dot]
	node[shape=box] //more like the Zest default node look
	rankdir=TD
	/* Nodes */
	1879952853[label="Node 1"];
	440702060[label="Node 2"];
	/* Edges */
	1879952853 -> 440702060[style=dotted label="A dotted edge"];
}


The same graph using the dot without any specific parameter generates:
digraph simple {
        graph [bb="0,0,117,124"];
        node [label="\N"];
        n1       [height=0.5,
                label="Node 1",
                pos="37,106",
                width=1.0375];
        n2       [height=0.5,
                label="Node 2",
                pos="37,18",
                width=1.0375];
        n1 -> n2         [label="A dotted edge",
                lp="77,62",
                pos="e,37,36.084 37,87.597 37,75.746 37,59.817 37,46.292",
                style=dotted];
}


I was referring to this difference. I hope this time it is clear.

Thanks,
ilhami

[Updated on: Wed, 20 March 2013 10:14]

Report message to a moderator

Re: [Zest] Dot export compatibility [message #1022841 is a reply to message #1021560] Fri, 22 March 2013 16:12 Go to previous messageGo to next message
Fabian Steeg is currently offline Fabian SteegFriend
Messages: 72
Registered: July 2009
Member
Hi Ilhami,

OK, I think I understand - you're calling the Graphviz dot executable on a dot file without any parameters, causing it to output what they call 'attributed dot'. I wasn't aware that this option exists. And I have no idea what it is good for Smile

So no, it was never a goal of the Zest DOT export to generate the same output. I don't think it would be possible either, since the 'attributed dot' output contains Graphviz rendering information, and rendering will always be different in Zest.

Is there any concrete issue you have due to this?

Cheers,
Fabian
Re: [Zest] Dot export compatibility [message #1085754 is a reply to message #1022841] Tue, 13 August 2013 10:22 Go to previous message
Vahan Hovhannisyan is currently offline Vahan HovhannisyanFriend
Messages: 3
Registered: August 2013
Junior Member
Hello,
I'm having a little trouble with the Eclipse Kepler zest plugin - it doesn't render the graph's style and shape attributes at all. I mean, if I give a dot graph to the plugin, it doesn't reflect the node colors and shapes, whereas if I run it through the graphviz application, it exports a beautiful image. Now I can't figure out if it's because I'm missing something in Eclipse, or is it a limitation from the plugin.
Thank you in advance, I will appreciate any help.
  • Attachment: test.dot
    (Size: 1.81KB, Downloaded 32 times)
Previous Topic:How to draw line between two TreeView in GEF
Next Topic:Figure cant shown in Diagram
Goto Forum:
  


Current Time: Sun Dec 21 08:44:21 GMT 2014

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

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