[OpenJDK 2D-Dev] [PATCH] SurfaceManagerFactory

Roman Kennke roman.kennke at aicas.com
Tue Feb 26 16:53:56 UTC 2008


I'm implementing a Java2D backend based on Escher, which is already
working quite well (for a couple-of-hours-prototype):


One issue I came over is the SurfaceManagerFactory. There seems to be
such a factory class both in the solaris and windows source trees, but
no way to provide an own implementation. Therefore I propose the
attached change. This basically turns the SurfaceManagerFactory into an
abstract class, now in the shared tree, with appropriate subclasses in
the windows and solaris trees. The GraphicsEnvironment implementations
are now responsible for initializing and setting the appropriate factory
in their static initializers. What do you think? I was thinking about a
different approach first, using yet another system property to determine
the right factory, but this seemed more natural.

Cheers, Roman

Dipl.-Inform. (FH) Roman Kennke, Software Engineer, http://kennke.org
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com   * Tel: +49-721-663 968-0
USt-Id: DE216375633, Handelsregister HRB 109481, AG Karlsruhe
Geschäftsführer: Dr. James J. Hunt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 15278 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20080226/3ffe23f1/patch.txt>

More information about the 2d-dev mailing list