GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Graphics
  • Graphics2D
  • Java 2D Rendering
  • Geometric Primitives
  • Text
  • Images
  • Printing

This view

  • Original page
  • New address

GeezerVison is showing docs.oracle.com — Lesson: Overview of the Java 2D API Concepts (The Java™ Tutorials > 2D Graphics)

Documentation

The Java™ Tutorials
Hide TOC
Overview of the Java 2D API Concepts
Coordinates
Java 2D Rendering
Geometric Primitives
Text
Images
Printing
Trail: 2D Graphics
Home Page > 2D Graphics
« Previous • Trail • Next »

The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.
See Dev.java for updated tutorials taking advantage of the latest releases.
See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.

Lesson: Overview of the Java 2D API Concepts

The Java 2D API provides two-dimensional graphics, text, and imaging capabilities for Java programs through extensions to the Abstract Windowing Toolkit (AWT). This comprehensive rendering package supports line art, text, and images in a flexible, full-featured framework for developing richer user interfaces, sophisticated drawing programs, and image editors. Java 2D objects exist on a plane called user coordinate space, or just user space. When objects are rendered on a screen or a printer, user space coordinates are transformed to device space coordinates. The following links are useful to start learning about the Java 2D API:

  • Graphics class
  • Graphics2D class

The Java 2D API provides following capabilities:

  • A uniform rendering model for display devices and printers
  • A wide range of geometric primitives, such as curves, rectangles, and ellipses, as well as a mechanism for rendering virtually any geometric shape
  • Mechanisms for performing hit detection on shapes, text, and images
  • A compositing model that provides control over how overlapping objects are rendered
  • Enhanced color support that facilitates color management
  • Support for printing complex documents
  • Control of the quality of the rendering through the use of rendering hints

These topics are discussed in the following sections:

  • Java 2D Rendering
  • Geometric Primitives
  • Text
  • Images
  • Printing
« Previous • Trail • Next »

About Oracle | Contact Us | Legal Notices | Terms of Use | Your Privacy Rights

Copyright © 1995, 2024 Oracle and/or its affiliates. All rights reserved.

Previous page: Table of Contents
Next page: Coordinates
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.