Skip to main content

[JAVA2D] Printable and Graphics2D

1 reply [Last post]
Anonymous

This is a follow-up on my questions about GraphicsEnvironment,
GraphicsDevice and GraphicsConfiguration.

Reading the Printing with Printables section of the Programmer's Guide
to the Java 2D API, 1.4 edition, April 24 2001, I find that a Graphics
object is passed to the print method of Printable. Into this Graphics,
aka Graphics2D, I can render any Java2D primitives and higher structures.

Looking for the environmental details of this Graphics2D, I find in the
discussion of javax.print.StreamPrintServiceFactory a reference to the
Service Provider Interface with a broken link. Hunting about, I find
some discussion of SPI in the page on jar files. I can find no other
documentation concerning the provision of print services. Is there any?
Does it discuss issues like setting up the GraphicsDevice,
GraphicsConfiguration and FontRenderContext? Is there an example?

Peter
--
Peter B. West
Folio
---
[This E-mail has been scanned for viruses but it is your responsibility
to maintain up to date anti virus software on the device that you are
currently using to read this email. ]

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Phil Race

The links is broken because the 1.3 javadoc was moved on java.sun.com.
But you can still find it on the 1.4 or 1.5 docs and incidentally is
further exposed
in 1.6 (see java.util.Service on mustang.dev.java.net)

Anyway the SPI stuff is generic and nothing to do with printing or 2D.
Its just a lookup mechanism. Its unrelated to Graphics* classes.

-phil.

Peter B. West wrote:
> This is a follow-up on my questions about GraphicsEnvironment,
> GraphicsDevice and GraphicsConfiguration.
>
> Reading the Printing with Printables section of the Programmer's Guide
> to the Java 2D API, 1.4 edition, April 24 2001, I find that a Graphics
> object is passed to the print method of Printable. Into this Graphics,
> aka Graphics2D, I can render any Java2D primitives and higher structures.
>
> Looking for the environmental details of this Graphics2D, I find in the
> discussion of javax.print.StreamPrintServiceFactory a reference to the
> Service Provider Interface with a broken link. Hunting about, I find
> some discussion of SPI in the page on jar files. I can find no other
> documentation concerning the provision of print services. Is there any?
> Does it discuss issues like setting up the GraphicsDevice,
> GraphicsConfiguration and FontRenderContext? Is there an example?
>
> Peter
> --
> Peter B. West
> Folio
> ---
> [This E-mail has been scanned for viruses but it is your responsibility
> to maintain up to date anti virus software on the device that you are
> currently using to read this email. ]
>
> ===========================================================================
>
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body
> of the message "signoff JAVA2D-INTEREST". For general help, send
> email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".