Java 2D

from Wikipedia, the free encyclopedia

Java 2D is a class library and programming interface for implementing portable two-dimensional graphics in Java . It can be used to render images and texts. There are many basic elements available, such as color palettes or basic geometric shapes. Java 2D is an extension of the Abstract Window Toolkit of the Java Foundation Classes and therefore part of the Java Platform, Standard Edition .

Components

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

  • Geometric shapes such as lines , ellipses and squares in the packagejava.awt.geom
  • Representation and information about fonts in the packagejava.awt.font
  • Representation and change of colors in different representations in the package java.awt.color
  • Representation and change of images in the package java.awt.image
  • Support for print functions in Java in the package java.awt.print

The implementation of the drawing operations themselves is usually based on platform-dependent hardware acceleration - for example using Direct Graphics Access or DirectX - using code of the Java Runtime Environment that cannot be accessed from the outside .

See also

Web links

Individual evidence

  1. http://java.sun.com/products/java-media/2D/index.jsp