- java.lang.Object
-  
      - java.awt.Graphics
-  
        - javax.swing.DebugGraphics
 
 
-  
       
 public class DebugGraphics extends Graphics 图形子类支持图形调试。 覆盖Graphics的大多数方法。 DebugGraphics对象很少手工创建。 当使用setDebugGraphicsOptions()方法更改JComponent的debugGraphicsOptions时,最常自动创建它们。注意:您必须关闭双缓冲才能使用DebugGraphics:RepaintManager repaintManager = RepaintManager.currentManager(component); repaintManager.setDoubleBufferingEnabled(假); 
-  
        
       -  
             字段汇总字段 变量和类型 字段 描述 static intBUFFERED_OPTION在单独的Frame显示缓冲操作。static intFLASH_OPTIONFlash图形操作。static intLOG_OPTION记录图形操作。static intNONE_OPTION不要调试图形操作。
 -  
             构造方法摘要构造方法 构造器 描述 DebugGraphics()构造一个支持减速绘制的新调试图形上下文。DebugGraphics(Graphics graphics)从支持减速绘制的现有图形上下文构造调试图形上下文。DebugGraphics(Graphics graphics, JComponent component)从现有图形上下文构造调试图形上下文,从而减慢指定组件的绘制速度。
 -  
             方法摘要所有方法 静态方法 实例方法 具体的方法 变量和类型 方法 描述 voidclearRect(int x, int y, int width, int height)覆盖Graphics.clearRect。voidclipRect(int x, int y, int width, int height)覆盖Graphics.clipRect。voidcopyArea(int x, int y, int width, int height, int destX, int destY)覆盖Graphics.copyArea。Graphicscreate()覆盖Graphics.create以返回DebugGraphics对象。Graphicscreate(int x, int y, int width, int height)重写Graphics.create以返回DebugGraphics对象。voiddispose()覆盖Graphics.dispose。voiddraw3DRect(int x, int y, int width, int height, boolean raised)覆盖Graphics.draw3DRect。voiddrawArc(int x, int y, int width, int height, int startAngle, int arcAngle)覆盖Graphics.drawArc。voiddrawBytes(byte[] data, int offset, int length, int x, int y)覆盖Graphics.drawBytes。voiddrawChars(char[] data, int offset, int length, int x, int y)覆盖Graphics.drawChars。booleandrawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)覆盖Graphics.drawImage。booleandrawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)覆盖Graphics.drawImage。booleandrawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)覆盖Graphics.drawImage。booleandrawImage(Image img, int x, int y, int width, int height, ImageObserver observer)覆盖Graphics.drawImage。booleandrawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)覆盖Graphics.drawImage。booleandrawImage(Image img, int x, int y, ImageObserver observer)覆盖Graphics.drawImage。voiddrawLine(int x1, int y1, int x2, int y2)覆盖Graphics.drawLine。voiddrawOval(int x, int y, int width, int height)覆盖Graphics.drawOval。voiddrawPolygon(int[] xPoints, int[] yPoints, int nPoints)覆盖Graphics.drawPolygon。voiddrawPolyline(int[] xPoints, int[] yPoints, int nPoints)覆盖Graphics.drawPolyline。voiddrawRect(int x, int y, int width, int height)覆盖Graphics.drawRect。voiddrawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)覆盖Graphics.drawRoundRect。voiddrawString(String aString, int x, int y)覆盖Graphics.drawString。voiddrawString(AttributedCharacterIterator iterator, int x, int y)覆盖Graphics.drawString。voidfill3DRect(int x, int y, int width, int height, boolean raised)覆盖Graphics.fill3DRect。voidfillArc(int x, int y, int width, int height, int startAngle, int arcAngle)覆盖Graphics.fillArc。voidfillOval(int x, int y, int width, int height)覆盖Graphics.fillOval。voidfillPolygon(int[] xPoints, int[] yPoints, int nPoints)覆盖Graphics.fillPolygon。voidfillRect(int x, int y, int width, int height)覆盖Graphics.fillRect。voidfillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)覆盖Graphics.fillRoundRect。static ColorflashColor()返回用于闪存绘制操作的颜色。static intflashCount()返回绘制操作将闪烁的次数。static intflashTime()返回绘制操作闪烁的时间延迟。ShapegetClip()覆盖Graphics.getClip。RectanglegetClipBounds()覆盖Graphics.getClipBounds。ColorgetColor()返回用于文本绘制操作的Color。intgetDebugOptions()返回此DebugGraphics的当前调试选项。FontgetFont()返回用于文本绘制操作的Font。FontMetricsgetFontMetrics()覆盖Graphics.getFontMetrics。FontMetricsgetFontMetrics(Font f)覆盖Graphics.getFontMetrics。booleanisDrawingBuffer()返回drawingBuffer值。static PrintStreamlogStream()返回DebugGraphics记录绘制操作的流。voidsetClip(int x, int y, int width, int height)覆盖Graphics.setClip。voidsetClip(Shape clip)覆盖Graphics.setClip。voidsetColor(Color aColor)设置用于绘制和填充线条和形状的颜色。voidsetDebugOptions(int options)启用/禁用有关每个图形操作的诊断信息。static voidsetFlashColor(Color flashColor)设置用于闪光绘制操作的颜色。static voidsetFlashCount(int flashCount)设置绘制操作将闪烁的次数。static voidsetFlashTime(int flashTime)设置绘图操作闪烁的时间延迟。voidsetFont(Font aFont)设置用于文本绘制操作的字体。static voidsetLogStream(PrintStream stream)设置DebugGraphics记录绘制操作的流。voidsetPaintMode()覆盖Graphics.setPaintMode。voidsetXORMode(Color aColor)覆盖Graphics.setXORMode。voidtranslate(int x, int y)覆盖Graphics.translate。-  
               声明方法的类 java.awt.GraphicsdrawPolygon, fillPolygon, finalize, getClipBounds, getClipRect, hitClip, toString
 
