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 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.)
Paint
PaintContext
Rectangle
Shape
Stroke
TexturePaint
Transparency
Package java.awt.geom contains classes and interfaces related to the definition of geometric primitives:
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:
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:
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