About 18,800 results
Open links in new tab
  1. Graphics2D (Java Platform SE 8 ) - Oracle

    This Graphics2D class extends the Graphics class to provide more sophisticated control over geometry, coordinate transformations, color management, and text layout. This is the …

  2. Graphics2D Class in AWT - Online Tutorials Library

    Graphics2D Class in AWT - Learn about the Graphics2D class in AWT, its methods, and how to use it for advanced graphics rendering in Java applications.

  3. java - What does "Graphics2D g2d = (Graphics2D) g;" mean and …

    Apr 3, 2015 · The (Graphics2D) cast allows you to treat g as a Graphics2D object. See here for more information on casts. You cannot initiate Graphics2D because it is an abstract class , …

  4. Rendering with Graphics2D - Oracle

    Rendering with Graphics2D. Graphics2D extends java.awt.Graphics to provide more sophisticated control over the presentation of shapes, text, and images. The Java 2D rendering process is …

  5. Java Graphics2D的使用 - CSDN博客

    Mar 3, 2021 · Graphics2D 类是 Java 2D API 的一部分,它允许开发人员在图形界面应用程序中创建复杂的图形和图像效果。Graphics2D 类提供了一些强大的绘图功能,如绘制线条、矩形、 …

  6. Java 中的 Graphics2D:强大的二维绘图工具 - JavaGuidePro

    Apr 2, 2025 · Graphics2D 是 Java 中 java.awt 包下的一个类,它扩展自 Graphics 类。Graphics 类提供了基本的绘图功能,而 Graphics2D 在此基础上进行了极大的扩展,支持更高级的二维图 …

  7. Java 2D graphics: Drawing shapes, text, and images

    Apr 18, 2023 · Learn the basics of Java 2D graphics, including drawing shapes, text, and images using the Graphics2D class. Create visually appealing applications and games in Java.

  8. Class java.awt.Graphics2D - University of Washington

    Since Graphics2D is an abstract class, and since it must be customized by subclasses for different output devices, Graphics2D objects cannot be created directly. Instead, Graphics2D …

  9. Drawing lines examples with Java Graphics2D - CodeJava.net

    Aug 10, 2019 · Both methods draw a line using the current graphic attributes (paint color, stroke, rendering hints, etc). Here is a quick example (suppose that g2d is a reference of a …

  10. 2.5: Java Graphics2D - Engineering LibreTexts

    May 18, 2020 · Java implements geometric transformations as methods in the Graphics2D class. For example, if g2 is a Graphics2D, then calling g2.translate(1,3) will apply a translation by …

  11. Some results have been removed
Refresh