The Java Tutorials have been written for JDK 8.Java教程是为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 Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.有关Java SE 9及其后续版本中更新的语言特性的摘要,请参阅Java语言更改。
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.有关所有JDK版本的新功能、增强功能以及已删除或不推荐的选项的信息,请参阅JDK发行说明。
The Java 2D API provides two-dimensional graphics, text, and imaging capabilities for Java programs through extensions to the Abstract Windowing Toolkit (AWT).Java2D API通过对抽象窗口工具包(AWT)的扩展,为Java程序提供了二维图形、文本和图像功能。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.Java2D对象存在于一个称为用户坐标空间的平面上,或仅存在于用户空间中。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:以下链接有助于开始学习Java 2D API:
Graphics
classGraphics
类Graphics2D
classGraphics2D
类The Java 2D API provides following capabilities:Java 2D API提供以下功能:
These topics are discussed in the following sections:以下章节将讨论这些主题: