Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Print diagram in custom size
Print diagram in custom size [message #1822073] Wed, 26 February 2020 11:39
Eclipse UserFriend
I am struggling with the following:
My diagram contains a legend. When exported (printed) as pdf, i want this legend to be a certain size on paper (the diagram is a large plan that needs to be folded - the legend should be the front page). I do know the legend's size in pixel. Therefore I need to be able to overwrite the scaling, that takes place when the diagram is printed. Can you point me at the right direction how to gain control over these mechanisms?

So far I've found
org.eclipse.gmf.runtime.diagram.ui.printing.render.internal.JPSDiagramPrinter.doPrintDiagram(DocPrintJob, DiagramEditPart, boolean, IPreferenceStore)

which looks promising, but to override this implementation I suppose i need to define my own
org.eclipse.gmf.runtime.diagram.ui.printing.providers.DiagramWithPrintGlobalActionHandler
, for which i do not know the extension point, or if I'm in the right area at all.

Please let me know, if you can help me.
Thank you in advance,
Bernhard
Previous Topic:GMF compatible to Eclipse e4
Next Topic:Forum on Privacy and Data Protection Challenges in System Development
Goto Forum:
  


Current Time: Sat Nov 01 23:37:39 EDT 2025

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

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

Back to the top