26.07.2013 Views

Java How to Program Fourth Edition - DCC

Java How to Program Fourth Edition - DCC

Java How to Program Fourth Edition - DCC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Objectives<br />

11<br />

Graphics and <strong>Java</strong>2D<br />

• To understand graphics contexts and graphics objects.<br />

• To understand and be able <strong>to</strong> manipulate colors.<br />

• To understand and be able <strong>to</strong> manipulate fonts.<br />

• To use Graphics methods <strong>to</strong> draw lines, rectangles,<br />

rectangles with rounded corners, three-dimensional<br />

rectangles, ovals, arcs and polygons.<br />

• To use methods of class Graphics2D from the<br />

<strong>Java</strong>2D API <strong>to</strong> draw lines, rectangles, rectangles with<br />

rounded corners, ellipses, arcs and general paths.<br />

• To be able <strong>to</strong> specify Paint and Stroke<br />

characteristics of shapes displayed with<br />

Graphics2D.<br />

One picture is worth ten thousand words.<br />

Chinese proverb<br />

Treat nature in terms of the cylinder, the sphere, the cone, all<br />

in perspective.<br />

Paul Cezanne<br />

Nothing ever becomes real till it is experienced—even a<br />

proverb is no proverb <strong>to</strong> you till your life has illustrated it.<br />

John Keats<br />

A picture shows me at a glance what it takes dozens of pages<br />

of a book <strong>to</strong> expound.<br />

Ivan Sergeyevich Turgenev<br />

© Copyright 1992–2002 by Deitel & Associates, Inc. All Rights Reserved. 7/7/01

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!