javax.swing
Class DebugGraphics

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.awt.Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics 
      extended by javax.swing.DebugGraphics

public class DebugGraphics
extends Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics

Graphics subclass supporting graphics debugging. Overrides most methods from Graphics. DebugGraphics objects are rarely created by hand. They are most frequently created automatically when a JComponent's debugGraphicsOptions are changed using the setDebugGraphicsOptions() method.

NOTE: You must turn off double buffering to use DebugGraphics: RepaintManager repaintManager = RepaintManager.currentManager(component); repaintManager.setDoubleBufferingEnabled(false);

See Also:
JComponent.setDebugGraphicsOptions(int) sample code for javax.swing.JComponent.setDebugGraphicsOptions(int) definition code for javax.swing.JComponent.setDebugGraphicsOptions(int) , RepaintManager.currentManager(java.awt.Component) sample code for javax.swing.RepaintManager.currentManager(java.awt.Component) definition code for javax.swing.RepaintManager.currentManager(java.awt.Component) , RepaintManager.setDoubleBufferingEnabled(boolean) sample code for javax.swing.RepaintManager.setDoubleBufferingEnabled(boolean) definition code for javax.swing.RepaintManager.setDoubleBufferingEnabled(boolean)

Field Summary
static int BUFFERED_OPTION sample code for javax.swing.DebugGraphics.BUFFERED_OPTION definition code for javax.swing.DebugGraphics.BUFFERED_OPTION
          Show buffered operations in a separate Frame.
static int FLASH_OPTION sample code for javax.swing.DebugGraphics.FLASH_OPTION definition code for javax.swing.DebugGraphics.FLASH_OPTION
          Flash graphics operations.
static int LOG_OPTION sample code for javax.swing.DebugGraphics.LOG_OPTION definition code for javax.swing.DebugGraphics.LOG_OPTION
          Log graphics operations.
static int NONE_OPTION sample code for javax.swing.DebugGraphics.NONE_OPTION definition code for javax.swing.DebugGraphics.NONE_OPTION
          Don't debug graphics operations.
 
Constructor Summary
DebugGraphics sample code for javax.swing.DebugGraphics.DebugGraphics() definition code for javax.swing.DebugGraphics.DebugGraphics() ()
          Constructs a new debug graphics context that supports slowed down drawing.
DebugGraphics sample code for javax.swing.DebugGraphics.DebugGraphics(java.awt.Graphics) definition code for javax.swing.DebugGraphics.DebugGraphics(java.awt.Graphics) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  graphics)
          Constructs a debug graphics context from an existing graphics context that supports slowed down drawing.
DebugGraphics sample code for javax.swing.DebugGraphics.DebugGraphics(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.DebugGraphics.DebugGraphics(java.awt.Graphics, javax.swing.JComponent) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  graphics, JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  component)
          Constructs a debug graphics context from an existing graphics context that slows down drawing for the specified component.
 
Method Summary
 void clearRect sample code for javax.swing.DebugGraphics.clearRect(int, int, int, int) definition code for javax.swing.DebugGraphics.clearRect(int, int, int, int) (int x, int y, int width, int height)
          Overrides Graphics.clearRect.
 void clipRect sample code for javax.swing.DebugGraphics.clipRect(int, int, int, int) definition code for javax.swing.DebugGraphics.clipRect(int, int, int, int) (int x, int y, int width, int height)
          Overrides Graphics.clipRect.
 void copyArea sample code for javax.swing.DebugGraphics.copyArea(int, int, int, int, int, int) definition code for javax.swing.DebugGraphics.copyArea(int, int, int, int, int, int) (int x, int y, int width, int height, int destX, int destY)
          Overrides Graphics.copyArea.
 Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics create sample code for javax.swing.DebugGraphics.create() definition code for javax.swing.DebugGraphics.create() ()
          Overrides Graphics.create to return a DebugGraphics object.
 Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics create sample code for javax.swing.DebugGraphics.create(int, int, int, int) definition code for javax.swing.DebugGraphics.create(int, int, int, int) (int x, int y, int width, int height)
          Overrides Graphics.create to return a DebugGraphics object.
 void dispose sample code for javax.swing.DebugGraphics.dispose() definition code for javax.swing.DebugGraphics.dispose() ()
          Overrides Graphics.dispose.
 void draw3DRect sample code for javax.swing.DebugGraphics.draw3DRect(int, int, int, int, boolean) definition code for javax.swing.DebugGraphics.draw3DRect(int, int, int, int, boolean) (int x, int y, int width, int height, boolean raised)
          Overrides Graphics.draw3DRect.
 void drawArc sample code for javax.swing.DebugGraphics.drawArc(int, int, int, int, int, int) definition code for javax.swing.DebugGraphics.drawArc(int, int, int, int, int, int) (int x, int y, int width, int height, int startAngle, int arcAngle)
          Overrides Graphics.drawArc.
 void drawBytes sample code for javax.swing.DebugGraphics.drawBytes(byte[], int, int, int, int) definition code for javax.swing.DebugGraphics.drawBytes(byte[], int, int, int, int) (byte[] data, int offset, int length, int x, int y)
          Overrides Graphics.drawBytes.
 void drawChars sample code for javax.swing.DebugGraphics.drawChars(char[], int, int, int, int) definition code for javax.swing.DebugGraphics.drawChars(char[], int, int, int, int) (char[] data, int offset, int length, int x, int y)
          Overrides Graphics.drawChars.
 boolean drawImage sample code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, java.awt.Color, java.awt.image.ImageObserver) definition code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, java.awt.Color, java.awt.image.ImageObserver) (Image sample code for java.awt.Image definition code for java.awt.Image  img, int x, int y, Color sample code for java.awt.Color definition code for java.awt.Color  bgcolor, ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver  observer)
          Overrides Graphics.drawImage.
 boolean drawImage sample code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver) definition code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver) (Image sample code for java.awt.Image definition code for java.awt.Image  img, int x, int y, ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver  observer)
          Overrides Graphics.drawImage.
 boolean drawImage sample code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver) definition code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver) (Image sample code for java.awt.Image definition code for java.awt.Image  img, int x, int y, int width, int height, Color sample code for java.awt.Color definition code for java.awt.Color  bgcolor, ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver  observer)
          Overrides Graphics.drawImage.
 boolean drawImage sample code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, int, int, java.awt.image.ImageObserver) definition code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, int, int, java.awt.image.ImageObserver) (Image sample code for java.awt.Image definition code for java.awt.Image  img, int x, int y, int width, int height, ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver  observer)
          Overrides Graphics.drawImage.
 boolean drawImage sample code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver) definition code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver) (Image sample code for java.awt.Image definition code for java.awt.Image  img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color sample code for java.awt.Color definition code for java.awt.Color  bgcolor, ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver  observer)
          Overrides Graphics.drawImage.
 boolean drawImage sample code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.image.ImageObserver) definition code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.image.ImageObserver) (Image sample code for java.awt.Image definition code for java.awt.Image  img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver  observer)
          Overrides Graphics.drawImage.
 void drawLine sample code for javax.swing.DebugGraphics.drawLine(int, int, int, int) definition code for javax.swing.DebugGraphics.drawLine(int, int, int, int) (int x1, int y1, int x2, int y2)
          Overrides Graphics.drawLine.
 void drawOval sample code for javax.swing.DebugGraphics.drawOval(int, int, int, int) definition code for javax.swing.DebugGraphics.drawOval(int, int, int, int) (int x, int y, int width, int height)
          Overrides Graphics.drawOval.
 void drawPolygon sample code for javax.swing.DebugGraphics.drawPolygon(int[], int[], int) definition code for javax.swing.DebugGraphics.drawPolygon(int[], int[], int) (int[] xPoints, int[] yPoints, int nPoints)
          Overrides Graphics.drawPolygon.
 void drawPolyline sample code for javax.swing.DebugGraphics.drawPolyline(int[], int[], int) definition code for javax.swing.DebugGraphics.drawPolyline(int[], int[], int) (int[] xPoints, int[] yPoints, int nPoints)
          Overrides Graphics.drawPolyline.
 void drawRect sample code for javax.swing.DebugGraphics.drawRect(int, int, int, int) definition code for javax.swing.DebugGraphics.drawRect(int, int, int, int) (int x, int y, int width, int height)
          Overrides Graphics.drawRect.
 void drawRoundRect sample code for javax.swing.DebugGraphics.drawRoundRect(int, int, int, int, int, int) definition code for javax.swing.DebugGraphics.drawRoundRect(int, int, int, int, int, int) (int x, int y, int width, int height, int arcWidth, int arcHeight)
          Overrides Graphics.drawRoundRect.
 void drawString sample code for javax.swing.DebugGraphics.drawString(java.text.AttributedCharacterIterator, int, int) definition code for javax.swing.DebugGraphics.drawString(java.text.AttributedCharacterIterator, int, int) (AttributedCharacterIterator sample code for java.text.AttributedCharacterIterator definition code for java.text.AttributedCharacterIterator  iterator, int x, int y)
          Overrides Graphics.drawString.
 void drawString sample code for javax.swing.DebugGraphics.drawString(java.lang.String, int, int) definition code for javax.swing.DebugGraphics.drawString(java.lang.String, int, int) (String sample code for java.lang.String definition code for java.lang.String  aString, int x, int y)
          Overrides Graphics.drawString.
 void fill3DRect sample code for javax.swing.DebugGraphics.fill3DRect(int, int, int, int, boolean) definition code for javax.swing.DebugGraphics.fill3DRect(int, int, int, int, boolean) (int x, int y, int width, int height, boolean raised)
          Overrides Graphics.fill3DRect.
 void fillArc sample code for javax.swing.DebugGraphics.fillArc(int, int, int, int, int, int) definition code for javax.swing.DebugGraphics.fillArc(int, int, int, int, int, int) (int x, int y, int width, int height, int startAngle, int arcAngle)
          Overrides Graphics.fillArc.
 void fillOval sample code for javax.swing.DebugGraphics.fillOval(int, int, int, int) definition code for javax.swing.DebugGraphics.fillOval(int, int, int, int) (int x, int y, int width, int height)
          Overrides Graphics.fillOval.
 void fillPolygon sample code for javax.swing.DebugGraphics.fillPolygon(int[], int[], int) definition code for javax.swing.DebugGraphics.fillPolygon(int[], int[], int) (int[] xPoints, int[] yPoints, int nPoints)
          Overrides Graphics.fillPolygon.
 void fillRect sample code for javax.swing.DebugGraphics.fillRect(int, int, int, int) definition code for javax.swing.DebugGraphics.fillRect(int, int, int, int) (int x, int y, int width, int height)
          Overrides Graphics.fillRect.
 void fillRoundRect sample code for javax.swing.DebugGraphics.fillRoundRect(int, int, int, int, int, int) definition code for javax.swing.DebugGraphics.fillRoundRect(int, int, int, int, int, int) (int x, int y, int width, int height, int arcWidth, int arcHeight)
          Overrides Graphics.fillRoundRect.
