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

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

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,
Previous is shutting down.
Next Topic:Find a figure by Label draw2d
Goto Forum:

Current Time: Tue Sep 27 18:10:51 GMT 2022

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

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

Back to the top