-  
               
 
-  
             
-  
        
       -  
             字段详细信息-  LOG_OPTIONpublic static final int LOG_OPTION 记录图形操作。- 另请参见:
- 常数字段值
 
 -  FLASH_OPTIONpublic static final int FLASH_OPTION Flash图形操作。- 另请参见:
- 常数字段值
 
 -  BUFFERED_OPTIONpublic static final int BUFFERED_OPTION 在单独的Frame显示缓冲操作。- 另请参见:
- 常数字段值
 
 -  NONE_OPTIONpublic static final int NONE_OPTION 不要调试图形操作。- 另请参见:
- 常数字段值
 
 
-  
 -  
             构造方法详细信息-  DebugGraphicspublic DebugGraphics() 构造一个支持减速绘制的新调试图形上下文。
 -  DebugGraphicspublic DebugGraphics(Graphics graphics, JComponent component) 从现有图形上下文构造调试图形上下文,从而减慢指定组件的绘制速度。- 参数
-  
              graphics- 要减慢的图形上下文
-  
              component- 慢慢绘制的JComponent
 
 -  DebugGraphicspublic DebugGraphics(Graphics graphics) 从支持减速绘制的现有图形上下文构造调试图形上下文。- 参数
-  
              graphics- 要减慢的图形上下文
 
 
-  
 -  
             方法详细信息-  createpublic Graphics create() 覆盖Graphics.create以返回DebugGraphics对象。
 -  createpublic 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)
 
 -  setFlashColorpublic static void setFlashColor(Color flashColor) 设置用于闪光绘制操作的颜色。- 参数
-  
              flashColor- 用于闪存绘制操作的颜色
 
 -  flashColorpublic static Color flashColor() 返回用于闪存绘制操作的颜色。- 结果
- 用于闪光绘制操作的颜色
- 另请参见:
-  
              setFlashColor(java.awt.Color)
 
 -  setFlashTimepublic static void setFlashTime(int flashTime) 设置绘图操作闪烁的时间延迟。- 参数
