Skip to main content



      Home
Home » Eclipse Projects » GEF » [GEF4] How to print diagram
[GEF4] How to print diagram [message #1742470] Fri, 02 September 2016 01:02 Go to next message
Eclipse UserFriend
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 04:31 Go to previous message
Eclipse UserFriend
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: Tue Jul 08 19:40:30 EDT 2025

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

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

Back to the top