CONTENTS | PREV | NEXT Java 2D API

Java 2D API Overview


Enhanced Graphics, Text, and Imaging

Rendering Model
Coordinate Systems
Transforms
Fonts
Images
Fills and Strokes
Composites

Backward Compatibility and Platform Independence
Backward Compatibility
Platform Independence

The Java 2D API Packages

Graphics2D Context

Interfaces
Classes

Concepts
Rendering Process
Controlling Rendering Quality
Stroking Shapes
Filling Shapes
Clipping
Compositing

Setting Rendering Hints
Enabling Antialiasing
Specifying a Preference for Speed or Quality

Rendering 2D Objects
Drawing a Shape
Filling a Shape
Rendering Text
Rendering Images

Defining Custom Line Styles

Filling a Shape with a Gradient

Filling a Shape with a Texture

Setting the Clipping Path

Compositing Images
Using the Source Over Composition Rule
Increasing the Transparency of Composited Objects

Defining Custom Composition Rules

Geometries

Interfaces
Classes

Concepts
Shapes and Paths
Bounds and Hit Testing
Constructive Area Geometry
Transformations

Creating a Custom Shape

Combining Areas to Create New Shapes

Transforming Shapes

Text Layout and Fonts

Interfaces
Classes

Concepts
Text Layout
International Text
Managing the Positioning and Ordering of Glyphs

Specifying and Obtaining Font Information

Creating Font Derivations

Accessing Text Paths

Transforming Text

Detecting Hits on Text

Managing Multilingual Text Layout

Implementing a Custom Text Layout Mechanism

Images

Interfaces
Image Data Classes
Image Filter Classes
Image Operation Classes
Sample Model Classes
JPEG Conversion Classes
Color Model Classes

Concepts
Color Models
Sample Models
Lookup Table
Image Processing and Enchancement
Offscreen Buffers

Creating an Offscreen Buffer

Manipulating an Offscreen Buffer

Processing an Image

Color

Classes

Concepts
Describing Colors
Mapping Colors through sRGB and CIEXYZ
Java 2D Color and Color Management Systems

Specifying Colors

Representing a New Color Space

Printing


Overview
Interfaces
Classes

Concepts
Setting Up a Book
Printing a Book
Summary

Printing a Simple Book
NumberPainter
SimplePrint

Printing in Landscape Mode
SimpleLandscape

Displaying a Print Dialog
PrintWithDialog

Displaying a Page Setup Dialog


CONTENTS | PREV | NEXT
Copyright © 1997-1998 Sun Microsystems, Inc. All Rights Reserved.