Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Print diagram in custom size
Print diagram in custom size [message #1822073] Wed, 26 February 2020 16:39
Bernhard Edler is currently offline Bernhard EdlerFriend
Messages: 5
Registered: August 2014
Junior Member
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: Thu Nov 26 10:39:01 GMT 2020

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

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

Back to the top