p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning Java 2 (http://p2p.wrox.com/forumdisplay.php?f=30)
-   -   Topic On Printing Documents (http://p2p.wrox.com/showthread.php?t=21667)

hopesnfears November 24th, 2004 04:06 AM

Topic On Printing Documents
 
I don't understand the content of page 966 of the book.
Hope someone would be kind to explain to me.

According to the book, origin has to be moved to -rect.x, -rect.y.
What confuses me is since the rectangle is located left and up to the paper, shouldn't rect.x and rect.y be negative?
If so, by minusing rect.x and rect.y, wouldn't the origin be moved right and downwards instead?
Thanks!


freezotic November 27th, 2004 10:05 AM

Quote:

quote:Originally posted by hopesnfears
 I don't understand the content of page 966 of the book.
Hope someone would be kind to explain to me.

According to the book, origin has to be moved to -rect.x, -rect.y.
What confuses me is since the rectangle is located left and up to the paper, shouldn't rect.x and rect.y be negative?
If so, by minusing rect.x and rect.y, wouldn't the origin be moved right and downwards instead?
Thanks!
Oh, that sort of thing is really terrible, I agree, mistakes are so easy to make. Try it out for yourself, see how it works, if it doesn't change the minus signs, don't try to wrap your head around this, you'll get crazy!

Frans



All times are GMT -4. The time now is 10:16 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.