The Java 2D API allows processing two-dimensional graphics and images in Java programs. It is a set of classes for processing line types, text and images in a comprehensive model. With Java 2D, predefined objects can be created and used for graphics creation.
The application programming interface (API) supports image editing and alpha channel, as well as color space definition and screen display. Java 2D API has many elements for graphical image processing. These include geometric shapes, color decomposition, rendering, filling areas with colors and textures, formatting text, and clipping.
For three-dimensional graphics processing, there is the Java 3D API.