- java.lang.Object
- 
- java.awt.Graphics
- 
- javax.swing.DebugGraphics
 
 
- 
 public class DebugGraphics extends Graphics グラフィックスのデバッグをサポートするGraphicsのサブクラスです。 Graphicsからのほとんどのメソッドをオーバーライドします。 DebugGraphicsオブジェクトを手作業で構築することはほとんどありません。 このようなオブジェクトは通常、JComponentのdebugGraphicsOptionsがsetDebugGraphicsOptions()メソッドを使って変更されたときに自動的に作成されます。注: DebugGraphicsを使うには、ダブル・バッファリングをオフに設定しなければいけません。RepaintManager repaintManager = RepaintManager.currentManager(component); repaintManager.setDoubleBufferingEnabled(false); 
- 
- 
フィールドのサマリーフィールド 修飾子と型 フィールド 説明 static intBUFFERED_OPTION独立したFrameでのバッファ利用処理を示します。static intFLASH_OPTIONグラフィックス処理をフラッシュします。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()テキスト描画処理に使う色を返します。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)テキスト描画処理に使うFontを設定します。static voidsetLogStream(PrintStream stream)DebugGraphicsが描画処理のログをとるストリームを設定します。voidsetPaintMode()Graphics.setPaintModeをオーバーライドします。voidsetXORMode(Color aColor)Graphics.setXORModeをオーバーライドします。voidtranslate(int x, int y)Graphics.translateをオーバーライドします。- 
クラス java.awt.Graphicsで宣言されたメソッドdrawPolygon, fillPolygon, finalize, getClipBounds, getClipRect, hitClip, toString
 
- 
 
- 
- 
- 
フィールドの詳細- 
LOG_OPTIONpublic static final int LOG_OPTION グラフィックス処理のログをとります。- 関連項目:
- 定数フィールド値
 
 - 
FLASH_OPTIONpublic static final int FLASH_OPTION グラフィックス処理をフラッシュします。- 関連項目:
- 定数フィールド値
 
 - 
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- 描画操作をフラッシュするために使用されるColor
 
 - 
flashColorpublic static Color flashColor() 描画処理をフラッシュするのに使う色を返します。- 戻り値:
- 描画操作をフラッシュするために使用されるColor
- 関連項目:
- 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) テキスト描画処理に使うFontを設定します。- 定義:
- 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を返します。- 定義:
- getFont、クラス:- Graphics
- 戻り値:
- このグラフィックス・コンテキストの現在のフォント。
- 関連項目:
- setFont(java.awt.Font)
 
 - 
setColorpublic void setColor(Color aColor) 線と形状を描画し塗りつぶすのに使う色を設定します。- 定義:
- setColor、クラス:- Graphics
- パラメータ:
- aColor- 新しい描画色。
- 関連項目:
- Color,- Graphics.getColor()
 
 - 
getColorpublic Color getColor() テキスト描画処理に使う色を返します。- 定義:
- 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をオーバーライドします。- 定義:
- getFontMetrics、クラス:- Graphics
- パラメータ:
- f- 指定されたフォント
- 戻り値:
- 指定されたフォントのフォント・メトリックス。
- 関連項目:
- Graphics.getFont(),- FontMetrics,- Graphics.getFontMetrics()
 
 - 
translatepublic void translate(int x, int y)Graphics.translateをオーバーライドします。
 - 
setPaintModepublic void setPaintMode() Graphics.setPaintModeをオーバーライドします。- 定義:
- setPaintMode、クラス:- Graphics
 
 - 
setXORModepublic void setXORMode(Color aColor) Graphics.setXORModeをオーバーライドします。- 定義:
- setXORMode、クラス:- Graphics
- パラメータ:
- aColor- XORの交代色
 
 - 
getClipBoundspublic Rectangle getClipBounds() Graphics.getClipBoundsをオーバーライドします。- 定義:
- 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をオーバーライドします。- 定義:
- 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をオーバーライドします。- 定義:
- setClip、クラス:- Graphics
- パラメータ:
- x- 新しいクリップ矩形のx座標。
- y- 新しいクリップ矩形のy座標。
- width- 新しいクリップ矩形の幅。
- height- 新しいクリップ矩形の高さ。
- 関連項目:
- Graphics.clipRect(int, int, int, int),- Graphics.setClip(Shape),- Graphics.getClip()
 
 - 
getClippublic 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)
 
 - 
setClippublic void setClip(Shape clip) Graphics.setClipをオーバーライドします。- 定義:
- 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をオーバーライドします。- 定義:
- 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をオーバーライドします。- 定義:
- 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をオーバーライドします。- 定義:
- drawRoundRect、クラス:- Graphics
- パラメータ:
- x- 描画される矩形のx座標。
- y- 描画される矩形のy座標。
- width- 描画される矩形の幅。
- height- 描画される矩形の高さ。
- arcWidth- 4隅にある弧の水平方向の直径。
- arcHeight- 4隅にある弧の垂直方向の直径。
- 関連項目:
- 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をオーバーライドします。- 定義:
- fillRoundRect、クラス:- Graphics
- パラメータ:
- x- 塗りつぶされる矩形のx座標。
- y- 塗りつぶされる矩形のy座標。
- width- 塗りつぶされる矩形の幅。
- height- 塗りつぶされる矩形の高さ。
- arcWidth- 4隅にある弧の水平方向の直径。
- arcHeight- 4隅にある弧の垂直方向の直径。
- 関連項目:
- 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- 矩形が表面から浮き出たように見えるか、または表面がへこんだように見えるかを決定するboolean値。
- 関連項目:
- 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- 矩形が表面から浮き出たように見えるか、または表面に彫り込まれたように見えるかを決定するboolean値。
- 関連項目:
- Graphics.draw3DRect(int, int, int, int, boolean)
 
 - 
