CONTENTS | PREV | NEXT Java 2D API


2.1 Interfaces and Classes

The following tables list the interfaces and classes used in conjunction with the Graphics2D context, including the classes that represent state attributes. Most of these classes are part of the java.awt package.




Interface

Description

Composite

Defines methods to compose a draw primitive with the underlying graphics area. Implemented by AlphaComposite.

CompositeContext

Defines the encapsulated and optimized environment for a composite operation. Used by programmers implementing custom compositing rules.

Paint

Extends: Transparency

Defines colors for a draw or fill operation. Implemented by Color, GradientPaint and TexturePaint.

PaintContext

Defines the encapsulated and optimized environment for a paint operation. Used by programmers implementing custom paint operations.

Stroke

Generates a Shape that encloses the outline of the Shape to be rendered. Implemented by BasicStroke.




Class

Description

AffineTransform

(java.awt.geom)

Represents a 2D affine transform, which performs a linear mapping from 2D coordinates to other 2D coordinates.

AlphaComposite

Implements: Composite

Implements basic alpha composite rules for shapes, text, and images.

BasicStroke

Implements: Stroke

Defines the "pen style" to be applied to the outline of a Shape.

Color

Implements: Paint

Defines a solid color fill for a Shape.

GradientPaint

Implements: Paint

Defines a linear color gradient fill pattern for a Shape. This fill pattern changes from color C1 at point P1 to color C2 at point P2.

Graphics2D

Extends: Graphics

Fundamental class for 2D rendering. Extends the original java.awt.Graphics class.

TexturePaint

Implements: Paint

Defines a texture or pattern fill for a Shape. The texture or pattern is generated from a BufferedImage.



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