public class DebugGraphics extends Graphics
注意:您必须关闭双缓冲才能使用DebugGraphics:RepaintManager repaintManager = RepaintManager.currentManager(component); repaintManager.setDoubleBufferingEnabled(false);
| Modifier and Type | Field and Description | 
|---|---|
| static int | BUFFERED_OPTION
              在单独的 
              Frame显示缓冲Frame。 | 
| static int | FLASH_OPTION
              Flash图形操作。 
             | 
| static int | LOG_OPTION
              记录图形操作。 
             | 
| static int | NONE_OPTION
              不要调试图形操作。 
             | 
| Constructor and Description | 
|---|
| DebugGraphics()
              构造一个支持减速绘图的新的调试图形上下文。 
             | 
| DebugGraphics(Graphics graphics)
              构建一个调试图形上下文从现有的图形上下文,支持减慢绘图。 
             | 
| DebugGraphics(Graphics graphics, JComponent component)
              从现有的图形上下文中构建调试图形上下文,从而减缓指定组件的绘图。 
             | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clearRect(int x, int y, int width, int height)
              覆盖 
              Graphics.clearRect。 | 
| void | clipRect(int x, int y, int width, int height)
              覆盖 
              Graphics.clipRect。 | 
| void | copyArea(int x, int y, int width, int height, int destX, int destY)
              覆盖 
              Graphics.copyArea。 | 
| Graphics | create()
              覆盖 
              Graphics.create以返回一个DebugGraphics对象。 | 
| Graphics | create(int x, int y, int width, int height)
              覆盖 
              Graphics.create以返回一个DebugGraphics对象。 | 
| void | dispose()
              覆盖 
              Graphics.dispose。 | 
| void | draw3DRect(int x, int y, int width, int height, boolean raised)
              覆盖 
              Graphics.draw3DRect。 | 
| void | drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)
              覆盖 
              Graphics.drawArc。 | 
| void | drawBytes(byte[] data, int offset, int length, int x, int y)
              覆盖 
              Graphics.drawBytes。 | 
| void | drawChars(char[] data, int offset, int length, int x, int y)
              覆盖 
              Graphics.drawChars。 | 
| boolean | drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)
              覆盖 
              Graphics.drawImage。 | 
| boolean | drawImage(Image img, int x, int y, ImageObserver observer)
              覆盖 
              Graphics.drawImage。 | 
| boolean | drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)
              覆盖 
              Graphics.drawImage。 | 
| boolean | drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)
              覆盖 
              Graphics.drawImage。 | 
| boolean | drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)
              覆盖 
              Graphics.drawImage。 | 
| boolean | drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)
              覆盖 
              Graphics.drawImage。 | 
| void | drawLine(int x1, int y1, int x2, int y2)
              覆盖 
              Graphics.drawLine。 | 
| void | drawOval(int x, int y, int width, int height)
              覆盖 
              Graphics.drawOval。 | 
| void | drawPolygon(int[] xPoints, int[] yPoints, int nPoints)
              覆盖 
              Graphics.drawPolygon。 | 
| void | drawPolyline(int[] xPoints, int[] yPoints, int nPoints)
              覆盖 
              Graphics.drawPolyline。 | 
| void | drawRect(int x, int y, int width, int height)
              覆盖 
              Graphics.drawRect。 | 
| void | drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
              覆盖 
              Graphics.drawRoundRect。 | 
| void | drawString(AttributedCharacterIterator iterator, int x, int y)
              覆盖 
              Graphics.drawString | 
| void | drawString(String aString, int x, int y)
              覆盖 
              Graphics.drawString。 | 
| void | fill3DRect(int x, int y, int width, int height, boolean raised)
              覆盖 
              Graphics.fill3DRect。 | 
| void | fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)
              覆盖 
              Graphics.fillArc。 | 
| void | fillOval(int x, int y, int width, int height)
              覆盖 
              Graphics.fillOval。 | 
| void | fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
              覆盖 
              Graphics.fillPolygon。 | 