static Color sample code for java.awt.Color definition code for java.awt.Color flashColor sample code for javax.swing.DebugGraphics.flashColor() definition code for javax.swing.DebugGraphics.flashColor() ()
          Returns the Color used to flash drawing operations.
static int flashCount sample code for javax.swing.DebugGraphics.flashCount() definition code for javax.swing.DebugGraphics.flashCount() ()
          Returns the number of times that drawing operations will flash.
static int flashTime sample code for javax.swing.DebugGraphics.flashTime() definition code for javax.swing.DebugGraphics.flashTime() ()
          Returns the time delay of drawing operation flashing.
 Shape sample code for java.awt.Shape definition code for java.awt.Shape getClip sample code for javax.swing.DebugGraphics.getClip() definition code for javax.swing.DebugGraphics.getClip() ()
          Overrides Graphics.getClip.
 Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle getClipBounds sample code for javax.swing.DebugGraphics.getClipBounds() definition code for javax.swing.DebugGraphics.getClipBounds() ()
          Overrides Graphics.getClipBounds.
 Color sample code for java.awt.Color definition code for java.awt.Color getColor sample code for javax.swing.DebugGraphics.getColor() definition code for javax.swing.DebugGraphics.getColor() ()
          Returns the Color used for text drawing operations.
 int getDebugOptions sample code for javax.swing.DebugGraphics.getDebugOptions() definition code for javax.swing.DebugGraphics.getDebugOptions() ()
          Returns the current debugging options for this DebugGraphics.
 Font sample code for java.awt.Font definition code for java.awt.Font getFont sample code for javax.swing.DebugGraphics.getFont() definition code for javax.swing.DebugGraphics.getFont() ()
          Returns the Font used for text drawing operations.
 FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics getFontMetrics sample code for javax.swing.DebugGraphics.getFontMetrics() definition code for javax.swing.DebugGraphics.getFontMetrics() ()
          Overrides Graphics.getFontMetrics.
 FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics getFontMetrics sample code for javax.swing.DebugGraphics.getFontMetrics(java.awt.Font) definition code for javax.swing.DebugGraphics.getFontMetrics(java.awt.Font) (Font sample code for java.awt.Font definition code for java.awt.Font  f)
          Overrides Graphics.getFontMetrics.
 boolean isDrawingBuffer sample code for javax.swing.DebugGraphics.isDrawingBuffer() definition code for javax.swing.DebugGraphics.isDrawingBuffer() ()
          Returns the drawingBuffer value.
static PrintStream sample code for java.io.PrintStream definition code for java.io.PrintStream logStream sample code for javax.swing.DebugGraphics.logStream() definition code for javax.swing.DebugGraphics.logStream() ()
          Returns the stream to which the DebugGraphics logs drawing operations.
 void setClip sample code for javax.swing.DebugGraphics.setClip(int, int, int, int) definition code for javax.swing.DebugGraphics.setClip(int, int, int, int) (int x, int y, int width, int height)
          Overrides Graphics.setClip.
 void setClip sample code for javax.swing.DebugGraphics.setClip(java.awt.Shape) definition code for javax.swing.DebugGraphics.setClip(java.awt.Shape) (Shape sample code for java.awt.Shape definition code for java.awt.Shape  clip)
          Overrides Graphics.setClip.
 void setColor sample code for javax.swing.DebugGraphics.setColor(java.awt.Color) definition code for javax.swing.DebugGraphics.setColor(java.awt.Color) (Color sample code for java.awt.Color definition code for java.awt.Color  aColor)
          Sets the color to be used for drawing and filling lines and shapes.
 void setDebugOptions sample code for javax.swing.DebugGraphics.setDebugOptions(int) definition code for javax.swing.DebugGraphics.setDebugOptions(int) (int options)
          Enables/disables diagnostic information about every graphics operation.
static void setFlashColor sample code for javax.swing.DebugGraphics.setFlashColor(java.awt.Color) definition code for javax.swing.DebugGraphics.setFlashColor(java.awt.Color) (Color sample code for java.awt.Color definition code for java.awt.Color  flashColor)
          Sets the Color used to flash drawing operations.
static void setFlashCount sample code for javax.swing.DebugGraphics.setFlashCount(int) definition code for javax.swing.DebugGraphics.setFlashCount(int) (int flashCount)
          Sets the number of times that drawing operations will flash.
static void setFlashTime sample code for javax.swing.DebugGraphics.setFlashTime(int) definition code for javax.swing.DebugGraphics.setFlashTime(int) (int flashTime)
          Sets the time delay of drawing operation flashing.
 void setFont sample code for javax.swing.DebugGraphics.setFont(java.awt.Font) definition code for javax.swing.DebugGraphics.setFont(java.awt.Font) (Font sample code for java.awt.Font definition code for java.awt.Font  aFont)
          Sets the Font used for text drawing operations.
static void setLogStream sample code for javax.swing.DebugGraphics.setLogStream(java.io.PrintStream) definition code for javax.swing.DebugGraphics.setLogStream(java.io.PrintStream) (PrintStream sample code for java.io.PrintStream definition code for java.io.PrintStream  stream)
          Sets the stream to which the DebugGraphics logs drawing operations.
 void setPaintMode sample code for javax.swing.DebugGraphics.setPaintMode() definition code for javax.swing.DebugGraphics.setPaintMode() ()
          Overrides Graphics.setPaintMode.
 void setXORMode sample code for javax.swing.DebugGraphics.setXORMode(java.awt.Color) definition code for javax.swing.DebugGraphics.setXORMode(java.awt.Color) (Color sample code for java.awt.Color definition code for java.awt.Color  aColor)
          Overrides Graphics.setXORMode.
 void translate sample code for javax.swing.DebugGraphics.translate(int, int) definition code for javax.swing.DebugGraphics.translate(int, int) (int x, int y)
          Overrides Graphics.translate.
 
Methods inherited from class java.awt.Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
drawPolygon sample code for java.awt.Graphics.drawPolygon(java.awt.Polygon) definition code for java.awt.Graphics.drawPolygon(java.awt.Polygon) , fillPolygon sample code for java.awt.Graphics.fillPolygon(java.awt.Polygon) definition code for java.awt.Graphics.fillPolygon(java.awt.Polygon) , finalize sample code for java.awt.Graphics.finalize() definition code for java.awt.Graphics.finalize() , getClipBounds sample code for java.awt.Graphics.getClipBounds(java.awt.Rectangle) definition code for java.awt.Graphics.getClipBounds(java.awt.Rectangle) , getClipRect sample code for java.awt.Graphics.getClipRect() definition code for java.awt.Graphics.getClipRect() , hitClip sample code for java.awt.Graphics.hitClip(int, int, int, int) definition code for java.awt.Graphics.hitClip(int, int, int, int) , toString sample code for java.awt.Graphics.toString() definition code for java.awt.Graphics.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

LOG_OPTION sample code for javax.swing.DebugGraphics.LOG_OPTION

public static final int LOG_OPTION
Log graphics operations.

See Also:
Constant Field Values

FLASH_OPTION sample code for javax.swing.DebugGraphics.FLASH_OPTION

public static final int FLASH_OPTION
Flash graphics operations.

See Also:
Constant Field Values

BUFFERED_OPTION sample code for javax.swing.DebugGraphics.BUFFERED_OPTION

public static final int BUFFERED_OPTION
Show buffered operations in a separate Frame.

See Also:
Constant Field Values

NONE_OPTION sample code for javax.swing.DebugGraphics.NONE_OPTION

public static final int NONE_OPTION
Don't debug graphics operations.

See Also:
Constant Field Values
Constructor Detail

DebugGraphics sample code for javax.swing.DebugGraphics() definition code for javax.swing.DebugGraphics()

public DebugGraphics()
Constructs a new debug graphics context that supports slowed down drawing.


