Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GEF5 Export Diagram as SVG
GEF5 Export Diagram as SVG [message #1775119] Tue, 24 October 2017 21:13 Go to next message
Ken Keefe is currently offline Ken KeefeFriend
Messages: 38
Registered: September 2009
Member
I want to allow my users to export the diagram they've created as an SVG (and PNG). I've found some information on how to do that in GEF 3.x and have implemented the PNG export back when we used 3.x. Now that we have moved up to GEF 5, I can't find any documentation on how to export the diagram. Any advice?
Re: GEF5 Export Diagram as SVG [message #1775120 is a reply to message #1775119] Tue, 24 October 2017 21:25 Go to previous messageGo to next message
Tamas Miklossy is currently offline Tamas MiklossyFriend
Messages: 157
Registered: February 2016
Senior Member
A similar question has been discussed here: https://www.eclipse.org/forums/index.php/t/1087142/
Re: GEF5 Export Diagram as SVG [message #1785396 is a reply to message #1775120] Fri, 13 April 2018 13:13 Go to previous message
Matthias Wienand is currently offline Matthias WienandFriend
Messages: 230
Registered: March 2015
Senior Member
Hi Ken,

you can export to png using JavaFX snapshotting functionality, however, you might need to tile the rendering by yourself since JavaFX will throw an exception when trying to snapshot a large node.

Apart from that, there is some unmaintained code out there for converting a JavaFX scene graph into an SVG vector image. This is done by traversing the JavaFX scene graph and creating corresponding SVG elements for the individual javaFX nodes. Note that this approach of course has some limitations w.r.t. the JavaFX nodes that can easily be "transformed" into SVG.

h2h
Matthias
Previous Topic:GEF5 versus Sirius/GMF
Next Topic:[ZEST] Right Tree Layout algorithm
Goto Forum:
  


Current Time: Thu Apr 25 14:19:11 GMT 2024

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

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

Back to the top