[EMAIL PROTECTED] wrote:
Thanks for your help Phil.

But
I'm trying to build up a BufferedImage using its
Graphics component, nd then print that image using a Printable
Why? As in I don't know why you aren't rendering
directly to the printer ?

I have a builder for my non-print documents, but it seems that I can't
> apply the normal builder to a printer document because of the way java print 
services works.
> If I were to apply the builder directly to the printer, it seems that I would 
have to somehow
>  enter the print method in the builder and then have the director call the 
builder while it was
> in the print method, but that's not possible.  So instead, I'm trying to 
build an image and pass
> it to the printable.  But as you have pointed out, this is not a nice 
solution.  Any advice?

Consider that the rendering process first needs to obtain a Graphics instance, 
either
from BufferedImage.createGraphics() or the one passed in to Printable.print(..).
I cannot see why your "builder" should know or care what the origin is, nor do 
I see
why you can't call your builder's paint method from print().

-phil.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to