CONTENTS | PREV | NEXT | Java 2DTM API |
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.)
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 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:
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:
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