Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Need help with Printing GEF figures
Need help with Printing GEF figures [message #41612] Tue, 12 November 2002 20:28 Go to next message
uhclem is currently offline uhclemFriend
Messages: 17
Registered: July 2009
Junior Member
OK, so I read all of the articles and code snippets and example programs
available in the eclipse community that deal with printing, and I'm still as
dumbfounded as ever. I read and re-read the SWT FAQ that tells you how to
calculate scale factor for a printer GC, but I still can't get the dead tree
version of my canvas any larger than postage stamp.

So, I've got my scale factor, but what do I do with it? I tried calling
SWTGraphics.scale(float) with it, but the result is always the same. I
finally looked at the source code in SWTGraphics, and found this:

public void scale(float factor){
}

No wonder nothing changed. Please help!!!

Bob
Re: Need help with Printing GEF figures [message #41675 is a reply to message #41612] Tue, 12 November 2002 22:30 Go to previous message
Eclipse UserFriend
Originally posted by: hudsonr.us.eye-bee-em.com

Scaling is in the 2.1 plan. Until it is released, you'll have to print to
an Image, then print that Image to the printer scaled.

"Bob Brodt" <rbrodt@adelphia.net> wrote in message
news:aqrm9f$9pf$1@rogue.oti.com...
> OK, so I read all of the articles and code snippets and example programs
> available in the eclipse community that deal with printing, and I'm still
as
> dumbfounded as ever. I read and re-read the SWT FAQ that tells you how to
> calculate scale factor for a printer GC, but I still can't get the dead
tree
> version of my canvas any larger than postage stamp.
>
> So, I've got my scale factor, but what do I do with it? I tried calling
> SWTGraphics.scale(float) with it, but the result is always the same. I
> finally looked at the source code in SWTGraphics, and found this:
>
> public void scale(float factor){
> }
>
> No wonder nothing changed. Please help!!!
>
> Bob
>
>
>
Previous Topic:Make Label to have serval editable parts?
Next Topic:How to left-justify labels stacked in a ToolbarLayout with setMatchingWidth(true)?
Goto Forum:
  


Current Time: Thu Dec 26 16:39:50 GMT 2024

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

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

Back to the top