Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Printing viewable or selectable area
Printing viewable or selectable area [message #786685] Mon, 30 January 2012 13:06 Go to next message
Josef Pohl is currently offline Josef Pohl
Messages: 82
Registered: January 2012
Member
Hi all

I was wondering if anyone had developed a method to print a selected area or the area being currently viewed? In other words print a diagram of the content currently viewable on the canvas or within a selected area?

This might be more of a general GMF question but if you have any thoughts on resources available I would greatly appreciate it.

Thanks, as always.
Joe
Re: Printing viewable or selectable area [message #787429 is a reply to message #786685] Tue, 31 January 2012 10:19 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1577
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Joe,

Graphiti does this internally when the user prints a diagram from within an open editor (context menu entry Print...): You might have a look into Graphiti's PrintFigureDialog to see how it is solved (sorry, no public API).

Michael
Re: Printing viewable or selectable area [message #787758 is a reply to message #787429] Tue, 31 January 2012 18:58 Go to previous messageGo to next message
Josef Pohl is currently offline Josef Pohl
Messages: 82
Registered: January 2012
Member
Thanks Michael, as always!

What about the export diagram? I found that I can putz around with the SVG output and generate the documents I would like from that.

Is that behavior available through the API?

Thanks,
Joe
Re: Printing viewable or selectable area [message #788132 is a reply to message #787758] Wed, 01 February 2012 06:34 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1577
Registered: July 2009
Location: Walldorf, Germany
Senior Member
That's in principle based upon the same functionality, so the answer is
again no, it's not available via public API.

Recently there has been a similar question by Henrik Rentz-Reichert ("image
creation without opening an editor"). So it seems there is demand for such
an API. Feel free to open an enhancement bugzilla for this.

Michael
Re: Printing viewable or selectable area [message #789427 is a reply to message #788132] Thu, 02 February 2012 19:50 Go to previous message
Josef Pohl is currently offline Josef Pohl
Messages: 82
Registered: January 2012
Member
Thanks Michael,
I will open up a bugzilla request.

Take care,
Joe
Previous Topic:Zoom/Scaling issues with borders/connections
Next Topic:Create Polyline tool
Goto Forum:
  


Current Time: Sat Aug 02 04:55:53 EDT 2014

Powered by FUDForum. Page generated in 0.10633 seconds