Home Segments Top Top Previous Next

Appendix F:

The Graphics2D Package

In Chapter 39 and Chapter 40, you learned to use a graphics context to perform basic display operations. In early versions of Java, all drawing was done via a graphics context, an instance of the Graphics class, but because the Graphics class enabled only straightforward drawing, Java's custodians added the more sophisticated Graphics2D class.