Core Java, Volume II--Advanced Features (8th Edition): 2 by Horstmann Cay S. & Cornell Gary

Core Java, Volume II--Advanced Features (8th Edition): 2 by Horstmann Cay S. & Cornell Gary

Author:Horstmann, Cay S. & Cornell, Gary [Horstmann, Cay S.]
Language: eng
Format: mobi
Publisher: Prentice Hall
Published: 2008-04-07T16:00:00+00:00


The Rendering Pipeline

The original JDK 1.0 had a very simple mechanism for drawing shapes. You selected color and paint mode, and called methods of the Graphics class such as drawRect or fillOval. The Java 2D API supports many more options.

You can easily produce a wide variety of shapes.

You have control over the stroke, the pen that traces shape boundaries.

You can fill shapes with solid colors, varying hues, and repeating patterns.

You can use transformations to move, scale, rotate, or stretch shapes.

You can clip shapes to restrict them to arbitrary areas.

You can select composition rules to describe how to combine the pixels of a new shape with existing pixels.

You can give rendering hints to make trade-offs between speed and drawing quality.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.