drawOvalpublic 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)
 
 - 
fillOvalpublic 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)
 
 - 
drawArcpublic 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)
 
 - 
fillArcpublic 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)
 
 - 
drawPolylinepublic void drawPolyline(int[] xPoints, int[] yPoints, int nPoints)Graphics.drawPolylineをオーバーライドします。- 定義:
- drawPolyline、クラス:- Graphics
- パラメータ:
- xPoints- x点の配列
- yPoints- y点の配列
- nPoints- 点の総数
- 関連項目:
- Graphics.drawPolygon(int[], int[], int)
 
 - 
drawPolygonpublic 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)
 
 - 
fillPolygonpublic void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)Graphics.fillPolygonをオーバーライドします。- 定義:
- fillPolygon、クラス:- Graphics
- パラメータ:
- xPoints-- x座標の配列。
- yPoints-- y座標の配列。
- nPoints- 点の総数。
- 関連項目:
- Graphics.drawPolygon(int[], int[], int)
 
 - 
drawStringpublic 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)
 
 - 
drawStringpublic 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)
 
 - 
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をオーバーライドします。- 定義:
- drawImage、クラス:- Graphics
- パラメータ:
- img- 描画される指定されたイメージ。- imgがnullである場合、このメソッドは何も行いません。
- 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をオーバーライドします。- 定義:
- drawImage、クラス:- Graphics
- パラメータ:
- img- 描画される指定されたイメージ。- imgがnullである場合、このメソッドは何も行いません。
- 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をオーバーライドします。- 定義:
- drawImage、クラス:- Graphics
- パラメータ:
- img- 描画される指定されたイメージ。- imgがnullである場合、このメソッドは何も行いません。
- 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をオーバーライドします。- 定義:
- drawImage、クラス:- Graphics
- パラメータ:
- img- 描画される指定されたイメージ。- imgがnullである場合、このメソッドは何も行いません。
- 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をオーバーライドします。- 定義:
- drawImage、クラス:- Graphics
- パラメータ:
- img- 描画される指定されたイメージ。- imgがnullである場合、このメソッドは何も行いません。
- dx1- デスティネーション矩形の最初の隅のx座標。
- dy1- デスティネーション矩形の最初の隅のy座標。
- dx2- デスティネーション矩形の2番目の隅のx座標。
- dy2- デスティネーション矩形の2番目の隅のy座標。
- sx1- ソース矩形の最初の隅のx座標。
- sy1- ソース矩形の最初の隅のy座標。
- sx2- ソース矩形の2番目の隅のx座標。
- sy2- ソース矩形の2番目の隅の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をオーバーライドします。- 定義:
- drawImage、クラス:- Graphics
- パラメータ:
- img- 描画される指定されたイメージ。- imgがnullである場合、このメソッドは何も行いません。
- dx1- デスティネーション矩形の最初の隅のx座標。
- dy1- デスティネーション矩形の最初の隅のy座標。
- dx2- デスティネーション矩形の2番目の隅のx座標。
- dy2- デスティネーション矩形の2番目の隅のy座標。
- sx1- ソース矩形の最初の隅のx座標。
- sy1- ソース矩形の最初の隅のy座標。
- sx2- ソース矩形の2番目の隅のx座標。
- sy2- ソース矩形の2番目の隅の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をオーバーライドします。
 - 
isDrawingBufferpublic boolean isDrawingBuffer() drawingBufferの値を返します。- 戻り値:
- このオブジェクトがバッファから描画される場合はtrue
 
 - 
setDebugOptionspublic void setDebugOptions(int options) 各グラフィックス処理についての診断情報を有効または無効にします。 optionsの値は、この情報の表示方法を示します。 LOG_OPTIONは、テキスト・メッセージを出力させます。 FLASH_OPTIONは、描画に数回にわたってフラッシュさせます。 BUFFERED_OPTIONは、オフスクリーン・バッファの各処理を示す新しいフレームを作成します。 optionsの値は、現在の値に対するビット単位の論理和です。 デバッグを無効にするには、NONE_OPTIONを使います。- パラメータ:
- options- 診断情報の表示方法を示します。
 
 - 
getDebugOptionspublic int getDebugOptions() DebugGraphicsの現在のデバッグ・オプションを返します。- 戻り値:
- このDebugGraphicsの現在のデバッグ・オプション
- 関連項目:
- setDebugOptions(int)
 
 
- 
 
-