DebugGraphics sample code for javax.swing.DebugGraphics(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.DebugGraphics(java.awt.Graphics, javax.swing.JComponent)

public DebugGraphics(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  graphics,
                     JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  component)
Constructs a debug graphics context from an existing graphics context that slows down drawing for the specified component.

Parameters:
graphics - the Graphics context to slow down
component - the JComponent to draw slowly

DebugGraphics sample code for javax.swing.DebugGraphics(java.awt.Graphics) definition code for javax.swing.DebugGraphics(java.awt.Graphics)

public DebugGraphics(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  graphics)
Constructs a debug graphics context from an existing graphics context that supports slowed down drawing.

Parameters:
graphics - the Graphics context to slow down
Method Detail

create sample code for javax.swing.DebugGraphics.create() definition code for javax.swing.DebugGraphics.create()

public Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  create()
Overrides Graphics.create to return a DebugGraphics object.

Specified by:
create sample code for java.awt.Graphics.create() definition code for java.awt.Graphics.create() in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Returns:
a new graphics context that is a copy of this graphics context.

create sample code for javax.swing.DebugGraphics.create(int, int, int, int) definition code for javax.swing.DebugGraphics.create(int, int, int, int)

public Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  create(int x,
                       int y,
                       int width,
                       int height)
Overrides Graphics.create to return a DebugGraphics object.

Overrides:
create sample code for java.awt.Graphics.create(int, int, int, int) definition code for java.awt.Graphics.create(int, int, int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
x - the x coordinate.
y - the y coordinate.
width - the width of the clipping rectangle.
height - the height of the clipping rectangle.
Returns:
a new graphics context.
See Also:
Graphics.translate(int, int) sample code for java.awt.Graphics.translate(int, int) definition code for java.awt.Graphics.translate(int, int) , Graphics.clipRect(int, int, int, int) sample code for java.awt.Graphics.clipRect(int, int, int, int) definition code for java.awt.Graphics.clipRect(int, int, int, int)

setFlashColor sample code for javax.swing.DebugGraphics.setFlashColor(java.awt.Color) definition code for javax.swing.DebugGraphics.setFlashColor(java.awt.Color)

public static void setFlashColor(Color sample code for java.awt.Color definition code for java.awt.Color  flashColor)
Sets the Color used to flash drawing operations.


flashColor sample code for javax.swing.DebugGraphics.flashColor() definition code for javax.swing.DebugGraphics.flashColor()

public static Color sample code for java.awt.Color definition code for java.awt.Color  flashColor()
Returns the Color used to flash drawing operations.

See Also:
setFlashColor(java.awt.Color) sample code for javax.swing.DebugGraphics.setFlashColor(java.awt.Color) definition code for javax.swing.DebugGraphics.setFlashColor(java.awt.Color)

setFlashTime sample code for javax.swing.DebugGraphics.setFlashTime(int) definition code for javax.swing.DebugGraphics.setFlashTime(int)

public static void setFlashTime(int flashTime)
Sets the time delay of drawing operation flashing.


flashTime sample code for javax.swing.DebugGraphics.flashTime() definition code for javax.swing.DebugGraphics.flashTime()

public static int flashTime()
Returns the time delay of drawing operation flashing.

See Also:
setFlashTime(int) sample code for javax.swing.DebugGraphics.setFlashTime(int) definition code for javax.swing.DebugGraphics.setFlashTime(int)

setFlashCount sample code for javax.swing.DebugGraphics.setFlashCount(int) definition code for javax.swing.DebugGraphics.setFlashCount(int)

public static void setFlashCount(int flashCount)
Sets the number of times that drawing operations will flash.


flashCount sample code for javax.swing.DebugGraphics.flashCount() definition code for javax.swing.DebugGraphics.flashCount()

public static int flashCount()
Returns the number of times that drawing operations will flash.

See Also:
setFlashCount(int) sample code for javax.swing.DebugGraphics.setFlashCount(int) definition code for javax.swing.DebugGraphics.setFlashCount(int)

setLogStream sample code for javax.swing.DebugGraphics.setLogStream(java.io.PrintStream) definition code for javax.swing.DebugGraphics.setLogStream(java.io.PrintStream)

public static void setLogStream(PrintStream sample code for java.io.PrintStream definition code for java.io.PrintStream  stream)
Sets the stream to which the DebugGraphics logs drawing operations.


logStream sample code for javax.swing.DebugGraphics.logStream() definition code for javax.swing.DebugGraphics.logStream()

public static PrintStream sample code for java.io.PrintStream definition code for java.io.PrintStream  logStream()
Returns the stream to which the DebugGraphics logs drawing operations.

See Also:
setLogStream(java.io.PrintStream) sample code for javax.swing.DebugGraphics.setLogStream(java.io.PrintStream) definition code for javax.swing.DebugGraphics.setLogStream(java.io.PrintStream)

setFont sample code for javax.swing.DebugGraphics.setFont(java.awt.Font) definition code for javax.swing.DebugGraphics.setFont(java.awt.Font)

public void setFont(Font sample code for java.awt.Font definition code for java.awt.Font  aFont)
Sets the Font used for text drawing operations.

Specified by:
setFont sample code for java.awt.Graphics.setFont(java.awt.Font) definition code for java.awt.Graphics.setFont(java.awt.Font) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
aFont - the font.
See Also:
Graphics.getFont() sample code for java.awt.Graphics.getFont() definition code for java.awt.Graphics.getFont() , Graphics.drawString(java.lang.String, int, int) sample code for java.awt.Graphics.drawString(java.lang.String, int, int) definition code for java.awt.Graphics.drawString(java.lang.String, int, int) , Graphics.drawBytes(byte[], int, int, int, int) sample code for java.awt.Graphics.drawBytes(byte[], int, int, int, int) definition code for java.awt.Graphics.drawBytes(byte[], int, int, int, int) , Graphics.drawChars(char[], int, int, int, int) sample code for java.awt.Graphics.drawChars(char[], int, int, int, int) definition code for java.awt.Graphics.drawChars(char[], int, int, int, int)

getFont sample code for javax.swing.DebugGraphics.getFont() definition code for javax.swing.DebugGraphics.getFont()

public Font sample code for java.awt.Font definition code for java.awt.Font  getFont()
Returns the Font used for text drawing operations.

Specified by:
getFont sample code for java.awt.Graphics.getFont() definition code for java.awt.Graphics.getFont() in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Returns:
this graphics context's current font.
See Also:
setFont(java.awt.Font) sample code for javax.swing.DebugGraphics.setFont(java.awt.Font) definition code for javax.swing.DebugGraphics.setFont(java.awt.Font)

setColor sample code for javax.swing.DebugGraphics.setColor(java.awt.Color) definition code for javax.swing.DebugGraphics.setColor(java.awt.Color)

public void setColor(Color sample code for java.awt.Color definition code for java.awt.Color  aColor)
Sets the color to be used for drawing and filling lines and shapes.

Specified by:
setColor sample code for java.awt.Graphics.setColor(java.awt.Color) definition code for java.awt.Graphics.setColor(java.awt.Color) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
aColor - the new rendering color.
See Also:
Color sample code for java.awt.Color definition code for java.awt.Color , Graphics.getColor() sample code for java.awt.Graphics.getColor() definition code for java.awt.Graphics.getColor()

getColor sample code for javax.swing.DebugGraphics.getColor() definition code for javax.swing.DebugGraphics.getColor()

public Color sample code for java.awt.Color definition code for java.awt.Color  getColor()
Returns the Color used for text drawing operations.

Specified by:
getColor sample code for java.awt.Graphics.getColor() definition code for java.awt.Graphics.getColor() in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Returns:
this graphics context's current color.
See Also:
setColor(java.awt.Color) sample code for javax.swing.DebugGraphics.setColor(java.awt.Color) definition code for javax.swing.DebugGraphics.setColor(java.awt.Color)

getFontMetrics sample code for javax.swing.DebugGraphics.getFontMetrics() definition code for javax.swing.DebugGraphics.getFontMetrics()

public FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics  getFontMetrics()
Overrides Graphics.getFontMetrics.

Overrides:
getFontMetrics sample code for java.awt.Graphics.getFontMetrics() definition code for java.awt.Graphics.getFontMetrics() in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Returns:
the font metrics of this graphics context's current font.
See Also:
Graphics.getFont() sample code for java.awt.Graphics.getFont() definition code for java.awt.Graphics.getFont() , FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics , Graphics.getFontMetrics(Font) sample code for java.awt.Graphics.getFontMetrics(java.awt.Font) definition code for java.awt.Graphics.getFontMetrics(java.awt.Font)

getFontMetrics sample code for javax.swing.DebugGraphics.getFontMetrics(java.awt.Font) definition code for javax.swing.DebugGraphics.getFontMetrics(java.awt.Font)

public FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics  getFontMetrics(Font sample code for java.awt.Font definition code for java.awt.Font  f)
Overrides Graphics.getFontMetrics.

Specified by:
getFontMetrics sample code for java.awt.Graphics.getFontMetrics(java.awt.Font) definition code for java.awt.Graphics.getFontMetrics(java.awt.Font) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
f - the specified font
Returns:
the font metrics for the specified font.
See Also:
Graphics.getFont() sample code for java.awt.Graphics.getFont() definition code for java.awt.Graphics.getFont() , FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics , Graphics.getFontMetrics() sample code for java.awt.Graphics.getFontMetrics() definition code for java.awt.Graphics.getFontMetrics()

translate sample code for javax.swing.DebugGraphics.translate(int, int) definition code for javax.swing.DebugGraphics.translate(int, int)

public void translate(int x,
                      int y)
Overrides Graphics.translate.

Specified by:
translate sample code for java.awt.Graphics.translate(int, int) definition code for java.awt.Graphics.translate(int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
x - the x coordinate.
y - the y coordinate.

setPaintMode sample code for javax.swing.DebugGraphics.setPaintMode() definition code for javax.swing.DebugGraphics.setPaintMode()

public void setPaintMode()
Overrides Graphics.setPaintMode.

Specified by:
setPaintMode sample code for java.awt.Graphics.setPaintMode() definition code for java.awt.Graphics.setPaintMode() in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics

setXORMode sample code for javax.swing.DebugGraphics.setXORMode(java.awt.Color) definition code for javax.swing.DebugGraphics.setXORMode(java.awt.Color)

public void setXORMode(Color sample code for java.awt.Color definition code for java.awt.Color  aColor)
Overrides Graphics.setXORMode.

Specified by:
setXORMode sample code for java.awt.Graphics.setXORMode(java.awt.Color) definition code for java.awt.Graphics.setXORMode(java.awt.Color) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
aColor - the XOR alternation color

getClipBounds sample code for javax.swing.DebugGraphics.getClipBounds() definition code for javax.swing.DebugGraphics.getClipBounds()

public Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  getClipBounds()
Overrides Graphics.getClipBounds.

Specified by:
getClipBounds sample code for java.awt.Graphics.getClipBounds() definition code for java.awt.Graphics.getClipBounds() in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Returns:
the bounding rectangle of the current clipping area, or null if no clip is set.
See Also:
Graphics.getClip() sample code for java.awt.Graphics.getClip() definition code for java.awt.Graphics.getClip() , Graphics.clipRect(int, int, int, int) sample code for java.awt.Graphics.clipRect(int, int, int, int) definition code for java.awt.Graphics.clipRect(int, int, int, int) , Graphics.setClip(int, int, int, int) sample code for java.awt.Graphics.setClip(int, int, int, int) definition code for java.awt.Graphics.setClip(int, int, int, int) , Graphics.setClip(Shape) sample code for java.awt.Graphics.setClip(java.awt.Shape) definition code for java.awt.Graphics.setClip(java.awt.Shape)

clipRect sample code for javax.swing.DebugGraphics.clipRect(int, int, int, int) definition code for javax.swing.DebugGraphics.clipRect(int, int, int, int)

public void clipRect(int x,
                     int y,
                     int width,
                     int height)
Overrides Graphics.clipRect.

Specified by:
clipRect sample code for java.awt.Graphics.clipRect(int, int, int, int) definition code for java.awt.Graphics.clipRect(int, int, int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
x - the x coordinate of the rectangle to intersect the clip with
y - the y coordinate of the rectangle to intersect the clip with
width - the width of the rectangle to intersect the clip with
height - the height of the rectangle to intersect the clip with
See Also:
Graphics.setClip(int, int, int, int) sample code for java.awt.Graphics.setClip(int, int, int, int) definition code for java.awt.Graphics.setClip(int, int, int, int) , Graphics.setClip(Shape) sample code for java.awt.Graphics.setClip(java.awt.Shape) definition code for java.awt.Graphics.setClip(java.awt.Shape)

setClip sample code for javax.swing.DebugGraphics.setClip(int, int, int, int) definition code for javax.swing.DebugGraphics.setClip(int, int, int, int)

public void setClip(int x,
                    int y,
                    int width,
                    int height)
Overrides Graphics.setClip.

Specified by:
setClip sample code for java.awt.Graphics.setClip(int, int, int, int) definition code for java.awt.Graphics.setClip(int, int, int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
x - the x coordinate of the new clip rectangle.
y - the y coordinate of the new clip rectangle.
width - the width of the new clip rectangle.
height - the height of the new clip rectangle.
See Also:
Graphics.clipRect(int, int, int, int) sample code for java.awt.Graphics.clipRect(int, int, int, int) definition code for java.awt.Graphics.clipRect(int, int, int, int) , Graphics.setClip(Shape) sample code for java.awt.Graphics.setClip(java.awt.Shape) definition code for java.awt.Graphics.setClip(java.awt.Shape) , Graphics.getClip() sample code for java.awt.Graphics.getClip() definition code for java.awt.Graphics.getClip()

getClip sample code for javax.swing.DebugGraphics.getClip() definition code for javax.swing.DebugGraphics.getClip()

public Shape sample code for java.awt.Shape definition code for java.awt.Shape  getClip()
Overrides Graphics.getClip.

Specified by:
getClip sample code for java.awt.Graphics.getClip() definition code for java.awt.Graphics.getClip() in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Returns:
a Shape object representing the current clipping area, or null if no clip is set.
See Also:
Graphics.getClipBounds() sample code for java.awt.Graphics.getClipBounds() definition code for java.awt.Graphics.getClipBounds() , Graphics.clipRect(int, int, int, int) sample code for java.awt.Graphics.clipRect(int, int, int, int) definition code for java.awt.Graphics.clipRect(int, int, int, int) , Graphics.setClip(int, int, int, int) sample code for java.awt.Graphics.setClip(int, int, int, int) definition code for java.awt.Graphics.setClip(int, int, int, int) , Graphics.setClip(Shape) sample code for java.awt.Graphics.setClip(java.awt.Shape) definition code for java.awt.Graphics.setClip(java.awt.Shape)

setClip sample code for javax.swing.DebugGraphics.setClip(java.awt.Shape) definition code for javax.swing.DebugGraphics.setClip(java.awt.Shape)

public void setClip(Shape sample code for java.awt.Shape definition code for java.awt.Shape  clip)
Overrides Graphics.setClip.

Specified by:
setClip sample code for java.awt.Graphics.setClip(java.awt.Shape) definition code for java.awt.Graphics.setClip(java.awt.Shape) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
clip - the Shape to use to set the clip
See Also:
Graphics.getClip() sample code for java.awt.Graphics.getClip() definition code for java.awt.Graphics.getClip() , Graphics.clipRect(int, int, int, int) sample code for java.awt.Graphics.clipRect(int, int, int, int) definition code for java.awt.Graphics.clipRect(int, int, int, int) , Graphics.setClip(int, int, int, int) sample code for java.awt.Graphics.setClip(int, int, int, int) definition code for java.awt.Graphics.setClip(int, int, int, int)

drawRect sample code for javax.swing.DebugGraphics.drawRect(int, int, int, int) definition code for javax.swing.DebugGraphics.drawRect(int, int, int, int)

public void drawRect(int x,
                     int y,
                     int width,
                     int height)
Overrides Graphics.drawRect.

Overrides:
drawRect sample code for java.awt.Graphics.drawRect(int, int, int, int) definition code for java.awt.Graphics.drawRect(int, int, int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
x - the x coordinate of the rectangle to be drawn.
y - the y coordinate of the rectangle to be drawn.
width - the width of the rectangle to be drawn.
height - the height of the rectangle to be drawn.
See Also:
Graphics.fillRect(int, int, int, int) sample code for java.awt.Graphics.fillRect(int, int, int, int) definition code for java.awt.Graphics.fillRect(int, int, int, int) , Graphics.clearRect(int, int, int, int) sample code for java.awt.Graphics.clearRect(int, int, int, int) definition code for java.awt.Graphics.clearRect(int, int, int, int)

fillRect sample code for javax.swing.DebugGraphics.fillRect(int, int, int, int) definition code for javax.swing.DebugGraphics.fillRect(int, int, int, int)

public void fillRect(int x,
                     int y,
                     int width,
                     int height)
Overrides Graphics.fillRect.

Specified by:
fillRect sample code for java.awt.Graphics.fillRect(int, int, int, int) definition code for java.awt.Graphics.fillRect(int, int, int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
x - the x coordinate of the rectangle to be filled.
y - the y coordinate of the rectangle to be filled.
width - the width of the rectangle to be filled.
height - the height of the rectangle to be filled.
See Also:
Graphics.clearRect(int, int, int, int) sample code for java.awt.Graphics.clearRect(int, int, int, int) definition code for java.awt.Graphics.clearRect(int, int, int, int) , Graphics.drawRect(int, int, int, int) sample code for java.awt.Graphics.drawRect(int, int, int, int) definition code for java.awt.Graphics.drawRect(int, int, int, int)

clearRect sample code for javax.swing.DebugGraphics.clearRect(int, int, int, int) definition code for javax.swing.DebugGraphics.clearRect(int, int, int, int)

public void clearRect(int x,
                      int y,
                      int width,
                      int height)
Overrides Graphics.clearRect.

Specified by:
clearRect sample code for java.awt.Graphics.clearRect(int, int, int, int) definition code for java.awt.Graphics.clearRect(int, int, int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
x - the x coordinate of the rectangle to clear.
y - the y coordinate of the rectangle to clear.
width - the width of the rectangle to clear.
height - the height of the rectangle to clear.
See Also:
Graphics.fillRect(int, int, int, int) sample code for java.awt.Graphics.fillRect(int, int, int, int) definition code for java.awt.Graphics.fillRect(int, int, int, int) , Graphics.drawRect(int, int, int, int) sample code for java.awt.Graphics.drawRect(int, int, int, int) definition code for java.awt.Graphics.drawRect(int, int, int, int) , Graphics.setColor(java.awt.Color) sample code for java.awt.Graphics.setColor(java.awt.Color) definition code for java.awt.Graphics.setColor(java.awt.Color) , Graphics.setPaintMode() sample code for java.awt.Graphics.setPaintMode() definition code for java.awt.Graphics.setPaintMode() , Graphics.setXORMode(java.awt.Color) sample code for java.awt.Graphics.setXORMode(java.awt.Color) definition code for java.awt.Graphics.setXORMode(java.awt.Color)

drawRoundRect sample code for javax.swing.DebugGraphics.drawRoundRect(int, int, int, int, int, int) definition code for javax.swing.DebugGraphics.drawRoundRect(int, int, int, int, int, int)

public void drawRoundRect(int x,
                          int y,
                          int width,
                          int height,
                          int arcWidth,
                          int arcHeight)
Overrides Graphics.drawRoundRect.

Specified by:
drawRoundRect sample code for java.awt.Graphics.drawRoundRect(int, int, int, int, int, int) definition code for java.awt.Graphics.drawRoundRect(int, int, int, int, int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
x - the x coordinate of the rectangle to be drawn.
y - the y coordinate of the rectangle to be drawn.
width - the width of the rectangle to be drawn.
height - the height of the rectangle to be drawn.
arcWidth - the horizontal diameter of the arc at the four corners.
arcHeight - the vertical diameter of the arc at the four corners.
See Also:
Graphics.fillRoundRect(int, int, int, int, int, int) sample code for java.awt.Graphics.fillRoundRect(int, int, int, int, int, int) definition code for java.awt.Graphics.fillRoundRect(int, int, int, int, int, int)

fillRoundRect sample code for javax.swing.DebugGraphics.fillRoundRect(int, int, int, int, int, int) definition code for javax.swing.DebugGraphics.fillRoundRect(int, int, int, int, int, int)

public void fillRoundRect(int x,
                          int y,
                          int width,
                          int height,
                          int arcWidth,
                          int arcHeight)
Overrides Graphics.fillRoundRect.

Specified by:
fillRoundRect sample code for java.awt.Graphics.fillRoundRect(int, int, int, int, int, int) definition code for java.awt.Graphics.fillRoundRect(int, int, int, int, int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
x - the x coordinate of the rectangle to be filled.
y - the y coordinate of the rectangle to be filled.
width - the width of the rectangle to be filled.
height - the height of the rectangle to be filled.
arcWidth - the horizontal diameter of the arc at the four corners.
arcHeight - the vertical diameter of the arc at the four corners.
See Also:
Graphics.drawRoundRect(int, int, int, int, int, int) sample code for java.awt.Graphics.drawRoundRect(int, int, int, int, int, int) definition code for java.awt.Graphics.drawRoundRect(int, int, int, int, int, int)

drawLine sample code for javax.swing.DebugGraphics.drawLine(int, int, int, int) definition code for javax.swing.DebugGraphics.drawLine(int, int, int, int)

public void drawLine(int x1,
                     int y1,
                     int x2,
                     int y2)
Overrides Graphics.drawLine.

Specified by:
drawLine sample code for java.awt.Graphics.drawLine(int, int, int, int) definition code for java.awt.Graphics.drawLine(int, int, int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
x1 - the first point's x coordinate.
y1 - the first point's y coordinate.
x2 - the second point's x coordinate.
y2 - the second point's y coordinate.

draw3DRect sample code for javax.swing.DebugGraphics.draw3DRect(int, int, int, int, boolean) definition code for javax.swing.DebugGraphics.draw3DRect(int, int, int, int, boolean)

public void draw3DRect(int x,
                       int y,
                       int width,
                       int height,
                       boolean raised)
Overrides Graphics.draw3DRect.

Overrides:
draw3DRect sample code for java.awt.Graphics.draw3DRect(int, int, int, int, boolean) definition code for java.awt.Graphics.draw3DRect(int, int, int, int, boolean) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
x - the x coordinate of the rectangle to be drawn.
y - the y coordinate of the rectangle to be drawn.
width - the width of the rectangle to be drawn.
height - the height of the rectangle to be drawn.
raised - a boolean that determines whether the rectangle appears to be raised above the surface or sunk into the surface.
See Also:
Graphics.fill3DRect(int, int, int, int, boolean) sample code for java.awt.Graphics.fill3DRect(int, int, int, int, boolean) definition code for java.awt.Graphics.fill3DRect(int, int, int, int, boolean)

fill3DRect sample code for javax.swing.DebugGraphics.fill3DRect(int, int, int, int, boolean) definition code for javax.swing.DebugGraphics.fill3DRect(int, int, int, int, boolean)

public void fill3DRect(int x,
                       int y,
                       int width,
                       int height,
                       boolean raised)
Overrides Graphics.fill3DRect.

Overrides:
fill3DRect sample code for java.awt.Graphics.fill3DRect(int, int, int, int, boolean) definition code for java.awt.Graphics.fill3DRect(int, int, int, int, boolean) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
x - the x coordinate of the rectangle to be filled.
y - the y coordinate of the rectangle to be filled.
width - the width of the rectangle to be filled.
height - the height of the rectangle to be filled.
raised - a boolean value that determines whether the rectangle appears to be raised above the surface or etched into the surface.
See Also:
Graphics.draw3DRect(int, int, int, int, boolean) sample code for java.awt.Graphics.draw3DRect(int, int, int, int, boolean) definition code for java.awt.Graphics.draw3DRect(int, int, int, int, boolean)

drawOval sample code for javax.swing.DebugGraphics.drawOval(int, int, int, int) definition code for javax.swing.DebugGraphics.drawOval(int, int, int, int)

public void drawOval(int x,
                     int y,
                     int width,
                     int height)
Overrides Graphics.drawOval.

Specified by:
drawOval sample code for java.awt.Graphics.drawOval(int, int, int, int) definition code for java.awt.Graphics.drawOval(int, int, int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
x - the x coordinate of the upper left corner of the oval to be drawn.
y - the y coordinate of the upper left corner of the oval to be drawn.
width - the width of the oval to be drawn.
height - the height of the oval to be drawn.
See Also:
Graphics.fillOval(int, int, int, int) sample code for java.awt.Graphics.fillOval(int, int, int, int) definition code for java.awt.Graphics.fillOval(int, int, int, int)

fillOval sample code for javax.swing.DebugGraphics.fillOval(int, int, int, int) definition code for javax.swing.DebugGraphics.fillOval(int, int, int, int)

public void fillOval(int x,
                     int y,
                     int width,
                     int height)
Overrides Graphics.fillOval.

Specified by:
fillOval sample code for java.awt.Graphics.fillOval(int, int, int, int) definition code for java.awt.Graphics.fillOval(int, int, int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
x - the x coordinate of the upper left corner of the oval to be filled.
y - the y coordinate of the upper left corner of the oval to be filled.
width - the width of the oval to be filled.
height - the height of the oval to be filled.
See Also:
Graphics.drawOval(int, int, int, int) sample code for java.awt.Graphics.drawOval(int, int, int, int) definition code for java.awt.Graphics.drawOval(int, int, int, int)

drawArc sample code for javax.swing.DebugGraphics.drawArc(int, int, int, int, int, int) definition code for javax.swing.DebugGraphics.drawArc(int, int, int, int, int, int)

public void drawArc(int x,
                    int y,
                    int width,
                    int height,
                    int startAngle,
                    int arcAngle)
Overrides Graphics.drawArc.

Specified by:
drawArc sample code for java.awt.Graphics.drawArc(int, int, int, int, int, int) definition code for java.awt.Graphics.drawArc(int, int, int, int, int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
x - the x coordinate of the upper-left corner of the arc to be drawn.
y - the y coordinate of the upper-left corner of the arc to be drawn.
width - the width of the arc to be drawn.
height - the height of the arc to be drawn.
startAngle - the beginning angle.
arcAngle - the angular extent of the arc, relative to the start angle.
See Also:
Graphics.fillArc(int, int, int, int, int, int) sample code for java.awt.Graphics.fillArc(int, int, int, int, int, int) definition code for java.awt.Graphics.fillArc(int, int, int, int, int, int)

fillArc sample code for javax.swing.DebugGraphics.fillArc(int, int, int, int, int, int) definition code for javax.swing.DebugGraphics.fillArc(int, int, int, int, int, int)

public void fillArc(int x,
                    int y,
                    int width,
                    int height,
                    int startAngle,
                    int arcAngle)
Overrides Graphics.fillArc.

Specified by:
fillArc sample code for java.awt.Graphics.fillArc(int, int, int, int, int, int) definition code for java.awt.Graphics.fillArc(int, int, int, int, int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
x - the x coordinate of the upper-left corner of the arc to be filled.
y - the y coordinate of the upper-left corner of the arc to be filled.
width - the width of the arc to be filled.
height - the height of the arc to be filled.
startAngle - the beginning angle.
arcAngle - the angular extent of the arc, relative to the start angle.
See Also:
Graphics.drawArc(int, int, int, int, int, int) sample code for java.awt.Graphics.drawArc(int, int, int, int, int, int) definition code for java.awt.Graphics.drawArc(int, int, int, int, int, int)

drawPolyline sample code for javax.swing.DebugGraphics.drawPolyline(int[], int[], int) definition code for javax.swing.DebugGraphics.drawPolyline(int[], int[], int)

public void drawPolyline(int[] xPoints,
                         int[] yPoints,
                         int nPoints)
Overrides Graphics.drawPolyline.

Specified by:
drawPolyline sample code for java.awt.Graphics.drawPolyline(int[], int[], int) definition code for java.awt.Graphics.drawPolyline(int[], int[], int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
xPoints - an array of x points
yPoints - an array of y points
nPoints - the total number of points
See Also:
Graphics.drawPolygon(int[], int[], int) sample code for java.awt.Graphics.drawPolygon(int[], int[], int) definition code for java.awt.Graphics.drawPolygon(int[], int[], int)

drawPolygon sample code for javax.swing.DebugGraphics.drawPolygon(int[], int[], int) definition code for javax.swing.DebugGraphics.drawPolygon(int[], int[], int)

public void drawPolygon(int[] xPoints,
                        int[] yPoints,
                        int nPoints)
Overrides Graphics.drawPolygon.

Specified by:
drawPolygon sample code for java.awt.Graphics.drawPolygon(int[], int[], int) definition code for java.awt.Graphics.drawPolygon(int[], int[], int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
xPoints - a an array of x coordinates.
yPoints - a an array of y coordinates.
nPoints - a the total number of points.
See Also:
Graphics.fillPolygon(int[], int[], int) sample code for java.awt.Graphics.fillPolygon(int[], int[], int) definition code for java.awt.Graphics.fillPolygon(int[], int[], int) , Graphics.drawPolyline(int[], int[], int) sample code for java.awt.Graphics.drawPolyline(int[], int[], int) definition code for java.awt.Graphics.drawPolyline(int[], int[], int)

fillPolygon sample code for javax.swing.DebugGraphics.fillPolygon(int[], int[], int) definition code for javax.swing.DebugGraphics.fillPolygon(int[], int[], int)

public void fillPolygon(int[] xPoints,
                        int[] yPoints,
                        int nPoints)
Overrides Graphics.fillPolygon.

Specified by:
fillPolygon sample code for java.awt.Graphics.fillPolygon(int[], int[], int) definition code for java.awt.Graphics.fillPolygon(int[], int[], int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
xPoints - a an array of x coordinates.
yPoints - a an array of y coordinates.
nPoints - a the total number of points.
See Also:
Graphics.drawPolygon(int[], int[], int) sample code for java.awt.Graphics.drawPolygon(int[], int[], int) definition code for java.awt.Graphics.drawPolygon(int[], int[], int)

drawString sample code for javax.swing.DebugGraphics.drawString(java.lang.String, int, int) definition code for javax.swing.DebugGraphics.drawString(java.lang.String, int, int)

public void drawString(String sample code for java.lang.String definition code for java.lang.String  aString,
                       int x,
                       int y)
Overrides Graphics.drawString.

Specified by:
drawString sample code for java.awt.Graphics.drawString(java.lang.String, int, int) definition code for java.awt.Graphics.drawString(java.lang.String, int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
aString - the string to be drawn.
x - the x coordinate.
y - the y coordinate.
See Also:
Graphics.drawBytes(byte[], int, int, int, int) sample code for java.awt.Graphics.drawBytes(byte[], int, int, int, int) definition code for java.awt.Graphics.drawBytes(byte[], int, int, int, int) , Graphics.drawChars(char[], int, int, int, int) sample code for java.awt.Graphics.drawChars(char[], int, int, int, int) definition code for java.awt.Graphics.drawChars(char[], int, int, int, int)

drawString sample code for javax.swing.DebugGraphics.drawString(java.text.AttributedCharacterIterator, int, int) definition code for javax.swing.DebugGraphics.drawString(java.text.AttributedCharacterIterator, int, int)

public void drawString(AttributedCharacterIterator sample code for java.text.AttributedCharacterIterator definition code for java.text.AttributedCharacterIterator  iterator,
                       int x,
                       int y)
Overrides Graphics.drawString.

Specified by:
drawString sample code for java.awt.Graphics.drawString(java.text.AttributedCharacterIterator, int, int) definition code for java.awt.Graphics.drawString(java.text.AttributedCharacterIterator, int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
iterator - the iterator whose text is to be drawn
x - the x coordinate.
y - the y coordinate.
See Also:
Graphics.drawBytes(byte[], int, int, int, int) sample code for java.awt.Graphics.drawBytes(byte[], int, int, int, int) definition code for java.awt.Graphics.drawBytes(byte[], int, int, int, int) , Graphics.drawChars(char[], int, int, int, int) sample code for java.awt.Graphics.drawChars(char[], int, int, int, int) definition code for java.awt.Graphics.drawChars(char[], int, int, int, int)

drawBytes sample code for javax.swing.DebugGraphics.drawBytes(byte[], int, int, int, int) definition code for javax.swing.DebugGraphics.drawBytes(byte[], int, int, int, int)

public void drawBytes(byte[] data,
                      int offset,
                      int length,
                      int x,
                      int y)
Overrides Graphics.drawBytes.

Overrides:
drawBytes sample code for java.awt.Graphics.drawBytes(byte[], int, int, int, int) definition code for java.awt.Graphics.drawBytes(byte[], int, int, int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
data - the data to be drawn
offset - the start offset in the data
length - the number of bytes that are drawn
x - the x coordinate of the baseline of the text
y - the y coordinate of the baseline of the text
See Also:
Graphics.drawChars(char[], int, int, int, int) sample code for java.awt.Graphics.drawChars(char[], int, int, int, int) definition code for java.awt.Graphics.drawChars(char[], int, int, int, int) , Graphics.drawString(java.lang.String, int, int) sample code for java.awt.Graphics.drawString(java.lang.String, int, int) definition code for java.awt.Graphics.drawString(java.lang.String, int, int)

drawChars sample code for javax.swing.DebugGraphics.drawChars(char[], int, int, int, int) definition code for javax.swing.DebugGraphics.drawChars(char[], int, int, int, int)

public void drawChars(char[] data,
                      int offset,
                      int length,
                      int x,
                      int y)
Overrides Graphics.drawChars.

Overrides:
drawChars sample code for java.awt.Graphics.drawChars(char[], int, int, int, int) definition code for java.awt.Graphics.drawChars(char[], int, int, int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
data - the array of characters to be drawn
offset - the start offset in the data
length - the number of characters to be drawn
x - the x coordinate of the baseline of the text
y - the y coordinate of the baseline of the text
See Also:
Graphics.drawBytes(byte[], int, int, int, int) sample code for java.awt.Graphics.drawBytes(byte[], int, int, int, int) definition code for java.awt.Graphics.drawBytes(byte[], int, int, int, int) , Graphics.drawString(java.lang.String, int, int) sample code for java.awt.Graphics.drawString(java.lang.String, int, int) definition code for java.awt.Graphics.drawString(java.lang.String, int, int)

drawImage sample code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver) definition code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver)

public boolean drawImage(Image sample code for java.awt.Image definition code for java.awt.Image  img,
                         int x,
                         int y,
                         ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver  observer)
Overrides Graphics.drawImage.

Specified by:
drawImage sample code for java.awt.Graphics.drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver) definition code for java.awt.Graphics.drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
img - the specified image to be drawn. This method does nothing if img is null.
x - the x coordinate.
y - the y coordinate.
observer - object to be notified as more of the image is converted.
Returns:
false if the image pixels are still changing; true otherwise.
See Also:
Image sample code for java.awt.Image definition code for java.awt.Image , ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver , ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) sample code for java.awt.image.ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) definition code for java.awt.image.ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)

drawImage sample code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, int, int, java.awt.image.ImageObserver) definition code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, int, int, java.awt.image.ImageObserver)

public boolean drawImage(Image sample code for java.awt.Image definition code for java.awt.Image  img,
                         int x,
                         int y,
                         int width,
                         int height,
                         ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver  observer)
Overrides Graphics.drawImage.

Specified by:
drawImage sample code for java.awt.Graphics.drawImage(java.awt.Image, int, int, int, int, java.awt.image.ImageObserver) definition code for java.awt.Graphics.drawImage(java.awt.Image, int, int, int, int, java.awt.image.ImageObserver) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
img - the specified image to be drawn. This method does nothing if img is null.
x - the x coordinate.
y - the y coordinate.
width - the width of the rectangle.
height - the height of the rectangle.
observer - object to be notified as more of the image is converted.
Returns:
false if the image pixels are still changing; true otherwise.
See Also:
Image sample code for java.awt.Image definition code for java.awt.Image , ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver , ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) sample code for java.awt.image.ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) definition code for java.awt.image.ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)

drawImage sample code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, java.awt.Color, java.awt.image.ImageObserver) definition code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, java.awt.Color, java.awt.image.ImageObserver)

public boolean drawImage(Image sample code for java.awt.Image definition code for java.awt.Image  img,
                         int x,
                         int y,
                         Color sample code for java.awt.Color definition code for java.awt.Color  bgcolor,
                         ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver  observer)
Overrides Graphics.drawImage.

Specified by:
drawImage sample code for java.awt.Graphics.drawImage(java.awt.Image, int, int, java.awt.Color, java.awt.image.ImageObserver) definition code for java.awt.Graphics.drawImage(java.awt.Image, int, int, java.awt.Color, java.awt.image.ImageObserver) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
img - the specified image to be drawn. This method does nothing if img is null.
x - the x coordinate.
y - the y coordinate.
bgcolor - the background color to paint under the non-opaque portions of the image.
observer - object to be notified as more of the image is converted.
Returns:
false if the image pixels are still changing; true otherwise.
See Also:
Image sample code for java.awt.Image definition code for java.awt.Image , ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver , ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) sample code for java.awt.image.ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) definition code for java.awt.image.ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)

drawImage sample code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver) definition code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver)

public boolean drawImage(Image sample code for java.awt.Image definition code for java.awt.Image  img,
                         int x,
                         int y,
                         int width,
                         int height,
                         Color sample code for java.awt.Color definition code for java.awt.Color  bgcolor,
                         ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver  observer)
Overrides Graphics.drawImage.

Specified by:
drawImage sample code for java.awt.Graphics.drawImage(java.awt.Image, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver) definition code for java.awt.Graphics.drawImage(java.awt.Image, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
img - the specified image to be drawn. This method does nothing if img is null.
x - the x coordinate.
y - the y coordinate.
width - the width of the rectangle.
height - the height of the rectangle.
bgcolor - the background color to paint under the non-opaque portions of the image.
observer - object to be notified as more of the image is converted.
Returns:
false if the image pixels are still changing; true otherwise.
See Also:
Image sample code for java.awt.Image definition code for java.awt.Image , ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver , ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) sample code for java.awt.image.ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) definition code for java.awt.image.ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)

drawImage sample code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.image.ImageObserver) definition code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.image.ImageObserver)

public boolean drawImage(Image sample code for java.awt.Image definition code for java.awt.Image  img,
                         int dx1,
                         int dy1,
                         int dx2,
                         int dy2,
                         int sx1,
                         int sy1,
                         int sx2,
                         int sy2,
                         ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver  observer)
Overrides Graphics.drawImage.

Specified by:
drawImage sample code for java.awt.Graphics.drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.image.ImageObserver) definition code for java.awt.Graphics.drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.image.ImageObserver) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
img - the specified image to be drawn. This method does nothing if img is null.
dx1 - the x coordinate of the first corner of the destination rectangle.
dy1 - the y coordinate of the first corner of the destination rectangle.
dx2 - the x coordinate of the second corner of the destination rectangle.
dy2 - the y coordinate of the second corner of the destination rectangle.
sx1 - the x coordinate of the first corner of the source rectangle.
sy1 - the y coordinate of the first corner of the source rectangle.
sx2 - the x coordinate of the second corner of the source rectangle.
sy2 - the y coordinate of the second corner of the source rectangle.
observer - object to be notified as more of the image is scaled and converted.
Returns:
false if the image pixels are still changing; true otherwise.
See Also:
Image sample code for java.awt.Image definition code for java.awt.Image , ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver , ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) sample code for java.awt.image.ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) definition code for java.awt.image.ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)

drawImage sample code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver) definition code for javax.swing.DebugGraphics.drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver)

public boolean drawImage(Image sample code for java.awt.Image definition code for java.awt.Image  img,
                         int dx1,
                         int dy1,
                         int dx2,
                         int dy2,
                         int sx1,
                         int sy1,
                         int sx2,
                         int sy2,
                         Color sample code for java.awt.Color definition code for java.awt.Color  bgcolor,
                         ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver  observer)
Overrides Graphics.drawImage.

Specified by:
drawImage sample code for java.awt.Graphics.drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver) definition code for java.awt.Graphics.drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
img - the specified image to be drawn. This method does nothing if img is null.
dx1 - the x coordinate of the first corner of the destination rectangle.
dy1 - the y coordinate of the first corner of the destination rectangle.
dx2 - the x coordinate of the second corner of the destination rectangle.
dy2 - the y coordinate of the second corner of the destination rectangle.
sx1 - the x coordinate of the first corner of the source rectangle.
sy1 - the y coordinate of the first corner of the source rectangle.
sx2 - the x coordinate of the second corner of the source rectangle.
sy2 - the y coordinate of the second corner of the source rectangle.
bgcolor - the background color to paint under the non-opaque portions of the image.
observer - object to be notified as more of the image is scaled and converted.
Returns:
false if the image pixels are still changing; true otherwise.
See Also:
Image sample code for java.awt.Image definition code for java.awt.Image , ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver , ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) sample code for java.awt.image.ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) definition code for java.awt.image.ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)

copyArea sample code for javax.swing.DebugGraphics.copyArea(int, int, int, int, int, int) definition code for javax.swing.DebugGraphics.copyArea(int, int, int, int, int, int)

public void copyArea(int x,
                     int y,
                     int width,
                     int height,
                     int destX,
                     int destY)
Overrides Graphics.copyArea.

Specified by:
copyArea sample code for java.awt.Graphics.copyArea(int, int, int, int, int, int) definition code for java.awt.Graphics.copyArea(int, int, int, int, int, int) in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
Parameters:
x - the x coordinate of the source rectangle.
y - the y coordinate of the source rectangle.
width - the width of the source rectangle.
height - the height of the source rectangle.
destX - the horizontal distance to copy the pixels.
destY - the vertical distance to copy the pixels.

dispose sample code for javax.swing.DebugGraphics.dispose() definition code for javax.swing.DebugGraphics.dispose()

public void dispose()
Overrides Graphics.dispose.

Specified by:
dispose sample code for java.awt.Graphics.dispose() definition code for java.awt.Graphics.dispose() in class Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics
See Also:
Graphics.finalize() sample code for java.awt.Graphics.finalize() definition code for java.awt.Graphics.finalize() , Component.paint(java.awt.Graphics) sample code for java.awt.Component.paint(java.awt.Graphics) definition code for java.awt.Component.paint(java.awt.Graphics) , Component.update(java.awt.Graphics) sample code for java.awt.Component.update(java.awt.Graphics) definition code for java.awt.Component.update(java.awt.Graphics) , Component.getGraphics() sample code for java.awt.Component.getGraphics() definition code for java.awt.Component.getGraphics() , Graphics.create() sample code for java.awt.Graphics.create() definition code for java.awt.Graphics.create()

isDrawingBuffer sample code for javax.swing.DebugGraphics.isDrawingBuffer() definition code for javax.swing.DebugGraphics.isDrawingBuffer()

public boolean isDrawingBuffer()
Returns the drawingBuffer value.

Returns:
true if this object is drawing from a Buffer

setDebugOptions sample code for javax.swing.DebugGraphics.setDebugOptions(int) definition code for javax.swing.DebugGraphics.setDebugOptions(int)

public void setDebugOptions(int options)
Enables/disables diagnostic information about every graphics operation. The value of options indicates how this information should be displayed. LOG_OPTION causes a text message to be printed. FLASH_OPTION causes the drawing to flash several times. BUFFERED_OPTION creates a new Frame that shows each operation on an offscreen buffer. The value of options is bitwise OR'd into the current value. To disable debugging use NONE_OPTION.


getDebugOptions sample code for javax.swing.DebugGraphics.getDebugOptions() definition code for javax.swing.DebugGraphics.getDebugOptions()

public int getDebugOptions()
Returns the current debugging options for this DebugGraphics.

See Also:
setDebugOptions(int) sample code for javax.swing.DebugGraphics.setDebugOptions(int) definition code for javax.swing.DebugGraphics.setDebugOptions(int)