Skip to main content



      Home
Home » Eclipse Projects » GEF » GEF5 Export Diagram as SVG
GEF5 Export Diagram as SVG [message #1775119] Tue, 24 October 2017 17:13 Go to next message
Eclipse UserFriend
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 17:25 Go to previous messageGo to next message
Eclipse UserFriend
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 09:13 Go to previous message
Eclipse UserFriend
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: Tue Apr 29 16:55:14 EDT 2025

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

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

Back to the top