Wednesday, August 20, 2008

General questions

Q: What is Java 2D?

Q: Who needs Java 2D?

Q: Where can I go for more information about Java 2D?

Q: Are there any news groups or mailing lists dedicated to Java 2D?

Programming, Debugging and Performance questions

Q: What's the difference between Graphics and Graphics2D?

Q: Is there a list of the various runtime flags that Java2D uses?

Q: What kinds of graphics hardware acceleration does Java2D use?

Q: How can I get better performance for my Java2D application?

Q: Are there any tracing facilities in Java2D to help me track down performance issues in my application?

Image questions

Q: What image-file formats does Java 2D support?

Q: Which ColorModel should I use if I need optimum performance?

Q: What image types should I use to get the best performance?

Q: How do I create a resized copy of an image?

Q: There are several types of images in Java2D; how do I know which one is appropriate in a particular situation?

Q: Can I use Java2D to generate dynamic images from my servlet (or other server-side Java application)?

Q: I have an application that reads, writes, and processes images (but does not display them) using Java2D. When I run my application on Solaris or Linux, it complains that X11 is not available. What can I do to make my application work in this environment?


Font and Text questions

Q: What are the capabilities of the Java 2D text rendering system?

Q: What are the different ways that text can be rendered using Java 2D?

Q. What font types does Java 2D support?

Q: Are any fonts bundled with Java 2D?

Q: How can I list all available fonts?

Q: How can I make my custom font available to my Java application?

Q: Why does (eg) a 10 pt font in Java applications appear to have a different size from the same font at 10pt in a native application?

Q: How to I find if I use a font to display Cyrillic, or Hindi etc?

Q. How can I specify the text antialiasing/font smoothing settings to be used by Swing in applications on Java SE 6?

Q: How do I obtain font metrics?

Q. What is the difference between logical, visual and pixel bounds?

Q. What are fractional metrics? What are the consequences of setting the fractional metrics rendering hint on text performance, readability etc? When should I use it?


Printing questions

Q:What are the differences between the various printing APIs I see in the JDK?

Q.Why is it so hard to print from Swing?

Q: What are the causes of large spool files from java.awt.print.PrinterJob and how can I avoid them?

Q: When printing using java.awt.PrinterJob, why does it print each page at least twice (and sometimes much more than that)?

Q How do I keep the information from getting cut off from the top and left sides of the page when I print using the Java 2D printing API?

Q: Why are my 1-pixel wide lines repositioned when I print them? How do I correct this?

Q: How do I trouble shoot printing problems in Windows?

Q: How do I scale an image to fit a page?

Q: When I print using PDF or HTML using the corresponding DocFlavor, how come it is printed as garbage or plain text?

Q: Why is Java unable to print to my CUPS 1.2 printers ?


Rendering questions

Q: What is the Rendering Process?

Q: What kinds of shapes can I draw using Java 2D?

Q: How do I draw on an image?

Q: I have a shape whose outline intersects itself. How do I control the filling of the shape?

Q: What does it mean to flatten a Shape?

Q: How do I draw a quadratic arrow-headed curves?

Q: Why do I get unexpected results when I use the setTransform method of Graphics2D to perform transformations?

0 comments: