站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java 2D API: 1 - - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

CONTENTS | PREV | NEXT Java 2DTM API


1.4 The Java 2DTM API Packages

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

  • java.awt
  • java.awt.geom
  • java.awt.font
  • java.awt.color
  • java.awt.image
  • java.awt.image.renderable
  • java.awt.print
Package java.awt contains those Java 2D API classes and interfaces that are general in nature or that enhance legacy classes. (Obviously, not all of the classes in java.awt are Java 2D classes.)

AlphaComposite

BasicStroke

Color

Composite

CompositeContext

Font

GradientPaint

Graphics2D

GraphicsConfiguration

GraphicsDevice

GraphicsEnvironment

Paint

PaintContext

Rectangle

Shape

Stroke

TexturePaint

Transparency

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

AffineTransform

Arc2D

Arc2D.Double

Arc2D.Float

Area

CubicCurve2D

CubicCurve2D.Double

CubicCurve2D.Float

Dimension2D

Ellipse2D

Ellipse2D.Double

Ellipse2D.Float

FlatteningPathIterator

GeneralPath

Line2D

Line2D.Double

Line2D.Float

PathIterator

Point2D

Point2D.Double

Point2D.Float

QuadCurve2D

QuadCurve2D.Double

QuadCurve2D.Float

Rectangle2D

Rectangle2D.Double

Rectangle2D.Float

RectangularShape

RoundRectangle2D

RoundRectangle2D.Double

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 pr ecision 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:

FontRenderContext

GlyphJustificationInfo

GlyphMetrics

GlyphVector

GraphicAttribute

ImageGraphicAttribute

LineBreakMeasurer

LineMetrics

MultipleMaster

OpenType

ShapeGrapicAttribute

TextAttribute

TextHitInfo

TextLayout

TransformAttribute

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

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

AffineTransformOp

BandCombineOp

BandedSampleModel

BufferedImage

BufferedImageFilter

BufferedImageOp

ByteLookupTable

ColorConvertOp

ColorModel

ComponentColorModel

ComponentSampleModel

ConvolveOp

ContextualRenderedImageFactory

DataBuffer

DataBufferByte

DataBufferInt

DataBufferShort

DataBufferUShort

DirectColorModel

IndexColorModel

Kernel

LookupOp

LookupTable

MultiPixelPackedSampleModel

PackedColorModel

ParameterBlock

PixelInterleavedSampleModel

Raster

RasterOp

RenderableImage

RenderableImageOp

RenderableImageProducer

RenderContext

RenderedImageFactory

RenderedImage

RescaleOp

SampleModel

ShortLookupTable

SinglePixelPackedSampleModel

TileObserver

WritableRaster

WritableRenderedImage

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

  • ColorModel
  • DirectColorModel
  • IndexColorModel
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.

Package java.awt.print contains classes and interfaces that enable printing of all Java 2D-based text, graphics, and images.

Book

Pageable

PageFormat

Paper

Printable

PrinterGraphics

PrinterJob



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