Java 2D

Java 2D is a class library and API for the implementation of portable two-dimensional graphics in Java. With her ​​pictures and text can be rendered. However, many basic elements, such as color palettes or basic geometric shapes are available. Java 2D is an extension of the Abstract Window Toolkit Java Foundation Classes, and thus part of the Java Platform, Standard Edition.

Components

The API of Java 2D is divided into the following areas:

  • Geometric shapes such as lines, ellipses and rectangles in the package java.awt.geom
  • Java.awt.Font representation and information about fonts in the package
  • Representation and manipulation of colors in different representations in the package java.awt.Color
  • Representation and manipulation of images in the package java.awt.image
  • Java.awt.print support for print functions in Java in the package

The implementation of the drawing operations itself is usually based on platform-specific hardware acceleration - for example by Direct Graphics Access or DirectX - by unreachable code from outside the Java Runtime Environment.

838758
de