-  
              flashTime- 绘图操作闪烁的时间延迟
 
 -  flashTimepublic static int flashTime() 返回绘制操作闪烁的时间延迟。- 结果
- 绘图操作闪烁的时间延迟
- 另请参见:
-  
              setFlashTime(int)
 
 -  setFlashCountpublic static void setFlashCount(int flashCount) 设置绘制操作将闪烁的次数。- 参数
-  
              flashCount- 绘制操作将闪烁的次数
 
 -  flashCountpublic static int flashCount() 返回绘制操作将闪烁的次数。- 结果
- 绘图操作闪烁的次数
- 另请参见:
-  
              setFlashCount(int)
 
 -  setLogStreampublic static void setLogStream(PrintStream stream) 设置DebugGraphics记录绘制操作的流。- 参数
-  
              stream- DebugGraphics记录绘制操作的流
 
 -  logStreampublic static PrintStream logStream() 返回DebugGraphics记录绘制操作的流。- 结果
- DebugGraphics记录绘制操作的流
- 另请参见:
-  
              setLogStream(java.io.PrintStream)
 
 -  setFontpublic void setFont(Font aFont) 设置用于文本绘制操作的字体。- Specified by:
-  
              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)
 
 -  getFontpublic Font getFont() 返回用于文本绘制操作的Font。- Specified by:
-  
              getFont在类Graphics
- 结果
- 此图形上下文的当前字体。
- 另请参见:
-  
              setFont(java.awt.Font)
 
 -  setColorpublic void setColor(Color aColor) 设置用于绘制和填充线条和形状的颜色。- Specified by:
-  
              setColor,类Graphics
- 参数
-  
              aColor- 新的渲染颜色。
- 另请参见:
-  
              Color,Graphics.getColor()
 
 -  getColorpublic Color getColor() 返回用于文本绘制操作的Color。- Specified by:
-  
              getColor在类Graphics
- 结果
- 此图形上下文的当前颜色。
- 另请参见:
-  
              setColor(java.awt.Color)
 
 -  getFontMetricspublic FontMetrics getFontMetrics() 覆盖Graphics.getFontMetrics。- 重写:
-  
              getFontMetrics类Graphics
- 结果
- 此图形上下文的当前字体的字体指标。
- 另请参见:
-  
              Graphics.getFont(),FontMetrics,Graphics.getFontMetrics(Font)
 
 -  getFontMetricspublic FontMetrics getFontMetrics(Font f) 覆盖Graphics.getFontMetrics。- Specified by:
-  
              getFontMetrics在类Graphics
- 参数
-  
              f- 指定的字体
- 结果
- 指定字体的字体指标。
- 另请参见:
-  
              Graphics.getFont(),FontMetrics,Graphics.getFontMetrics()
 
 -  translatepublic void translate(int x, int y)覆盖Graphics.translate。
 -  setPaintModepublic void setPaintMode() 覆盖Graphics.setPaintMode。- Specified by:
-  
              setPaintMode类Graphics
 
 -  setXORModepublic void setXORMode(Color aColor) 覆盖Graphics.setXORMode。- Specified by:
-  
              setXORMode在类Graphics
- 参数
-  
              aColor- XOR交替颜色
 
 -  getClipBoundspublic Rectangle getClipBounds() 覆盖Graphics.getClipBounds。- Specified by:
-  
              getClipBounds在类Graphics
- 结果
- 
               当前剪切区域的边界矩形,如果未设置剪辑, 
              null。
- 另请参见:
-  
              Graphics.getClip(),Graphics.clipRect(int, int, int, int),Graphics.setClip(int, int, int, int),Graphics.setClip(Shape)
 
 -  clipRectpublic void clipRect(int x, int y, int width, int height)覆盖Graphics.clipRect。- Specified by:
-  
              clipRect在类Graphics
- 参数
-  
              x- 与剪辑相交的矩形的x坐标
-  
              y- 与剪辑相交的矩形的y坐标
-  
              width- 与剪辑相交的矩形的宽度
-  
              height- 与剪辑相交的矩形的高度
- 另请参见:
-  
              Graphics.setClip(int, int, int, int),Graphics.setClip(Shape)
 
 -  setClippublic void setClip(int x, int y, int width, int height)覆盖Graphics.setClip。- Specified by:
-  
              setClip,类Graphics
- 参数
-  
              x- 新剪辑矩形的 x坐标。
-  
              y- 新剪辑矩形的 y坐标。
-  
              width- 新剪辑矩形的宽度。
-  
              height- 新剪辑矩形的高度。
- 另请参见:
-  
              Graphics.clipRect(int, int, int, int),Graphics.setClip(Shape),Graphics.getClip()
 
 -  getClippublic Shape getClip() 覆盖Graphics.getClip。- Specified by:
-  
              getClip在类Graphics
- 结果
- 
               表示当前剪切区域的 
              Shape对象,如果未设置剪辑,null。
- 另请参见:
-  
              Graphics.getClipBounds(),Graphics.clipRect(int, int, int, int),Graphics.setClip(int, int, int, int),Graphics.setClip(Shape)
 
 -  setClippublic void setClip(Shape clip) 覆盖Graphics.setClip。- Specified by:
-  
              setClip在类Graphics
- 参数
-  
              clip- 用于设置剪辑的Shape
- 另请参见:
-  
              Graphics.getClip(),Graphics.clipRect(int, int, int, int),Graphics.setClip(int, int, int, int)
 
 -  drawRectpublic 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)
 
 -  fillRectpublic void fillRect(int x, int y, int width, int height)覆盖Graphics.fillRect。- Specified by:
-  
              fillRect在类Graphics
- 参数
-  
              x- 要填充的矩形的 x坐标。
-  
              y- 要填充的矩形的 y坐标。
-  
              width- 要填充的矩形的宽度。
-  
              height- 要填充的矩形的高度。
- 另请参见:
-  
              Graphics.clearRect(int, int, int, int),Graphics.drawRect(int, int, int, int)
 
 -  clearRectpublic void clearRect(int x, int y, int width, int height)覆盖Graphics.clearRect。- Specified by:
-  
              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)
 
 -  drawRoundRectpublic void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)覆盖Graphics.drawRoundRect。- Specified by:
-  
              drawRoundRect在类Graphics
- 参数
-  
              x- 要绘制的矩形的 x坐标。
-  
              y- 要绘制的矩形的 y坐标。
-  
              width- 要绘制的矩形的宽度。
-  
              height- 要绘制的矩形的高度。
-  
              arcWidth- 四角处弧的水平直径。
-  
              arcHeight- 四角处弧的垂直直径。
- 另请参见:
-  
              Graphics.fillRoundRect(int, int, int, int, int, int)
 
 -  fillRoundRectpublic void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)覆盖Graphics.fillRoundRect。- Specified by:
-  
              fillRoundRect在类Graphics
- 参数
-  
              x- 要填充的矩形的 x坐标。
-  
              y- 要填充的矩形的 y坐标。
-  
              width- 要填充的矩形的宽度。
-  
              height- 要填充的矩形的高度。
-  
              arcWidth- 四角处弧的水平直径。
-  
              arcHeight- 四角处弧的垂直直径。
- 另请参见:
-  
              Graphics.drawRoundRect(int, int, int, int, int, int)
 
 -  drawLinepublic void drawLine(int x1, int y1, int x2, int y2)覆盖Graphics.drawLine。
 -  draw3DRectpublic 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)
 
 -  fill3DRectpublic 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)
 
 -  drawOvalpublic void drawOval(int x, int y, int width, int height)覆盖Graphics.drawOval。- Specified by:
-  
              drawOval在类Graphics
- 参数
-  
              x- 要绘制的椭圆的左上角的 x坐标。
-  
              y- 要绘制的椭圆的左上角的 y坐标。
-  
              width- 要绘制的椭圆的宽度。
-  
              height- 要绘制的椭圆的高度。