| void | fillRect(int x, int y, int width, int height)
              覆盖 
              Graphics.fillRect。 | 
| void | fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
              覆盖 
              Graphics.fillRoundRect。 | 
| static Color | flashColor()
              返回用于闪存绘图操作的颜色。 
             | 
| static int | flashCount()
              返回绘图操作将闪烁的次数。 
             | 
| static int | flashTime()
              返回绘图操作闪烁的时间延迟。 
             | 
| Shape | getClip()
              覆盖 
              Graphics.getClip。 | 
| Rectangle | getClipBounds()
              覆盖 
              Graphics.getClipBounds。 | 
| Color | getColor()
              返回用于文本绘图操作的颜色。 
             | 
| int | getDebugOptions()
              返回此DebugGraphics的当前调试选项。 
             | 
| Font | getFont()
              返回用于文本绘图操作的字体。 
             | 
| FontMetrics | getFontMetrics()
              覆盖 
              Graphics.getFontMetrics。 | 
| FontMetrics | getFontMetrics(Font f)
              覆盖 
              Graphics.getFontMetrics。 | 
| boolean | isDrawingBuffer()
              返回drawingBuffer值。 
             | 
| static PrintStream | logStream()
              返回DebugGraphics记录绘图操作的流。 
             | 
| void | setClip(int x, int y, int width, int height)
              覆盖 
              Graphics.setClip。 | 
| void | setClip(Shape clip)
              覆盖 
              Graphics.setClip。 | 
| void | setColor(Color aColor)
              设置用于绘制和填充线条和形状的颜色。 
             | 
| void | setDebugOptions(int options)
              启用/禁用有关每个图形操作的诊断信息。 
             | 
| static void | setFlashColor(Color flashColor)
              设置用于闪光绘图操作的颜色。 
             | 
| static void | setFlashCount(int flashCount)
              设置绘图操作将闪烁的次数。 
             | 
| static void | setFlashTime(int flashTime)
              设置绘图操作闪烁的时间延迟。 
             | 
| void | setFont(Font aFont)
              设置用于文本绘图操作的字体。 
             | 
| static void | setLogStream(PrintStream stream)
              设置DebugGraphics记录绘图操作的流。 
             | 
| void | setPaintMode()
              覆盖 
              Graphics.setPaintMode。 | 
| void | setXORMode(Color aColor)
              覆盖 
              Graphics.setXORMode。 | 
| void | translate(int x, int y)
              覆盖 
              Graphics.translate。 | 
drawPolygon, fillPolygon, finalize, getClipBounds, getClipRect, hitClip, toStringpublic static final int LOG_OPTION
public static final int FLASH_OPTION
public static final int BUFFERED_OPTION
Frame显示缓冲 
           Frame 。 
          public static final int NONE_OPTION
public DebugGraphics()
public DebugGraphics(Graphics graphics, JComponent component)
graphics - 图形上下文减慢 
           component - JComponent慢慢画 
           public DebugGraphics(Graphics graphics)
graphics - 图形上下文减慢 
           public Graphics create()
Graphics.create以返回一个DebugGraphics对象。 
          public Graphics create(int x, int y, int width, int height)
Graphics.create以返回一个DebugGraphics对象。 
          create在 
            Graphics 
           x - 
            x坐标。 
           y - 
            y坐标。 
           width - 裁剪矩形的宽度。 
           height - 裁剪矩形的高度。 
           Graphics.translate(int, int) , 
            Graphics.clipRect(int, int, int, int) 
           public static void setFlashColor(Color flashColor)
public static Color flashColor()
public static void setFlashTime(int flashTime)
public static int flashTime()
setFlashTime(int) 
           public static void setFlashCount(int flashCount)
public static int flashCount()
setFlashCount(int) 
           public static void setLogStream(PrintStream stream)
public static PrintStream logStream()
public void setFont(Font aFont)
setFont在 
            Graphics 
           aFont - 字体。 
           Graphics.getFont() , 
            Graphics.drawString(java.lang.String, int, int) , 
            Graphics.drawBytes(byte[], int, int, int, int) , 
            Graphics.drawChars(char[], int, int, int, int) 
           public Font getFont()
getFont在 
            Graphics类 
           setFont(java.awt.Font) 
           public void setColor(Color aColor)
setColor在 
            Graphics 
           aColor - 新的渲染颜色。 
           Color , Graphics.getColor() 
           public Color getColor()
getColor在 
            Graphics 
           setColor(java.awt.Color) 
           public FontMetrics getFontMetrics()
Graphics.getFontMetrics 。 
          getFontMetrics在 
            Graphics类 
           Graphics.getFont() , FontMetrics , Graphics.getFontMetrics(Font) 
           public FontMetrics getFontMetrics(Font f)
Graphics.getFontMetrics 。 
          getFontMetrics在 
            Graphics类 
           f - 指定的字体 
           Graphics.getFont() , FontMetrics , Graphics.getFontMetrics() 
           public void translate(int x,
                      int y) 
          Graphics.translate 。 
          public void setPaintMode()
Graphics.setPaintMode 。 
          setPaintMode在 
            Graphics 
           public void setXORMode(Color aColor)
Graphics.setXORMode 。 
          setXORMode在 
            Graphics 
           aColor - XOR交替颜色 
           public Rectangle getClipBounds()
Graphics.getClipBounds 。 
          getClipBounds在 
            Graphics类 
           null 。 
           Graphics.getClip() , 
            Graphics.clipRect(int, int, int, int) , 
            Graphics.setClip(int, int, int, int) , 
            Graphics.setClip(Shape) 
           public void clipRect(int x,
                     int y,
                     int width,
                     int height) 
          Graphics.clipRect 。 
          clipRect在 
            Graphics类 
           x - 与剪辑相交的矩形的x坐标 
           y - 与剪辑相交的矩形的y坐标 
           width - 与剪辑相交的矩形的宽度 
           height - 与剪辑相交的矩形的高度 
           Graphics.setClip(int, int, int, int) , 
            Graphics.setClip(Shape) 
           public void setClip(int x,
                    int y,
                    int width,
                    int height) 
          Graphics.setClip 。 
          setClip在 
            Graphics类 
           x - 新剪辑矩形的 
            x坐标。 
           y - 新剪辑矩形的 
            y坐标。 
           width - 新剪辑矩形的宽度。 
           height - 新剪辑矩形的高度。 
           Graphics.clipRect(int, int, int, int) , 
            Graphics.setClip(Shape) , 
            Graphics.getClip() 
           public Shape getClip()
Graphics.getClip 
          getClip在 
            Graphics类 
           Shape对象,如果没有设置剪辑, 
            null 。 
           Graphics.getClipBounds() , 
            Graphics.clipRect(int, int, int, int) , 
            Graphics.setClip(int, int, int, int) , 
            Graphics.setClip(Shape) 
           public void setClip(Shape clip)
