|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--java.awt.Graphics | +--javax.swing.DebugGraphics
グラフィックスのデバッグをサポートする Graphics のサブクラスです。Graphics からのほとんどのメソッドをオーバーライドします。DebugGraphics オブジェクトを手作業で構築することはほとんどありません。このようなオブジェクトは通常、JComponent の debugGraphicsOptions が setDebugGraphicsOptions() メソッドを使って変更されたときに自動的に作成されます。
注: DebugGraphics を使うには、ダブルバッファリングをオフに設定しなければなりません。
RepaintManager repaintManager = RepaintManager.currentManager(component); repaintManager.setDoubleBufferingEnabled(false);
JComponent.setDebugGraphicsOptions(int)
,
RepaintManager.currentManager(java.awt.Component)
,
RepaintManager.setDoubleBufferingEnabled(boolean)
フィールドの概要 | |
static int |
BUFFERED_OPTION
独立したフレームでのバッファ利用処理を示します。 |
static int |
FLASH_OPTION
グラフィックス処理をフラッシュします。 |
static int |
LOG_OPTION
グラフィックス処理のログをとります。 |
static int |
NONE_OPTION
グラフィックス処理をデバッグしません。 |
コンストラクタの概要 | |
DebugGraphics()
速度の遅い描画をサポートする新しいデバッググラフィックスコンテキストを構築します。 |
|
DebugGraphics(Graphics graphics)
既存のグラフィックスコンテキストから、速度の遅い描画をサポートするデバッググラフィックスコンテキストを構築します。 |
|
DebugGraphics(Graphics graphics,
JComponent component)
既存のグラフィックスコンテキストから、指定されたコンポーネントの描画速度を遅くするデバッググラフィックスコンテキストを構築します。 |
メソッドの概要 | |
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(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 をオーバーライドします。 |
クラス java.awt.Graphics から継承したメソッド |
drawPolygon,
drawString,
fillPolygon,
finalize,
getClipBounds,
getClipRect,
hitClip,
toString |
クラス java.lang.Object から継承したメソッド |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
フィールドの詳細 |
public static final int LOG_OPTION
public static final int FLASH_OPTION
public static final int BUFFERED_OPTION
public static final int NONE_OPTION
コンストラクタの詳細 |
public DebugGraphics()
public DebugGraphics(Graphics graphics, JComponent component)
graphics
- 描画速度を遅くするグラフィックスコンテキストcomponent
- ゆっくりした速度で描画される JComponentpublic DebugGraphics(Graphics graphics)
graphics
- 描画速度を遅くするグラフィックスコンテキストメソッドの詳細 |
public Graphics create()
Graphics.create
をオーバーライドして、DebugGraphics オブジェクトを返すようにします。public Graphics create(int x, int y, int width, int height)
Graphics.create
をオーバーライドして、DebugGraphics オブジェクトを返すようにします。public static void setFlashColor(Color flashColor)
public static Color flashColor()
setFlashColor(java.awt.Color)
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()
setLogStream(java.io.PrintStream)
public void setFont(Font aFont)
public Font getFont()
setFont(java.awt.Font)
public void setColor(Color aColor)
public Color getColor()
setColor(java.awt.Color)
public FontMetrics getFontMetrics()
Graphics.getFontMetrics
をオーバーライドします。public FontMetrics getFontMetrics(Font f)
Graphics.getFontMetrics
をオーバーライドします。public void translate(int x, int y)
Graphics.translate
をオーバーライドします。public void setPaintMode()
Graphics.setPaintMode
をオーバーライドします。public void setXORMode(Color aColor)
Graphics.setXORMode
をオーバーライドします。public Rectangle getClipBounds()
Graphics.getClipBounds
をオーバーライドします。public void clipRect(int x, int y, int width, int height)
Graphics.clipRect
をオーバーライドします。public void setClip(int x, int y, int width, int height)
Graphics.setClip
をオーバーライドします。public Shape getClip()
Graphics.getClip
をオーバーライドします。public void setClip(Shape clip)
Graphics.setClip
をオーバーライドします。public void drawRect(int x, int y, int width, int height)
Graphics.drawRect
をオーバーライドします。public void fillRect(int x, int y, int width, int height)
Graphics.fillRect
をオーバーライドします。public void clearRect(int x, int y, int width, int height)
Graphics.clearRect
をオーバーライドします。public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
Graphics.drawRoundRect
をオーバーライドします。public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
Graphics.fillRoundRect
をオーバーライドします。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
をオーバーライドします。public void fill3DRect(int x, int y, int width, int height, boolean raised)
Graphics.fill3DRect
をオーバーライドします。public void drawOval(int x, int y, int width, int height)
Graphics.drawOval
をオーバーライドします。public void fillOval(int x, int y, int width, int height)
Graphics.fillOval
をオーバーライドします。public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)
Graphics.drawArc
をオーバーライドします。public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)
Graphics.fillArc
をオーバーライドします。public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints)
Graphics.drawPolyline
をオーバーライドします。public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints)
Graphics.drawPolygon
をオーバーライドします。public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
Graphics.fillPolygon
をオーバーライドします。public void drawString(String aString, int x, int y)
Graphics.drawString
をオーバーライドします。public void drawBytes(byte[] data, int offset, int length, int x, int y)
Graphics.drawBytes
をオーバーライドします。public void drawChars(char[] data, int offset, int length, int x, int y)
Graphics.drawChars
をオーバーライドします。public boolean drawImage(Image img, int x, int y, ImageObserver observer)
Graphics.drawImage
をオーバーライドします。public boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)
Graphics.drawImage
をオーバーライドします。public boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)
Graphics.drawImage
をオーバーライドします。public boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)
Graphics.drawImage
をオーバーライドします。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
をオーバーライドします。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
をオーバーライドします。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)
|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |