13. Graphics and Java 2D

Treat nature in terms of the cylinder, the sphere, the cone, all in perspective.

—Paul Cézanne

Colors, like features, follow the changes of the emotions.

—Pablo Picasso

Nothing ever becomes real till it is experienced—even a proverb is no proverb to you till your life has illustrated it.

—John Keats

Objectives

In this chapter you’ll:

Image Understand graphics contexts and graphics objects.

Image Manipulate colors and fonts.

Image Use methods ...

Get Java™ How To Program (Early Objects), Tenth 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.