Java 2D API is part of the Java Media and JFC in the J2SE. It is the graphical API which defines, line segments, polygons, circular shapes, color, line quality/thickness, and more.
Resources and links:
SVG and the Java 2D API
In this article, the author of the Graphics 2D SVG Generator explains how it takes advantage of the Java 2D API's extensible architecture, and how any Java application can take advantage of it. This installment is the first of two parts. [Source: Sun]