- 另请参见:
-  
              Graphics.fillOval(int, int, int, int)
 
 -  fillOvalpublic void fillOval(int x, int y, int width, int height)覆盖Graphics.fillOval。- Specified by:
-  
              fillOval在类Graphics
- 参数
-  
              x- 要填充的椭圆的左上角的 x坐标。
-  
              y- 要填充的椭圆的左上角的 y坐标。
-  
              width- 要填充的椭圆的宽度。
-  
              height- 要填充的椭圆的高度。
- 另请参见:
-  
              Graphics.drawOval(int, int, int, int)
 
 -  drawArcpublic void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)覆盖Graphics.drawArc。- Specified by:
-  
              drawArc在类Graphics
- 参数
-  
              x- 要绘制的圆弧左上角的 x坐标。
-  
              y- 要绘制的圆弧左上角的 y坐标。
-  
              width- 要绘制的弧的宽度。
-  
              height- 要绘制的弧的高度。
-  
              startAngle- 起始角度。
-  
              arcAngle- 弧的角度范围,相对于起始角度。
- 另请参见:
-  
              Graphics.fillArc(int, int, int, int, int, int)
 
 -  fillArcpublic void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)覆盖Graphics.fillArc。- Specified by:
-  
              fillArc在类Graphics
- 参数
-  
              x- 要填充的圆弧左上角的 x坐标。
-  
              y- 要填充的圆弧左上角的 y坐标。
-  
              width- 要填充的弧的宽度。
-  
              height- 要填充的弧的高度。
-  
              startAngle- 开始角度。
-  
              arcAngle- 弧的角度范围,相对于起始角度。
- 另请参见:
-  
              Graphics.drawArc(int, int, int, int, int, int)
 
 -  drawPolylinepublic void drawPolyline(int[] xPoints, int[] yPoints, int nPoints)覆盖Graphics.drawPolyline。- Specified by:
-  
              drawPolyline在类Graphics
- 参数
-  
              xPoints- x个点的数组
-  
              yPoints- y点数组
-  
              nPoints- 总分数
- 另请参见:
-  
              Graphics.drawPolygon(int[], int[], int)
 
 -  drawPolygonpublic void drawPolygon(int[] xPoints, int[] yPoints, int nPoints)覆盖Graphics.drawPolygon。- Specified by:
-  
              drawPolygon在类Graphics
- 参数
-  
              xPoints- 一个x坐标的数组。
-  
              yPoints- 一个y坐标的数组。
-  
              nPoints- 总分数。
- 另请参见:
-  
              Graphics.fillPolygon(int[], int[], int),Graphics.drawPolyline(int[], int[], int)
 
 -  fillPolygonpublic void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)覆盖Graphics.fillPolygon。- Specified by:
-  
              fillPolygon在类Graphics
- 参数
-  
              xPoints- 一个x坐标的数组。
-  
              yPoints- 一个y坐标的数组。
-  
              nPoints- 总分数。
- 另请参见:
-  
              Graphics.drawPolygon(int[], int[], int)
 
 -  drawStringpublic void drawString(String aString, int x, int y) 覆盖Graphics.drawString。- Specified by:
-  
              drawString在类Graphics
- 参数
-  
              aString- 要绘制的字符串。
-  
              x- x坐标。
-  
              y- y坐标。
- 另请参见:
-  
              Graphics.drawBytes(byte[], int, int, int, int),Graphics.drawChars(char[], int, int, int, int)
 
 -  drawStringpublic void drawString(AttributedCharacterIterator iterator, int x, int y) 覆盖Graphics.drawString。- Specified by:
-  
              drawString类Graphics
- 参数
-  
              iterator- 要绘制其文本的迭代器
-  
              x- x坐标。
-  
              y- y坐标。
- 另请参见:
-  
              Graphics.drawBytes(byte[], int, int, int, int),Graphics.drawChars(char[], int, int, int, int)
 
 -  drawBytespublic 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)
 
 -  drawCharspublic 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)
 
 -  drawImagepublic boolean drawImage(Image img, int x, int y, ImageObserver observer) 覆盖Graphics.drawImage。- Specified by:
