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
DescriptionDefines methods to compose a draw primitive with the underlying graphics area. Implemented by AlphaComposite.
Defines the encapsulated and optimized environment for a composite operation. Used by programmers implementing custom compositing rules.
Paint
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(java.awt.geom)
Represents a 2D affine transform, which performs a linear mapping from 2D coordinates to other 2D coordinates.
Implements: Composite
Implements basic alpha composite rules for shapes, text, and images.
Defines the "pen style" to be applied to the outline of a Shape.
Defines a solid color fill for a Shape.
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.
Extends: Graphics
Fundamental class for 2D rendering. Extends the original java.awt.Graphics class.
TexturePaint
Defines a texture or pattern fill for a Shape. The texture or pattern is generated from a BufferedImage.
CONTENTS | PREV | NEXT