[GEF4] How to print diagram [message #1742470] |
Fri, 02 September 2016 01:02  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03079 seconds