Export Graphiti diagram image via API [message #985611] |
Thu, 15 November 2012 14:33 |
Eclipse User |
|
|
|
Hi,
we use a Eclipse based tool for our model based requirement and
development process. As part of that we create documentation for models
and diagrams in a generic way (supporting several DSL's and diagram
providers like GMF and Graphiti).
To do that we have the need to export a diagram content as image in a
programatic way from a plugin in Eclipse. This documentation generation
is also available in a headless Eclipse (without UI). Now i have two
problems with Graphiti:
1. Also after migration to 0.9.x i cannot find a API to export a diagram
(model) content as image (JPG, PNG etc.) with public accessable classes.
All functionality to export a diagram as image is hidden in internal
packages strong coupled to the editor.
Is there a plan for more refactorings (like from 0.8. to 0.9) to open a
API for public diagram exports?
2. The complete image export requires a running Eclipse with UI. There
is no chance to export the diagram content without "Display".
It is possible to get the implementation for diagram export a few less
UI dependent?
Regards
Ralf
|
|
|
|
Re: Export Graphiti diagram image via API [message #986500 is a reply to message #985809] |
Tue, 20 November 2012 16:33 |
|
GEF's printing support is based on the presence of a GraphicalViewer and all existing implementations of the GraphicalViewer interface (i.e. GraphicalViewerImpl and its subclasses) require an SWT control to render. In order to print offline one would IMHO have to provide a GraphicalViewer implementation that alternatively renders on a printer or into an image.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02911 seconds