Where are the arrow heads? [message #1749619] |
Thu, 08 December 2016 12:07  |
Eclipse User |
|
|
|
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 12:10] by Moderator
|
|
|
Re: Where are the arrow heads? [message #1749662 is a reply to message #1749619] |
Fri, 09 December 2016 04:57   |
Eclipse User |
|
|
|
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 
[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 #1749669 is a reply to message #1749665] |
Fri, 09 December 2016 06:01   |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04411 seconds