Graphics.setClip 。 
          setClip在类 
            Graphics 
           clip - 用于设置剪辑的 
            Shape 
           Graphics.getClip() , 
            Graphics.clipRect(int, int, int, int) , 
            Graphics.setClip(int, int, int, int) 
           public void drawRect(int x,
                     int y,
                     int width,
                     int height) 
          Graphics.drawRect 。 
          drawRect在 
            Graphics 
           x - 要绘制的矩形的 
            x坐标。 
           y - 要绘制的矩形的 
            y坐标。 
           width - 要绘制的矩形的宽度。 
           height - 要绘制的矩形的高度。 
           Graphics.fillRect(int, int, int, int) , 
            Graphics.clearRect(int, int, int, int) 
           public void fillRect(int x,
                     int y,
                     int width,
                     int height) 
          Graphics.fillRect 。 
          fillRect在 
            Graphics类 
           x - 要填充的矩形的 
            x坐标。 
           y - 要填充的矩形的 
            y坐标。 
           width - 待填充的矩形的宽度。 
           height - 要填充的矩形的高度。 
           Graphics.clearRect(int, int, int, int) , 
            Graphics.drawRect(int, int, int, int) 
           public void clearRect(int x,
                      int y,
                      int width,
                      int height) 
          Graphics.clearRect 。 
          clearRect在 
            Graphics类 
           x - 要清除的矩形的 
            x坐标。 
           y - 要清除的矩形的 
            y坐标。 
           width - 要清除的矩形的宽度。 
           height - 要清除的矩形的高度。 
           Graphics.fillRect(int, int, int, int) , 
            Graphics.drawRect(int, int, int, int) , 
            Graphics.setColor(java.awt.Color) , 
            Graphics.setPaintMode() , 
            Graphics.setXORMode(java.awt.Color) 
           public void drawRoundRect(int x,
                          int y,
                          int width,
                          int height,
                          int arcWidth,
                          int arcHeight) 
          Graphics.drawRoundRect 。 
          drawRoundRect在 
            Graphics 
           x - 要绘制的矩形的 
            x坐标。 
           y - 要绘制的矩形的 
            y坐标。 
           width - 要绘制的矩形的宽度。 
           height - 要绘制的矩形的高度。 
           arcWidth - 弧角在四角的水平直径。 
           arcHeight - 四角的弧线垂直直径。 
           Graphics.fillRoundRect(int, int, int, int, int, int) 
           public void fillRoundRect(int x,
                          int y,
                          int width,
                          int height,
                          int arcWidth,
                          int arcHeight) 
          Graphics.fillRoundRect 。 
          fillRoundRect在 
            Graphics类 
           x - 要填充的矩形的 
            x坐标。 
           y - 要填充的矩形的 
            y坐标。 
           width - 要填充的矩形的宽度。 
           height - 要填充的矩形的高度。 
           arcWidth - 四角的圆弧水平直径。 
           arcHeight - 四角的弧线垂直直径。 
           Graphics.drawRoundRect(int, int, int, int, int, int) 
           public void drawLine(int x1,
                     int y1,
                     int x2,
                     int y2) 
          Graphics.drawLine 。 
          public void draw3DRect(int x,
                       int y,
                       int width,
                       int height,
                       boolean raised) 
          Graphics.draw3DRect 。 
          draw3DRect在 
            Graphics 
           x - 要绘制的矩形的 
            x坐标。 
           y - 要绘制的矩形的 
            y坐标。 
           width - 要绘制的矩形的宽度。 
           height - 要绘制的矩形的高度。 
           raised - 一个布尔值,用于确定矩形是否看起来在表面上方隆起或沉入表面。 
           Graphics.fill3DRect(int, int, int, int, boolean) 
           public void fill3DRect(int x,
                       int y,
                       int width,
                       int height,
                       boolean raised) 
          Graphics.fill3DRect 。 
          fill3DRect在 
            Graphics 
           x - 要填充的矩形的 
            x坐标。 
           y - 要填充的矩形的 
            y坐标。 
           width - 要填充的矩形的宽度。 
           height - 要填充的矩形的高度。 
           raised - 一个布尔值,用于确定矩形是否显示为高于表面或蚀刻到表面。 
           Graphics.draw3DRect(int, int, int, int, boolean) 
           public void drawOval(int x,
                     int y,
                     int width,
                     int height) 
          Graphics.drawOval 。 
          drawOval在 
            Graphics类 
           x - 要绘制的椭圆的左上角的 
            x坐标。 
           y - 要绘制的椭圆的左上角的 
            y坐标。 
           width - 要绘制的椭圆的宽度。 
           height - 要绘制的椭圆的高度。 
           Graphics.fillOval(int, int, int, int) 
           public void fillOval(int x,
                     int y,
                     int width,
                     int height) 
          Graphics.fillOval 。 
          fillOval在 
            Graphics类 
           x - 要填充的椭圆的左上角的 
            x坐标。 
           y - 要填充的椭圆的左上角的 
            y坐标。 
           width - 要填充的椭圆的宽度。 
           height - 要填充的椭圆的高度。 
           Graphics.drawOval(int, int, int, int) 
           public void drawArc(int x,
                    int y,
                    int width,
                    int height,
                    int startAngle,
                    int arcAngle) 
          Graphics.drawArc 。 
          drawArc在 
            Graphics 
           x - 要绘制的圆弧的左上角的 
            x坐标。 
           y - 要绘制的圆弧的左上角的 
            y坐标。 
           width - 要绘制的弧的宽度。 
           height - 要绘制的弧的高度。 
           startAngle - 起始角度。 
           arcAngle - 相对于起始角度的弧的角度范围。 
           Graphics.fillArc(int, int, int, int, int, int) 
           public void fillArc(int x,
                    int y,
                    int width,
                    int height,
                    int startAngle,
                    int arcAngle) 
          Graphics.fillArc 。 
          fillArc在 
            Graphics 
           x - 要填充的圆弧的左上角的 
            x坐标。 
           y - 要填充的圆弧的左上角的 
            y坐标。 
           width - 要填充的弧的宽度。 
           height - 要填充的弧的高度。 
           startAngle - 起始角度。 
           arcAngle - 相对于起始角度的弧的角度范围。 
           Graphics.drawArc(int, int, int, int, int, int) 
           public void drawPolyline(int[] xPoints,
                         int[] yPoints,
                         int nPoints) 
          Graphics.drawPolyline 。 
          drawPolyline在 
            Graphics 
           xPoints - 一个 
            x点数组 
           yPoints - 一个 
            y点数组 
           nPoints - 总分数 
           Graphics.drawPolygon(int[], int[], int) 
           public void drawPolygon(int[] xPoints,
                        int[] yPoints,
                        int nPoints) 
          Graphics.drawPolygon 。 
          drawPolygon在 
            Graphics 
           xPoints - 一个 
            x坐标的数组。 
           yPoints - 一个 
            y坐标数组。 
           nPoints - 总分数。 
           Graphics.fillPolygon(int[], int[], int) , 
            Graphics.drawPolyline(int[], int[], int) 
           public void fillPolygon(int[] xPoints,
                        int[] yPoints,
                        int nPoints) 
          Graphics.fillPolygon 。 
          fillPolygon在 
            Graphics 
           xPoints - 一个 
            x坐标的数组。 
           yPoints - 一个 
            y坐标的数组。 
           nPoints - 总分数。 
           Graphics.drawPolygon(int[], int[], int) 
           public void drawString(String aString, int x, int y)