-  
              drawImage在类Graphics
- 参数
-  
              img- 要绘制的指定图像。 如果img为null,则此方法不执行任何img。
-  
              x- x坐标。
-  
              y- y坐标。
-  
              observer- 在转换更多图像时要通知的对象。
- 结果
-  
              false如果图像像素仍在变化; 否则为true。
- 另请参见:
-  
              Image,ImageObserver,ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)
 
 -  drawImagepublic boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer) 覆盖Graphics.drawImage。- Specified by:
-  
              drawImage,类Graphics
- 参数
-  
              img- 要绘制的指定图像。 如果img为null,则此方法不执行任何img。
-  
              x- x坐标。
-  
              y- y坐标。
-  
              width- 矩形的宽度。
-  
              height- 矩形的高度。
-  
              observer- 在转换更多图像时要通知的对象。
- 结果
-  
              false如果图像像素仍在变化; 否则为true。
- 另请参见:
-  
              Image,ImageObserver,ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)
 
 -  drawImagepublic boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer) 覆盖Graphics.drawImage。- Specified by:
-  
              drawImage类Graphics
- 参数
-  
              img- 要绘制的指定图像。 如果img为null,则此方法不执行任何img。
-  
              x- x坐标。
-  
              y- y坐标。
-  
              bgcolor- 要在图像的非不透明部分下绘制的背景颜色。
-  
              observer- 要转换更多图像时要通知的对象。
- 结果
-  
              false如果图像像素仍在变化; 否则为true。
- 另请参见:
-  
              Image,ImageObserver,ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)
 
 -  drawImagepublic boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer) 覆盖Graphics.drawImage。- Specified by:
-  
              drawImage,类Graphics
- 参数
-  
              img- 要绘制的指定图像。 如果img为null,则此方法不执行任何img。
-  
              x- x坐标。
-  
              y- y坐标。
-  
              width- 矩形的宽度。
-  
              height- 矩形的高度。
-  
              bgcolor- 要在图像的非不透明部分下绘制的背景颜色。
-  
              observer- 在转换更多图像时要通知的对象。
- 结果
-  
              false如果图像像素仍在变化; 否则为true。
- 另请参见:
-  
              Image,ImageObserver,ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)
 
 -  drawImagepublic boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer) 覆盖Graphics.drawImage。- Specified by:
-  
              drawImage类Graphics
- 参数
-  
              img- 要绘制的指定图像。 如果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)
 
 -  drawImagepublic 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。- Specified by:
-  
              drawImage在类Graphics
- 参数
-  
              img- 要绘制的指定图像。 如果img为null,则此方法不执行任何img。
-  
              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)
 
 -  copyAreapublic void copyArea(int x, int y, int width, int height, int destX, int destY)覆盖Graphics.copyArea。
 -  disposepublic void dispose() 覆盖Graphics.dispose。- Specified by:
-  
              dispose在类Graphics
- 另请参见:
-  
              Graphics.finalize(),Component.paint(java.awt.Graphics),Component.update(java.awt.Graphics),Component.getGraphics(),Graphics.create()
 
 -  isDrawingBufferpublic boolean isDrawingBuffer() 返回drawingBuffer值。- 结果
- 如果此对象从缓冲区绘制,则返回true
 
 -  setDebugOptionspublic void setDebugOptions(int options) 启用/禁用有关每个图形操作的诊断信息。 选项的值指示应如何显示此信息。 LOG_OPTION导致打印文本消息。 FLASH_OPTION导致绘图闪烁几次。 BUFFERED_OPTION创建一个新的Frame,显示屏幕外缓冲区上的每个操作。 选项的值按位OR进入当前值。 要禁用调试,请使用NONE_OPTION。- 参数
-  
              options- 指示应如何显示诊断信息
 
 -  getDebugOptionspublic int getDebugOptions() 返回此DebugGraphics的当前调试选项。- 结果
- 此DebugGraphics的当前调试选项
- 另请参见:
-  
              setDebugOptions(int)
 
 
-  
 
-