Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Where are the arrow heads?([ZEST])
Where are the arrow heads? [message #1749619] Thu, 08 December 2016 17:07 Go to next message
Thomas Johnsson is currently offline Thomas JohnssonFriend
Messages: 10
Registered: June 2010
Junior Member
How do I get an arrow head for directed edges in my graph application?

I'm using GEF4/Zest 1.0.1.201609060946, (some components have version 1.1.0, but same date).
I notice that when I open the view "GEF4 Zest Graph Example" as deployed, I don't get any arrow heads, whereas in the image in https://wiki.eclipse.org/GEF/GEF4/Zest/Examples there are arrow heads.

Thanks in advance,
Thomas

[Updated on: Thu, 08 December 2016 17:10]

Report message to a moderator

Re: Where are the arrow heads? [message #1749662 is a reply to message #1749619] Fri, 09 December 2016 09:57 Go to previous messageGo to next message
Matthias Wienand is currently offline Matthias WienandFriend
Messages: 230
Registered: March 2015
Senior Member
Hi Thomas,

thank you for sharing your findings. The arrows vanished when we introduced properties (ZestProperties) for source and target decorations, because the example graph that is displayed by the "Zest Graph Example" does not set these properties. I filed a Bugzilla ticket for the issue [1]. Moreover, the documentation that is available in the Eclipse Wiki is not updated anymore, because it was migrated to GitHub where it is now maintained [2]. However, even there, the images are out-of-date, so I filed another Bugzilla ticket for updating the images in the documentation [3]. Feel free to add a comment to the last ticket if you encounter more inconsistencies w.r.t. the documentation. Also, if you find a bug while playing with the example, feel free to file another Bugzilla ticket [4]. You can subscribe to the tickets to receive notifications when they are updated, but I will also reply again when the arrows are back Smile

[1] Bring back arrows in the Zest Graph Example: https://bugs.eclipse.org/bugs/show_bug.cgi?id=508960
[2] GEF Wiki @ GitHub: https://github.com/eclipse/gef/wiki
[3] Update images in the wiki: https://bugs.eclipse.org/bugs/show_bug.cgi?id=508959
[4] File a Bugzilla ticket for GEF: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=GEF

Best regards,
Matthias
Re: Where are the arrow heads? [message #1749665 is a reply to message #1749662] Fri, 09 December 2016 10:32 Go to previous messageGo to next message
Thomas Johnsson is currently offline Thomas JohnssonFriend
Messages: 10
Registered: June 2010
Junior Member
Thanks for the update.
In the mean time, before the arrows are back, could you provide code snippets so it can be done in own code? I.e., Zestproperties plus polygons, or whatever it takes to get it done.
I presume that something in that direction has already been done for the org.eclipse.gef.dot implementation?
Thanks in advance!
Thomas
Re: Where are the arrow heads? [message #1749669 is a reply to message #1749665] Fri, 09 December 2016 11:01 Go to previous messageGo to next message
Matthias Wienand is currently offline Matthias WienandFriend
Messages: 230
Registered: March 2015
Senior Member
The arrows are back on the master branch. The relevant code is within ZestGraphExample where the example graph is constructed. I added a method e(Node,Node) that creates an edge and sets its target decoration:
	private static Edge e(Node n, Node m) {
		return e(n, m, ZestProperties.TARGET_DECORATION__E, new javafx.scene.shape.Polygon(0, 0, 10, 3, 10, -3),
				ZestProperties.TARGET_DECORATION_CSS_STYLE__E, "-fx-fill: white;");
	}

Best regards,
Matthias
Re: Where are the arrow heads? [message #1749673 is a reply to message #1749669] Fri, 09 December 2016 11:52 Go to previous message
Thomas Johnsson is currently offline Thomas JohnssonFriend
Messages: 10
Registered: June 2010
Junior Member
Super, thanks!
Thomas
Previous Topic:[ZEST] render Composite/Nested nodes using Zest
Next Topic:Why is Graph class final?
Goto Forum:
  


Current Time: Fri Apr 19 20:28:51 GMT 2024

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

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

Back to the top