Buying Options
Java 2D Graphics
Safari Books Online
Add to Cart
What is this?
Description
Java 2D Graphics describes the 2D API from top to bottom, demonstrating how to set line styles and pattern fills as well as more advanced techniques of image processing and font handling. You'll see how to create and manipulate the three types of graphics objects: shapes, text, and images. Other topics include image data storage, color management, font glyphs, and printing.
Full Description
Table of Contents
  1. Chapter 1 Introduction

    1. What Is Java 2D?

    2. What Can Java 2D Do?

    3. Relatives

    4. Genesis

    5. Where Do I Get a Graphics2D?

    6. File Formats

    7. Hello, 2D!

  2. Chapter 2 The Big Picture

    1. Graphics2D

    2. The Rendering Pipeline

    3. All About Alpha

    4. Compositing

    5. Coordinate Space

  3. Chapter 3 Geometry

    1. Points

    2. Shapes and Paths

    3. Lines and Curves

    4. Rectangles

    5. Ellipses and Arcs

    6. Constructive Area Geometry

  4. Chapter 4 Painting and Stroking

    1. Painting

    2. Stroking

    3. Overlap

  5. Chapter 5 Rendering

    1. Transforming

    2. Compositing

    3. Clipping

    4. Rendering Hints

  6. Chapter 6 Text

    1. Overview

    2. Drawing Text

    3. Fonts

    4. Font Metrics

  7. Chapter 7 Advanced Text Layout

    1. Using the TextLayout Class

    2. Getting Close to the Metal

  8. Chapter 8 Color

    1. If You're Not Too Picky...

    2. Physics and Physiology

    3. Color Spaces

    4. Profiles

    5. Putting It All Together

  9. Chapter 9 Images

    1. Overview

    2. Where Do Images Come From?

    3. Displaying Images

    4. Drawing on Images

    5. Double Buffering

    6. A Useful Class

  10. Chapter 10 Image Processing

    1. The New Model

    2. An Appetizer

    3. Predefined Operations

    4. Roll Your Own

  11. Chapter 11 Image Guts

    1. BufferedImage

    2. Color Models

    3. Rasters

    4. Sample Models

    5. Data Buffers

    6. A PNG Decoder

  12. Chapter 12 Devices

    1. The Local Graphics Environment

    2. The GraphicsDevice Class

    3. Device Configurations

  13. Chapter 13 Printing

    1. How Printing Works

    2. Controlling Printing

    3. Power Printing

  14. Chapter 14 Animation and Performance

    1. It's Tougher Than You Might Think

    2. See for Yourself

    3. Memory

    4. Optimizations

  15. Chapter 15 Color Gallery

    1. Figure 15-1

    2. Figure 15-2

    3. Figure 15-3

    4. Figure 15-4

    5. Figure 15-5

    6. Figure 15-6

    7. Figure 15-7

    8. Figure 15-8

    9. Figure 15-9

    10. Figure 15-10

    11. Figure 15-11

    12. Figure 15-12

    13. Figure 15-13

    14. Figure 15-14

    15. Figure 15-15

    16. Figure 15-16

    17. Figure 15-17

    18. Figure 15-18

    19. Figure 15-19

    20. Figure 15-20

    21. Figure 15-21

    22. Figure 15-22

    23. Figure 15-23

    24. Figure 15-24

    25. Figure 15-25

    26. Figure 15-26

    27. Figure 15-27

    28. Figure 15-28

    29. Figure 15-29

    30. Figure 15-30

    31. Figure 15-31

    32. Figure 15-32

  1. Colophon

View Full Table of Contents
Product Details
Title:
Java 2D Graphics
By:
Jonathan Knudsen
Publisher:
O'Reilly Media
Formats:
  • Print
  • Safari Books Online
Print Release:
May 1999
Pages:
368
Print ISBN:
978-1-56592-484-0
| ISBN 10:
1-56592-484-3
Customer Reviews
About the Author
  1. Jonathan Knudsen

    Jonathan Knudsen is an author at O'Reilly & Associates. His books include The Unofficial Guide to Lego Mindstorms Robots, Java 2D Graphics, and Java Cryptography. He is the Courseware Writer for LearningPatterns.com.

    View Jonathan Knudsen's full profile page.

Colophon

Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Java 2D Graphics is a John Dory fish. The name John Dory fish, or dory, can refer to about 10 species of marine fish in the Zeidae family. They can be found in the temperate waters of oceans worldwide. Adults tend to stay on or near the ocean floor, in depths ranging from the shore to 650 feet. Young dories often hide in seaweed. Most species are about 1–2 feet long, though some can grow up to 3 feet. The largest weigh around 20 pounds.

All dories have the same odd look: a large, pouty mouth and a body that is deep but extremely thin from side to side. Their anterior dorsal fin is made up of several spines. Instead of regular scales, they have large modified scales called scutes. They are usually silvery or yellow in color and have a dark spot on each side of their fattened body.

The John Dory's strange appearance aids in hunting. Though weak swimmers, they feed on small fish and crustaceans. A dory will carefully approach his prey by trembling his anal and dorsal fins. Because his body is so thin and light-reflective, he goes unnoticed until he shoots out his large, protruding mouth and catches the unsuspecting fish.

The origin of the John Dory's name is a subject of debate. Some believe it derives from the French jaune d'oree ("with a yellow edge"), in reference to the fish's coloring. The function of the dark spot on the dory's side is also unknown, though some local legends claim it is the thumbprint of Saint Peter, left when he held one to take a coin from its mouth. Nicole Arigo was the copyeditor and production editor for Java 2D Graphics. Sarah Jane Shangraw was the proofreader. Maureen Dempsey, Melanie Wang, and Sheryl Avruch provided quality control reviews. Nancy Crumpton wrote the index.

The cover was designed by Emma Colby using a series design by Edie Freedman. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font. The color insert was designed by Hanna Dyer. The inside text layout was designed by Nancy Priest.

Text was produced in FrameMaker 5.5 using a template implemented by Mike Sierra. The heading font is Bodoni BT; the text font is New Baskerville. The illustrations that appear in the book were created in Macromedia Freehand 8 and Adobe Photoshop 5 by Robert Romano. This colophon was written by Sada Preisch.

  • Book cover of Java 2D Graphics