Graphics.drawString 。 
          drawString在 
            Graphics类 
           aString - 要绘制的字符串。 
           x - 
            x坐标。 
           y - 
            y坐标。 
           Graphics.drawBytes(byte[], int, int, int, int) , 
            Graphics.drawChars(char[], int, int, int, int) 
           public void drawString(AttributedCharacterIterator iterator, int x, int y)
Graphics.drawString 。 
          drawString在类 
            Graphics 
           iterator - 要绘制其文本的迭代器 
           x - 
            x坐标。 
           y - 
            y坐标。 
           Graphics.drawBytes(byte[], int, int, int, int) , 
            Graphics.drawChars(char[], int, int, int, int) 
           public void drawBytes(byte[] data,
                      int offset,
                      int length,
                      int x,
                      int y) 
          Graphics.drawBytes 。 
          drawBytes在 
            Graphics类 
           data - 要绘制的数据 
           offset - 数据中的起始偏移量 
           length - 绘制的字节数 
           x - 文本基线的 
            x坐标 
           y - 文本基线的 
            y坐标 
           Graphics.drawChars(char[], int, int, int, int) , 
            Graphics.drawString(java.lang.String, int, int) 
           public void drawChars(char[] data,
                      int offset,
                      int length,
                      int x,
                      int y) 
          Graphics.drawChars 。 
          drawChars在 
            Graphics 
           data - 要绘制的字符数组 
           offset - 数据中的起始偏移量 
           length - 要绘制的字符数 
           x - 文本基线的 
            x坐标 
           y - 文本基线的 
            y坐标 
           Graphics.drawBytes(byte[], int, int, int, int) , 
            Graphics.drawString(java.lang.String, int, int) 
           public boolean drawImage(Image img, int x, int y, ImageObserver observer)
