O'Reilly logo

Java™ for Programmers: Deitel Developer Series, Second Edition by Harvey Deitel - Deitel & Associates, Inc., Paul Deitel - Deitel & Associates, Inc.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 15. Graphics and Java 2D

One picture is worth ten thousand words.

Chinese proverb

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 learn:

• To understand graphics contexts and graphics objects.

• To manipulate colors and fonts.

• To use methods of class Graphics to draw various shapes.

• To use methods of class Graphics2D from the Java 2D API to draw various shapes.

• To specify Paint and Stroke characteristics of shapes displayed with Graphics2D ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required