Advanced Graphics Operations Using Java2D

One of the enhancements offered with Java 2 is Java2D, a set of classes for offering high-quality 2D graphics, images, and text in your programs. The Java2D classes extend the capabilities of existing java.awt classes that handle graphics, such as those you have learned about today. They don't replace the existing classes though—you can continue to use the other classes and programs that implement them.

Java2D features include the following:

  • Special fill patterns such as gradients and patterns

  • Strokes that define the width and style of a drawing stroke

  • Anti-aliasing to smooth edges of drawn objects

User and Device Coordinate Spaces

One of the concepts introduced with Java2D is the difference between an output ...

Get Sams Teach Yourself Java 2 in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.