CONTENTS | PREV | NEXT Java 2D API


1.4 The Java 2D API Packages

The Java 2D API classes are organized into the following packages:

Package java.awt.geom contains classes and interfaces related to the definition of geometric primitives:

AffineTransform

Arc2D

Arc2D.Float

Area

CubicCurve2D

CubicCurve2D.Float

Dimension2D

Ellipse2D

Ellipse2D.Float

FlatteningPathIterator

GeneralPath

PathIterator

Line2D

Line2D.Float

Point2D

Point2D.Double

Point2D.Float

QuadCurve2D

QuadCurve2D.Float

Rectangle2D

Rectangle2D.Double

Rectangle2D.Float

RectangularShape

RoundRectangle2D

RoundRectangle2D.Float

Many of the geometric primitives have corresponding .Float and .Double implementations. This was done to enable both floating single and double-precision implementations. Double-precision implementations provide greater rendering precision at the expense of performance on some platforms.

Package java.awt.font contains classes and interfaces used for text layout and the definition of fonts:

GlyphJustificationInfo

GlyphMetrics

GlyphSet

GraphicAttribute

Highlight

ImageGraphicAttribute

LineBreakMeasurer

MultipleMaster

OpenType

ShapeGrapicAttribute

StyledString

StyledStringIterator

TextAttributes

TextAttributeSet

TextHitInfo

TextLayout

Packagejava.awt.color contains classes and interfaces for the definition of color spaces and color profiles.

ColorSpace

ICC_ColorSpace

ICC_Profile

ICC_ProfileGray

ICC_ProfileRGB

Thejava.awt.image, java.awt.image.codec, and java.awt.image.renderable packages contain classes and interfaces for the definition and rendering of images:

AffineTransformOp

BandCombineOp

BandedSampleModel

BilinearAffineTransformOp

BufferedImage

BufferedImageFilter

BufferedImageOp

ByteLookupTable

ColorConvertOp

ColorModel

ComponentColorModel

ComponentSampleModel

ContextualRenderedImageFactory

ConvolveOp

DataBuffer

DataBufferByte

DataBufferInt

DirectColorModel

ImagingLib

IndexColorModel

JPEGHuffmanTable

JPEGImageDecoder

JPEGImageEncoder

JPEGParam

JPEGQTable

Kernel

LookupOp

LookupTable

MultiPixelPackedSampleModel

NearestNeighborAffineTransformOp

PackedColorModel

ParameterBlock

Raster

RasterImageConsumer

RasterOp

RenderableImage

RenderableImageOp

RenderableImageProducer

RenderContext

RenderedImageFactory

RenderedImage

RescaleOp

SampleModel

SinglePixelPackedSampleModel

ShortLookupTable

ThresholdOp

TileChangeListener

TileChangeMultiCaster

WriteableRaster

WriteableRenderedImage

Package java.awt.image was present in earlier versions of the AWT. The Java 2D API enhances the following legacy AWT image classes.

These color model classes remain in the java.awt.image package for backward compatibility. To maintain consistency, the new color model classes are also located in the java.awt.image package.

Packagejava.awt contains those Java 2D API classes and interfaces that are general in nature or enhance legacy classes. This package contains:

AlphaComposite

BasicStroke

Color

Composite

CompositeContext

Font

GradientPaint

Graphics2D

GraphicsConfiguration

GraphicsDevice

GraphicsEnvironment

Paint

PaintContext

Rectangle

Shape

Stroke

TexturePaint

Transparency



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