Java 2D API Specification

The following list contains all of the packages and classes included in the Java 2D API. Each item in the list is linked to its respective API documentation.

    • Provides classes for color spaces and color profiles based on the ICC Profile Format Specification.

      Provides classes and interfaces relating to fonts and support for representing Type 1, Type 1 Multiple Master, OpenType, and TrueType fonts.

      Provides classes for defining and performing operations on two-dimensional geometric objects.

      Provides classes and interfaces for printing two-dimensional objects and includes support for specifying document types, controlling page setup and page formats, and managing job control dialogs.
  • com.sun.image.codec.jpeg

      Provides classes for encoding and decoding JPEG images.

      Provides classes and interfaces for producing rendering-independent images.
The java.awt and java.awt.image packages also include classes that are part of the Java 2D API: