Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Graphics | +--com.sun.java.swing.DebugGraphics
Field Summary | |
static int | BUFFERED_OPTION
Show buffered operations in a seperate Frame. |
static int | FLASH_OPTION
Flash graphics operations. |
static int | LOG_OPTION
Log graphics operations. |
static int | NONE_OPTION
Don't debug graphics operations. |
Constructor Summary | |
DebugGraphics()
|
|
DebugGraphics(java.awt.Graphics graphics,
JComponent component)
Handle on AWT Graphics |
|
DebugGraphics(java.awt.Graphics graphics)
|
Method Summary | |
void | clearRect(int x,
int y,
int width,
int height)
|
void | clipRect(int x,
int y,
int width,
int height)
|
void | copyArea(int x,
int y,
int width,
int height,
int destX,
int destY)
|
java.awt.Graphics | create()
|
java.awt.Graphics | create(int x,
int y,
int width,
int height)
|
void | dispose()
|
void | draw3DRect(int x,
int y,
int width,
int height,
boolean raised)
|
void | drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
|
void | drawBytes(byte[] data,
int offset,
int length,
int x,
int y)
|
void | drawChars(char[] data,
int offset,
int length,
int x,
int y)
|
boolean | drawImage(java.awt.Image img,
int x,
int y,
java.awt.image.ImageObserver observer)
|
boolean | drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.image.ImageObserver observer)
|
boolean | drawImage(java.awt.Image img,
int x,
int y,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
|
boolean | drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
|
boolean | drawImage(java.awt.Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.image.ImageObserver observer)
|
boolean | drawImage(java.awt.Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
|
void | drawLine(int x1,
int y1,
int x2,
int y2)
|
void | drawOval(int x,
int y,
int width,
int height)
|
void | drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
|
void | drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
|
void | drawRect(int x,
int y,
int width,
int height)
|
void | drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
|
void | drawString(java.lang.String aString,
int x,
int y)
|
void | fill3DRect(int x,
int y,
int width,
int height,
boolean raised)
|
void | fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
|
void | fillOval(int x,
int y,
int width,
int height)
|
void | fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
|
void | fillRect(int x,
int y,
int width,
int height)
|
void | fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
|
static java.awt.Color | flashColor()
Returns the Color used to flash drawing operations. |
static int | flashCount()
Returns the number of times that drawing operations will flash. |
static int | flashTime()
Returns the time delay of drawing operation flashing. |
java.awt.Rectangle | getClipBounds()
|
java.awt.Shape | getClip()
|
java.awt.Color | getColor()
Returns the Color used for text drawing operations. |
int | getDebugOptions()
Returns the current debugging options for this DebugGraphics. |
java.awt.Font | getFont()
Returns the Font used for text drawing operations. |
java.awt.FontMetrics | getFontMetrics()
|
java.awt.FontMetrics | getFontMetrics(java.awt.Font f)
|
boolean | isDrawingBuffer()
|
static java.io.PrintStream | logStream()
Returns the stream to which the DebugGraphics logs drawing operations. |
void | setClip(int x,
int y,
int width,
int height)
|
void | setClip(java.awt.Shape clip)
|
void | setColor(java.awt.Color aColor)
Sets the color to be used for drawing and filling lines and shapes. |
void | setDebugOptions(int options)
Enables/disables diagnostic information about every graphics operation. |
static void | setFlashColor(java.awt.Color flashColor)
Sets the Color used to flash drawing operations. |
static void | setFlashCount(int flashCount)
Sets the number of times that drawing operations will flash. |
static void | setFlashTime(int flashTime)
Sets the time delay of drawing operation flashing. |
void | setFont(java.awt.Font aFont)
Sets the Font used for text drawing operations. |
static void | setLogStream(java.io.PrintStream stream)
Sets the stream to which the DebugGraphics logs drawing operations. |
void | setPaintMode()
|
void | setXORMode(java.awt.Color aColor)
|
void | translate(int x,
int y)
|
Methods inherited from class java.awt.Graphics | |
clearRect, clipRect, copyArea, create, create, dispose, draw3DRect, drawArc, drawBytes, drawChars, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawPolygon, drawPolygon, drawPolyline, drawRect, drawRoundRect, drawString, drawString, fill3DRect, fillArc, fillOval, fillPolygon, fillPolygon, fillRect, fillRoundRect, finalize, getClipBounds, getClipBounds, getClip, getClipRect, getColor, getFont, getFontMetrics, getFontMetrics, hitClip, setClip, setClip, setColor, setFont, setPaintMode, setXORMode, toString, translate |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Field Detail |
public static final int LOG_OPTION
public static final int FLASH_OPTION
public static final int BUFFERED_OPTION
public static final int NONE_OPTION
Constructor Detail |
public DebugGraphics()
public DebugGraphics(java.awt.Graphics graphics, JComponent component)
public DebugGraphics(java.awt.Graphics graphics)
Method Detail |
public java.awt.Graphics create()
public java.awt.Graphics create(int x, int y, int width, int height)
public static void setFlashColor(java.awt.Color flashColor)
public static java.awt.Color flashColor()
public static void setFlashTime(int flashTime)
public static int flashTime()
public static void setFlashCount(int flashCount)
public static int flashCount()
public static void setLogStream(java.io.PrintStream stream)
public static java.io.PrintStream logStream()
public void setFont(java.awt.Font aFont)
public java.awt.Font getFont()
public void setColor(java.awt.Color aColor)
public java.awt.Color getColor()
public java.awt.FontMetrics getFontMetrics()
public java.awt.FontMetrics getFontMetrics(java.awt.Font f)
public void translate(int x, int y)
public void setPaintMode()
public void setXORMode(java.awt.Color aColor)
public java.awt.Rectangle getClipBounds()
public void clipRect(int x, int y, int width, int height)
public void setClip(int x, int y, int width, int height)
public java.awt.Shape getClip()
public void setClip(java.awt.Shape clip)
public void drawRect(int x, int y, int width, int height)
public void fillRect(int x, int y, int width, int height)
public void clearRect(int x, int y, int width, int height)
public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
public void drawLine(int x1, int y1, int x2, int y2)
public void draw3DRect(int x, int y, int width, int height, boolean raised)
public void fill3DRect(int x, int y, int width, int height, boolean raised)
public void drawOval(int x, int y, int width, int height)
public void fillOval(int x, int y, int width, int height)
public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)
public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)
public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints)
public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints)
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
public void drawString(java.lang.String aString, int x, int y)
public void drawBytes(byte[] data, int offset, int length, int x, int y)
public void drawChars(char[] data, int offset, int length, int x, int y)
public boolean drawImage(java.awt.Image img, int x, int y, java.awt.image.ImageObserver observer)
public boolean drawImage(java.awt.Image img, int x, int y, int width, int height, java.awt.image.ImageObserver observer)
public boolean drawImage(java.awt.Image img, int x, int y, java.awt.Color bgcolor, java.awt.image.ImageObserver observer)
public boolean drawImage(java.awt.Image img, int x, int y, int width, int height, java.awt.Color bgcolor, java.awt.image.ImageObserver observer)
public boolean drawImage(java.awt.Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.image.ImageObserver observer)
public boolean drawImage(java.awt.Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.Color bgcolor, java.awt.image.ImageObserver observer)
public void copyArea(int x, int y, int width, int height, int destX, int destY)
public void dispose()
public boolean isDrawingBuffer()
public void setDebugOptions(int options)
public int getDebugOptions()
Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |