clearRect
public void clearRect(int x,
int y,
int width,
int height)
clearRect
- clearRect in interface Graphics
x
- The x-position of the rectangley
- The y-position of the rectanglewidth
- The width of the rectangleheight
- The height of the rectangle
clipRect
public void clipRect(int x,
int y,
int width,
int height)
Intersects the current clip region with the given region.
- clipRect in interface Graphics
x
- The x-position of the regiony
- The y-position of the regionwidth
- The width of the regionheight
- The height of the region
copyArea
public void copyArea(int x,
int y,
int width,
int height,
int destx,
int desty)
copyArea
- copyArea in interface Graphics
x
- The x position of the source areay
- The y position of the source areawidth
- The width of the areaheight
- The height of the areadestx
- The x position of the destination areadesty
- The y posiiton of the destination area
create
public Graphics create()
Creates a overrides Graphics.create
to create a
DebugGraphics
object.
- create in interface Graphics
- a new
DebugGraphics
object.
create
public Graphics create(int x,
int y,
int width,
int height)
Creates a overrides Graphics.create
to create a
DebugGraphics
object.
- create in interface Graphics
x
- the x coordinatey
- the y coordinatewidth
- the widthheight
- the height
- a new
DebugGraphics
object.
dispose
public void dispose()
Releases all system resources that this Graphics
is using.
- dispose in interface Graphics
draw3DRect
public void draw3DRect(int x,
int y,
int width,
int height,
boolean raised)
draw3DRect
- draw3DRect in interface Graphics
x
- The x-position of the rectangley
- The y-position of the rectanglewidth
- The width of the rectangleheight
- The height of the rectangleraised
- TODO
drawArc
public void drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
drawArc
- drawArc in interface Graphics
x
- the x coordinatey
- the y coordinatewidth
- the widthheight
- the heightstartAngle
- TODOarcAngle
- TODO
drawBytes
public void drawBytes(byte[] data,
int offset,
int length,
int x,
int y)
drawBytes
- drawBytes in interface Graphics
data
- TODOoffset
- TODOlength
- TODOx
- the x coordinatey
- the y coordinate
drawChars
public void drawChars(char[] data,
int offset,
int length,
int x,
int y)
drawChars
data
- array of characters to drawoffset
- offset in arraylength
- number of characters in array to drawx
- x-positiony
- y-position
drawImage
public boolean drawImage(Image image,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
Color background,
ImageObserver observer)
drawImage
- drawImage in interface Graphics
image
- The image to drawdx1
- TODOdy1
- TODOdx2
- TODOdy2
- TODOsx1
- TODOsy1
- TODOsx2
- TODOsy2
- TODObackground
- The color for the background in the opaque regions
of the imageobserver
- The image observer
drawImage
public boolean drawImage(Image image,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
ImageObserver observer)
drawImage
- drawImage in interface Graphics
image
- The image to drawdx1
- TODOdy1
- TODOdx2
- TODOdy2
- TODOsx1
- TODOsy1
- TODOsx2
- TODOsy2
- TODOobserver
- The image observer
drawImage
public boolean drawImage(Image image,
int x,
int y,
int width,
int height,
Color background,
ImageObserver observer)
drawImage
- drawImage in interface Graphics
image
- The image to drawx
- The x positiony
- The y positionwidth
- The width of the area to draw the imageheight
- The height of the area to draw the imagebackground
- The color for the background in the opaque regions
of the imageobserver
- The image observer
drawImage
public boolean drawImage(Image image,
int x,
int y,
int width,
int height,
ImageObserver observer)
drawImage
- drawImage in interface Graphics
image
- The image to drawx
- The x positiony
- The y positionwidth
- The width of the area to draw the imageheight
- The height of the area to draw the imageobserver
- The image observer
drawImage
public boolean drawImage(Image image,
int x,
int y,
Color background,
ImageObserver observer)
drawImage
- drawImage in interface Graphics
image
- The image to drawx
- The x positiony
- The y positionbackground
- The color for the background in the opaque regions
of the imageobserver
- The image observer
drawLine
public void drawLine(int x1,
int y1,
int x2,
int y2)
drawLine
- drawLine in interface Graphics
x1
- The x-position of the starty1
- The y-position of the startx2
- The x-position of the endy2
- The y-position of the end
drawOval
public void drawOval(int x,
int y,
int width,
int height)
drawOval
- drawOval in interface Graphics
x
- the x coordinatey
- the y coordiantewidth
- the widthheight
- the height
drawPolygon
public void drawPolygon(int[] xpoints,
int[] ypoints,
int npoints)
drawPolygon
xpoints
- TODOypoints
- TODOnpoints
- TODO
drawPolyline
public void drawPolyline(int[] xpoints,
int[] ypoints,
int npoints)
drawPolyline
xpoints
- TODOypoints
- TODOnpoints
- TODO
drawRect
public void drawRect(int x,
int y,
int width,
int height)
Draws a rectangle.
- drawRect in interface Graphics
x
- The x-position of the rectangley
- The y-position of the rectanglewidth
- The width of the rectangleheight
- The height of the rectangle
drawRoundRect
public void drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
drawRoundRect
- drawRoundRect in interface Graphics
x
- The x-position of the rectangley
- The y-position of the rectanglewidth
- The width of the rectangleheight
- The height of the rectanglearcWidth
- TODOarcHeight
- TODO
fill3DRect
public void fill3DRect(int x,
int y,
int width,
int height,
boolean raised)
fill3DRect
- fill3DRect in interface Graphics
x
- The x-position of the rectangley
- The y-position of the rectanglewidth
- The width of the rectangleheight
- The height of the rectangleraised
- TODO
fillArc
public void fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
fillArc
- fillArc in interface Graphics
x
- the coordinatey
- the y coordinatewidth
- the widthheight
- the heightstartAngle
- TODOarcAngle
- TODO
fillOval
public void fillOval(int x,
int y,
int width,
int height)
fillOval
- fillOval in interface Graphics
x
- the x coordinatey
- the y coordinatewidth
- the widthheight
- the height
fillPolygon
public void fillPolygon(int[] xpoints,
int[] ypoints,
int npoints)
fillPolygon
xpoints
- TODOypoints
- TODOnpoints
- TODO
fillRect
public void fillRect(int x,
int y,
int width,
int height)
Draws a filled rectangle.
- fillRect in interface Graphics
x
- The x-position of the rectangley
- The y-position of the rectanglewidth
- The width of the rectangleheight
- The height of the rectangle
fillRoundRect
public void fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
fillRoundRect
- fillRoundRect in interface Graphics
x
- The x-position of the rectangley
- The y-position of the rectanglewidth
- The width of the rectangleheight
- The height of the rectanglearcWidth
- TODOarcHeight
- TODO
flashCount
public static int flashCount()
flashCount
flashTime
public static int flashTime()
flashTime
logStream
public static PrintStream logStream()
logStream
- The
PrintStream
to write logging messages to
setClip
public void setClip(int x,
int y,
int width,
int height)
Sets the clipping region.
- setClip in interface Graphics
x
- The x-position of the regiony
- The y-position of the regionwidth
- The width of the regionheight
- The height of the region
setDebugOptions
public void setDebugOptions(int options)
setDebugOptions
options
- the debug options
setFlashColor
public static void setFlashColor(Color color)
setFlashColor
color
- the color to use for flashing
setFlashCount
public static void setFlashCount(int count)
setFlashCount
count
- The number of flashes
setFlashTime
public static void setFlashTime(int time)
setFlashTime
time
- The time in milliseconds
setLogStream
public static void setLogStream(PrintStream stream)
setLogStream
stream
- The currently set PrintStream
.
DebugGraphics.java --
Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version.