Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Wed Jul 23 00:26:54 EDT 2025

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

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

Back to the top