Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [GEF4] How to print diagram
[GEF4] How to print diagram [message #1742470] Fri, 02 September 2016 05:02 Go to next message
Vlad Buzea is currently offline Vlad BuzeaFriend
Messages: 7
Registered: August 2016
Junior Member
Hello,

I'm really having a hard time finding out how to print the diagram inside my ZestContentVIewer. Does anybody know how to do this?
Re: [GEF4] How to print diagram [message #1742627 is a reply to message #1742470] Tue, 06 September 2016 08:31 Go to previous message
Matthias Wienand is currently offline Matthias WienandFriend
Messages: 230
Registered: March 2015
Senior Member
Hi,

you can navigate via getFXViewer().getRootPart().getVisuals() to the root visual, and then use JavaFX Node#snapshot() to create an image.

However, when the image exceeds tha maximum texture dimensions (system specific), then JavaFX will throw an exception instead of performing some kind of tiling automatically. Therefore, if you are dealing with big diagrams, you need to perform the tiling yourself (or use JavaFX in software rendering mode, -Dprism.order=sw).

Best regards,
Matthias
Previous Topic:[GEF4] layout algorithm with line break?
Next Topic:[GEF4] Cross container drag and drop with JavaFX
Goto Forum:
  


Current Time: Thu Apr 25 14:21:32 GMT 2024

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

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

Back to the top