Skip to main content


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 18:06 Go to next message
Josef Pohl is currently offline Josef PohlFriend
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 15:19 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
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 23:58 Go to previous messageGo to next message
Josef Pohl is currently offline Josef PohlFriend
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 11:34 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
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] Fri, 03 February 2012 00:50 Go to previous message
Josef Pohl is currently offline Josef PohlFriend
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: Wed Apr 24 22:09:20 GMT 2024

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

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

Back to the top