Graphics.drawImage 。 
          drawImage在 
            Graphics 
           img - 要绘制的指定图像。 
            如果img为空,则此方法不起作用。 
           x - 
            x坐标。 
           y - 
            y坐标。 
           observer - 要转换更多图像时要通知的对象。 
           false如果图像像素仍在变化; 
            true否则。 
           Image , ImageObserver , ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) 
           public boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)
Graphics.drawImage 。 
          drawImage在 
            Graphics 
           img - 要绘制的指定图像。 
            如果img为空,则此方法不起作用。 
           x - 
            x坐标。 
           y - 
            y坐标。 
           width - 
            width的宽度。 
           height - 
            height的高度。 
           observer - 要转换更多图像时要通知的对象。 
           false如果图像像素仍在变化; 
            true否则。 
           Image , ImageObserver , ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) 
           public boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)
Graphics.drawImage 。 
          drawImage在 
            Graphics类 
           img - 要绘制的指定图像。 
            如果img为空,则此方法不起作用。 
           x - 
            x坐标。 
           y - 
            y坐标。 
           bgcolor - 在图像的非不透明部分下绘制的背景颜色。 
           observer - 转换更多图像时要通知的对象。 
           false如果图像像素仍在变化; 
            true否则。 
           Image , ImageObserver , ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) 
           public boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)
Graphics.drawImage 。 
          drawImage在 
            Graphics 
           img - 要绘制的指定图像。 
            如果img为空,则此方法不起作用。 
           x - 
            x坐标。 
           y - 
            y坐标。 
           width - 
            width的宽度。 
           height - 
            height的高度。 
           bgcolor - 在图像的非不透明部分下绘制的背景颜色。 
           observer - 要转换更多的图像时要通知的对象。 
           false如果图像像素仍在变化; 
            true否则。 
           Image , ImageObserver , ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) 
           public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)
Graphics.drawImage 。 
          drawImage在 
            Graphics 
           img - 要绘制的指定图像。 
            如果img为空,此方法不起作用。 
           dx1 -目标矩形的第一个角的 
            x坐标。 
           dy1 -目标矩形的第一个角的 
            y坐标。 
           dx2 -目标矩形的第二角部的 
            x坐标。 
           dy2 -目标矩形的第二个角的 
            y坐标。 
           sx1 - 源矩形的第一个角的 
            x坐标。 
           sy1 - 源矩形的第一个角的 
            y坐标。 
           sx2 - 源矩形的第二个角的 
            x坐标。 
           sy2 - 源矩形的第二个角的 
            y坐标。 
           observer - 由于更多的图像被缩放和转换而被通知的对象。 
           false如果图像像素仍在变化; 
            true否则。 
           Image , ImageObserver , ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) 
           public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)
Graphics.drawImage 。 
          drawImage在 
            Graphics 
           img - 要绘制的指定图像。 
            如果img为null,则此方法不起作用。 
           dx1 -目标矩形的第一个角的 
            x坐标。 
           dy1 -目标矩形的第一个角的 
            y坐标。 
           dx2 -目标矩形的第二角部的 
            x坐标。 
           dy2 -目标矩形的第二个角的 
            y坐标。 
           sx1 - 源矩形的第一个角的 
            x坐标。 
           sy1 - 源矩形的第一个角的 
            y坐标。 
           sx2 - 源矩形的第二个角的 
            x坐标。 
           sy2 - 源矩形的第二个角的 
            y坐标。 
           bgcolor - 在图像的非不透明部分下绘制的背景颜色。 
           observer - 通过缩放和转换更多的图像来通知对象。 
           false如果图像像素仍在变化; 
            true否则。 
           Image , ImageObserver , ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) 
           public void copyArea(int x,
                     int y,
                     int width,
                     int height,
                     int destX,
                     int destY) 
          Graphics.copyArea 。 
          public void dispose()
Graphics.dispose 。 
          public boolean isDrawingBuffer()
public void setDebugOptions(int options)
public int getDebugOptions()
setDebugOptions(int) 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.