|
|||||||||
| Home >> All >> gnu >> java >> awt >> peer >> [ gtk overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
gnu.java.awt.peer.gtk
Class GdkGraphics2D

java.lang.Objectjava.awt.Graphics
java.awt.Graphics2D
gnu.java.awt.peer.gtk.GdkGraphics2D
- public class GdkGraphics2D
- extends java.awt.Graphics2D
| Nested Class Summary | |
private class |
GdkGraphics2D.DrawState
|
| Field Summary | |
(package private) java.awt.Color |
bg
|
private java.awt.image.BufferedImage |
bimage
|
(package private) java.awt.Shape |
clip
|
(package private) java.awt.Composite |
comp
|
private GtkComponentPeer |
component
|
private static java.awt.BasicStroke |
draw3DRectStroke
|
(package private) java.awt.Color |
fg
|
(package private) java.awt.Font |
font
|
private java.awt.RenderingHints |
hints
|
private int |
native_state
|
(package private) java.awt.Paint |
paint
|
private int[] |
pixelBuffer
|
private boolean |
pixelConversionRequired
|
private boolean |
shiftDrawCalls
|
private java.util.Stack |
stateStack
|
(package private) java.awt.Stroke |
stroke
|
(package private) java.awt.geom.AffineTransform |
transform
|
| Constructor Summary | |
(package private) |
GdkGraphics2D(java.awt.image.BufferedImage bimage)
|
(package private) |
GdkGraphics2D(GdkGraphics2D g)
|
(package private) |
GdkGraphics2D(GdkGraphics2D g,
int x,
int y,
int widht,
int height)
|
(package private) |
GdkGraphics2D(GtkComponentPeer component)
|
(package private) |
GdkGraphics2D(int width,
int height)
|
| Method Summary | |
void |
addRenderingHints(java.util.Map hints)
|
private void |
cairoClip()
|
private void |
cairoClosePath()
|
private void |
cairoCurveTo(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
|
(package private) void |
cairoDrawGdkTextLayout(GdkTextLayout gl,
float x,
float y)
|
(package private) void |
cairoDrawGlyphVector(GdkFontPeer font,
float x,
float y,
int n,
int[] codes,
float[] positions)
|
private void |
cairoFill()
|
private void |
cairoLineTo(double x,
double y)
|
private void |
cairoMoveTo(double x,
double y)
|
private void |
cairoNewPath()
|
private void |
cairoRectangle(double x,
double y,
double width,
double height)
|
private void |
cairoRelCurveTo(double dx1,
double dy1,
double dx2,
double dy2,
double dx3,
double dy3)
|
private void |
cairoRelLineTo(double dx,
double dy)
|
private void |
cairoRelMoveTo(double dx,
double dy)
|
private void |
cairoRestore()
|
private void |
cairoSave()
|
private void |
cairoSetDash(double[] dashes,
int ndash,
double offset)
|
private void |
cairoSetDashUnlocked(double[] dashes,
int ndash,
double offset)
|
private void |
cairoSetFillRule(int cairoFillRule)
|
private void |
cairoSetLineCap(int cairoLineCap)
|
private void |
cairoSetLineCapUnlocked(int cairoLineCap)
|
private void |
cairoSetLineJoin(int cairoLineJoin)
|
private void |
cairoSetLineJoinUnlocked(int cairoLineJoin)
|
private void |
cairoSetLineWidth(double width)
|
private void |
cairoSetLineWidthUnlocked(double width)
|
private void |
cairoSetMatrix(double[] m)
|
private void |
cairoSetMatrixUnlocked(double[] m)
|
private void |
cairoSetMiterLimit(double limit)
|
private void |
cairoSetMiterLimitUnlocked(double limit)
|
private void |
cairoSetOperator(int cairoOperator)
|
private void |
cairoSetRGBAColor(double red,
double green,
double blue,
double alpha)
|
private void |
cairoSetRGBAColorUnlocked(double red,
double green,
double blue,
double alpha)
|
private void |
cairoStroke()
|
private void |
cairoSurfaceSetFilter(int filter)
|
private void |
cairoSurfaceSetFilterUnlocked(int filter)
|
void |
clearRect(int x,
int y,
int width,
int height)
Clears the specified rectangle. |
void |
clip(java.awt.Shape s)
|
void |
clipRect(int x,
int y,
int width,
int height)
Sets the clipping region to the intersection of the current clipping region and the rectangle determined by the specified parameters. |
(package private) void |
connectSignals(GtkComponentPeer component)
|
void |
copyArea(int x,
int y,
int width,
int height,
int dx,
int dy)
Copies the specified rectangle to the specified offset location. |
private void |
copyState(GdkGraphics2D g)
|
java.awt.Graphics |
create()
Returns a copy of this Graphics object. |
java.awt.Graphics |
create(int x,
int y,
int width,
int height)
Returns a copy of this Graphics object. |
void |
dispose()
Free any resources held by this graphics context immediately instead of waiting for the object to be garbage collected and finalized. |
private void |
doPolygon(int[] xPoints,
int[] yPoints,
int nPoints,
boolean close,
boolean fill)
|
void |
draw(java.awt.Shape s)
|
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)
Draws an arc using the specified bounding rectangle and the specified angle parameter. |
void |
drawGdkTextLayout(GdkTextLayout gl,
float x,
float y)
|
void |
drawGlyphVector(java.awt.font.GlyphVector gv,
float x,
float y)
|
void |
drawImage(java.awt.image.BufferedImage image,
java.awt.image.BufferedImageOp op,
int x,
int y)
|
private boolean |
drawImage(java.awt.Image img,
java.awt.geom.AffineTransform xform,
java.awt.Color bgcolor,
java.awt.image.ImageObserver obs)
|
boolean |
drawImage(java.awt.Image img,
java.awt.geom.AffineTransform xform,
java.awt.image.ImageObserver obs)
|
boolean |
drawImage(java.awt.Image img,
int x,
int y,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
Draws all of the image that is available and returns. |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
java.awt.image.ImageObserver observer)
Draws all of the image that is available and returns. |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
Draws all of the image that is available and returns. |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.image.ImageObserver observer)
Draws all of the image that is available and returns. |
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)
FIXME: Write Javadocs for this when you understand it. |
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)
FIXME: Write Javadocs for this when you understand it. |
void |
drawLine(int x1,
int y1,
int x2,
int y2)
Draws a line between the two specified points. |
void |
drawOval(int x,
int y,
int width,
int height)
Draws an oval that just fits within the specified rectangle. |
private void |
drawPixels(int[] pixels,
int w,
int h,
int stride,
double[] i2u)
|
void |
drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
Draws a series of interconnected lines determined by the arrays of corresponding x and y coordinates. |
void |
drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
Draws a series of interconnected lines determined by the arrays of corresponding x and y coordinates. |
private boolean |
drawRaster(java.awt.image.ColorModel cm,
java.awt.image.Raster r,
java.awt.geom.AffineTransform imageToUser,
java.awt.Color bgcolor)
|
void |
drawRect(int x,
int y,
int width,
int height)
Draws the outline of the specified rectangle. |
void |
drawRenderableImage(java.awt.image.renderable.RenderableImage image,
java.awt.geom.AffineTransform xform)
|
void |
drawRenderedImage(java.awt.image.RenderedImage image,
java.awt.geom.AffineTransform xform)
|
void |
drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
Draws the outline of the specified rectangle with rounded cornders. |
void |
drawString(java.text.AttributedCharacterIterator ci,
float x,
float y)
|
void |
drawString(java.text.AttributedCharacterIterator ci,
int x,
int y)
|
void |
drawString(java.lang.String str,
float x,
float y)
|
void |
drawString(java.lang.String str,
int x,
int y)
Draws the specified string starting at the specified point. |
private void |
fail_g2d()
|
void |
fill(java.awt.Shape s)
|
void |
fill3DRect(int x,
int y,
int width,
int height,
boolean raised)
Fills the specified rectangle with a 3D effect |
void |
fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
Fills the arc define by the specified bounding rectangle and the specified angle parameter. |
void |
fillOval(int x,
int y,
int width,
int height)
Fills an oval that just fits within the specified rectangle. |
void |
fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
Fills the polygon determined by the arrays of corresponding x and y coordinates. |
void |
fillRect(int x,
int y,
int width,
int height)
Fills the area bounded by the specified rectangle. |
void |
fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
Fills the specified rectangle with rounded cornders. |
void |
finalize()
Frees the resources held by this graphics context when it is garbage collected. |
static int[] |
findSimpleIntegerArray(java.awt.image.ColorModel cm,
java.awt.image.Raster raster)
|
private void |
gdkDrawDrawable(GdkGraphics2D other,
int x,
int y)
|
java.awt.Color |
getBackground()
|
java.awt.Shape |
getClip()
Returns the current clipping region as a Shape object. |
java.awt.Rectangle |
getClipBounds()
Returns the bounding rectangle of the clipping region for this graphics context. |
protected java.awt.geom.Rectangle2D |
getClipInDevSpace()
|
java.awt.Color |
getColor()
Returns the current color for this object. |
java.awt.Color |
getColorUnlocked()
|
java.awt.Composite |
getComposite()
|
private java.util.Map |
getDefaultHints()
|
java.awt.GraphicsConfiguration |
getDeviceConfiguration()
|
java.awt.Font |
getFont()
Returns the current font for this graphics context. |
java.awt.FontMetrics |
getFontMetrics()
Returns the font metrics for the current font. |
java.awt.FontMetrics |
getFontMetrics(java.awt.Font f)
Returns the font metrics for the specified font. |
(package private) GdkFontPeer |
getFontPeer()
|
java.awt.font.FontRenderContext |
getFontRenderContext()
|
java.awt.Paint |
getPaint()
|
java.lang.Object |
getRenderingHint(java.awt.RenderingHints.Key hintKey)
|
java.awt.RenderingHints |
getRenderingHints()
|
java.awt.Stroke |
getStroke()
|
java.awt.geom.AffineTransform |
getTransform()
|
boolean |
hit(java.awt.Rectangle rect,
java.awt.Shape text,
boolean onStroke)
|
(package private) void |
initComponentGraphics2D()
|
(package private) void |
initComponentGraphics2DUnlocked()
|
private void |
initState(GtkComponentPeer component)
|
private void |
initState(int[] pixes,
int width,
int height)
|
private void |
initState(int width,
int height)
|
private void |
initStateUnlocked(GtkComponentPeer component)
|
(package private) static void |
initStaticState()
|
(package private) static void |
releasePeerGraphicsResource(GdkFontPeer f)
|
void |
rotate(double theta)
|
void |
rotate(double theta,
double x,
double y)
|
void |
scale(double sx,
double sy)
|
void |
setBackground(java.awt.Color c)
|
void |
setBackgroundUnlocked(java.awt.Color c)
|
void |
setClip(int x,
int y,
int width,
int height)
Sets the clipping region to the rectangle determined by the specified parameters. |
void |
setClip(java.awt.Shape s)
Sets the clipping region to the specified Shape. |
void |
setColor(java.awt.Color c)
Sets the current color for this object. |
void |
setColorUnlocked(java.awt.Color c)
|
void |
setComposite(java.awt.Composite comp)
|
void |
setFont(java.awt.Font f)
Sets the font for this graphics context to the specified value. |
void |
setFontUnlocked(java.awt.Font f)
|
private void |
setGradient(double x1,
double y1,
double x2,
double y2,
int r1,
int g1,
int b1,
int a1,
int r2,
int g2,
int b2,
int a2,
boolean cyclic)
|
private void |
setGradientUnlocked(double x1,
double y1,
double x2,
double y2,
int r1,
int g1,
int b1,
int a1,
int r2,
int g2,
int b2,
int a2,
boolean cyclic)
|
void |
setPaint(java.awt.Paint p)
|
void |
setPaintMode()
Sets this context into "paint" mode, where the target pixels are completely overwritten when drawn on. |
void |
setPaintUnlocked(java.awt.Paint p)
|
void |
setRenderingHint(java.awt.RenderingHints.Key hintKey,
java.lang.Object hintValue)
|
void |
setRenderingHints(java.util.Map hints)
|
void |
setRenderingHintsUnlocked(java.util.Map hints)
|
void |
setStroke(java.awt.Stroke st)
|
void |
setStrokeUnlocked(java.awt.Stroke st)
|
private void |
setTexturePixels(int[] pixels,
int w,
int h,
int stride)
|
private void |
setTexturePixelsUnlocked(int[] pixels,
int w,
int h,
int stride)
|
void |
setTransform(java.awt.geom.AffineTransform tx)
|
void |
setTransformUnlocked(java.awt.geom.AffineTransform tx)
|
void |
setXORMode(java.awt.Color c)
Sets this context info "XOR" mode, where the targe pixles are XOR-ed when drawn on. |
void |
shear(double shearX,
double shearY)
|
private double |
shifted(double coord,
boolean doShift)
|
private void |
stateRestore()
|
private void |
stateSave()
|
java.lang.String |
toString()
Returns a string representation of this object. |
void |
transform(java.awt.geom.AffineTransform tx)
|
void |
translate(double tx,
double ty)
|
void |
translate(int x,
int y)
Translates this context so that its new origin point is the point (x, y). |
private void |
updateBufferedImage()
|
private void |
walkPath(java.awt.geom.PathIterator p,
boolean doShift)
|
| Methods inherited from class java.awt.Graphics |
drawBytes, drawChars, drawPolygon, fillPolygon, getClipBounds, getClipRect, hitClip |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
native_state
private final int native_state
paint
java.awt.Paint paint
stroke
java.awt.Stroke stroke
fg
java.awt.Color fg
bg
java.awt.Color bg
clip
java.awt.Shape clip
transform
java.awt.geom.AffineTransform transform
component
private GtkComponentPeer component
font
java.awt.Font font
hints
private java.awt.RenderingHints hints
bimage
private java.awt.image.BufferedImage bimage
pixelConversionRequired
private boolean pixelConversionRequired
pixelBuffer
private int[] pixelBuffer
comp
java.awt.Composite comp
stateStack
private java.util.Stack stateStack
shiftDrawCalls
private boolean shiftDrawCalls
draw3DRectStroke
private static java.awt.BasicStroke draw3DRectStroke
| Constructor Detail |
GdkGraphics2D
GdkGraphics2D(GdkGraphics2D g)
GdkGraphics2D
GdkGraphics2D(GdkGraphics2D g, int x, int y, int widht, int height)
GdkGraphics2D
GdkGraphics2D(int width,
int height)
GdkGraphics2D
GdkGraphics2D(GtkComponentPeer component)
GdkGraphics2D
GdkGraphics2D(java.awt.image.BufferedImage bimage)
| Method Detail |
initStaticState
static void initStaticState()
initStateUnlocked
private void initStateUnlocked(GtkComponentPeer component)
initState
private void initState(GtkComponentPeer component)
initState
private void initState(int width,
int height)
initState
private void initState(int[] pixes,
int width,
int height)
copyState
private void copyState(GdkGraphics2D g)
dispose
public void dispose()
- Description copied from class:
java.awt.Graphics - Free any resources held by this graphics context immediately instead
of waiting for the object to be garbage collected and finalized.
cairoSurfaceSetFilter
private void cairoSurfaceSetFilter(int filter)
cairoSurfaceSetFilterUnlocked
private void cairoSurfaceSetFilterUnlocked(int filter)
connectSignals
void connectSignals(GtkComponentPeer component)
finalize
public void finalize()
- Description copied from class:
java.awt.Graphics - Frees the resources held by this graphics context when it is
garbage collected.
create
public java.awt.Graphics create()
- Description copied from class:
java.awt.Graphics - Returns a copy of this
Graphicsobject.
create
public java.awt.Graphics create(int x, int y, int width, int height)
- Description copied from class:
java.awt.Graphics - Returns a copy of this
Graphicsobject. The origin point will be translated to the point (x, y) and the cliping rectangle set to the intersection of the clipping rectangle in this object and the rectangle specified by the parameters to this method.
fail_g2d
private void fail_g2d()
initComponentGraphics2D
void initComponentGraphics2D()
initComponentGraphics2DUnlocked
void initComponentGraphics2DUnlocked()
gdkDrawDrawable
private void gdkDrawDrawable(GdkGraphics2D other, int x, int y)
drawPixels
private void drawPixels(int[] pixels,
int w,
int h,
int stride,
double[] i2u)
setTexturePixelsUnlocked
private void setTexturePixelsUnlocked(int[] pixels,
int w,
int h,
int stride)
setTexturePixels
private void setTexturePixels(int[] pixels,
int w,
int h,
int stride)
setGradient
private void setGradient(double x1,
double y1,
double x2,
double y2,
int r1,
int g1,
int b1,
int a1,
int r2,
int g2,
int b2,
int a2,
boolean cyclic)
setGradientUnlocked
private void setGradientUnlocked(double x1,
double y1,
double x2,
double y2,
int r1,
int g1,
int b1,
int a1,
int r2,
int g2,
int b2,
int a2,
boolean cyclic)
cairoSave
private void cairoSave()
cairoRestore
private void cairoRestore()
cairoSetMatrix
private void cairoSetMatrix(double[] m)
cairoSetMatrixUnlocked
private void cairoSetMatrixUnlocked(double[] m)
cairoSetOperator
private void cairoSetOperator(int cairoOperator)
cairoSetRGBAColor
private void cairoSetRGBAColor(double red,
double green,
double blue,
double alpha)
cairoSetRGBAColorUnlocked
private void cairoSetRGBAColorUnlocked(double red,
double green,
double blue,
double alpha)
cairoSetFillRule
private void cairoSetFillRule(int cairoFillRule)
cairoSetLineWidth
private void cairoSetLineWidth(double width)
cairoSetLineWidthUnlocked
private void cairoSetLineWidthUnlocked(double width)
cairoSetLineCap
private void cairoSetLineCap(int cairoLineCap)
cairoSetLineCapUnlocked
private void cairoSetLineCapUnlocked(int cairoLineCap)
cairoSetLineJoin
private void cairoSetLineJoin(int cairoLineJoin)
cairoSetLineJoinUnlocked
private void cairoSetLineJoinUnlocked(int cairoLineJoin)
cairoSetDash
private void cairoSetDash(double[] dashes,
int ndash,
double offset)
cairoSetDashUnlocked
private void cairoSetDashUnlocked(double[] dashes,
int ndash,
double offset)
cairoSetMiterLimit
private void cairoSetMiterLimit(double limit)
cairoSetMiterLimitUnlocked
private void cairoSetMiterLimitUnlocked(double limit)
cairoNewPath
private void cairoNewPath()
cairoMoveTo
private void cairoMoveTo(double x,
double y)
cairoLineTo
private void cairoLineTo(double x,
double y)
cairoCurveTo
private void cairoCurveTo(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
cairoRelMoveTo
private void cairoRelMoveTo(double dx,
double dy)
cairoRelLineTo
private void cairoRelLineTo(double dx,
double dy)
cairoRelCurveTo
private void cairoRelCurveTo(double dx1,
double dy1,
double dx2,
double dy2,
double dx3,
double dy3)
cairoRectangle
private void cairoRectangle(double x,
double y,
double width,
double height)
cairoClosePath
private void cairoClosePath()
cairoStroke
private void cairoStroke()
cairoFill
private void cairoFill()
cairoClip
private void cairoClip()
stateSave
private void stateSave()
stateRestore
private void stateRestore()
shifted
private double shifted(double coord,
boolean doShift)
walkPath
private void walkPath(java.awt.geom.PathIterator p, boolean doShift)
getDefaultHints
private java.util.Map getDefaultHints()
findSimpleIntegerArray
public static int[] findSimpleIntegerArray(java.awt.image.ColorModel cm, java.awt.image.Raster raster)
updateBufferedImage
private void updateBufferedImage()
drawImage
private boolean drawImage(java.awt.Image img, java.awt.geom.AffineTransform xform, java.awt.Color bgcolor, java.awt.image.ImageObserver obs)
draw
public void draw(java.awt.Shape s)
fill
public void fill(java.awt.Shape s)
clip
public void clip(java.awt.Shape s)
getPaint
public java.awt.Paint getPaint()
getTransform
public java.awt.geom.AffineTransform getTransform()
setPaint
public void setPaint(java.awt.Paint p)
setPaintUnlocked
public void setPaintUnlocked(java.awt.Paint p)
setTransform
public void setTransform(java.awt.geom.AffineTransform tx)
setTransformUnlocked
public void setTransformUnlocked(java.awt.geom.AffineTransform tx)
transform
public void transform(java.awt.geom.AffineTransform tx)
rotate
public void rotate(double theta)
rotate
public void rotate(double theta,
double x,
double y)
scale
public void scale(double sx,
double sy)
translate
public void translate(double tx,
double ty)
translate
public void translate(int x,
int y)
- Description copied from class:
java.awt.Graphics - Translates this context so that its new origin point is the point
(x, y).
shear
public void shear(double shearX,
double shearY)
getStroke
public java.awt.Stroke getStroke()
setStroke
public void setStroke(java.awt.Stroke st)
setStrokeUnlocked
public void setStrokeUnlocked(java.awt.Stroke st)
setPaintMode
public void setPaintMode()
- Description copied from class:
java.awt.Graphics - Sets this context into "paint" mode, where the target pixels are
completely overwritten when drawn on.
setXORMode
public void setXORMode(java.awt.Color c)
- Description copied from class:
java.awt.Graphics - Sets this context info "XOR" mode, where the targe pixles are
XOR-ed when drawn on.
setColor
public void setColor(java.awt.Color c)
- Description copied from class:
java.awt.Graphics - Sets the current color for this object.
setColorUnlocked
public void setColorUnlocked(java.awt.Color c)
getColor
public java.awt.Color getColor()
- Description copied from class:
java.awt.Graphics - Returns the current color for this object.
getColorUnlocked
public java.awt.Color getColorUnlocked()
clipRect
public void clipRect(int x,
int y,
int width,
int height)
- Description copied from class:
java.awt.Graphics - Sets the clipping region to the intersection of the current clipping
region and the rectangle determined by the specified parameters.
getClip
public java.awt.Shape getClip()
- Description copied from class:
java.awt.Graphics - Returns the current clipping region as a
Shapeobject.
getClipBounds
public java.awt.Rectangle getClipBounds()
- Description copied from class:
java.awt.Graphics - Returns the bounding rectangle of the clipping region for this
graphics context.
getClipInDevSpace
protected java.awt.geom.Rectangle2D getClipInDevSpace()
setClip
public void setClip(int x,
int y,
int width,
int height)
- Description copied from class:
java.awt.Graphics - Sets the clipping region to the rectangle determined by the specified
parameters.
setClip
public void setClip(java.awt.Shape s)
- Description copied from class:
java.awt.Graphics - Sets the clipping region to the specified
Shape.
draw3DRect
public void draw3DRect(int x,
int y,
int width,
int height,
boolean raised)
fill3DRect
public void fill3DRect(int x,
int y,
int width,
int height,
boolean raised)
- Description copied from class:
java.awt.Graphics - Fills the specified rectangle with a 3D effect
drawRect
public void drawRect(int x,
int y,
int width,
int height)
- Description copied from class:
java.awt.Graphics - Draws the outline of the specified rectangle.
fillRect
public void fillRect(int x,
int y,
int width,
int height)
- Description copied from class:
java.awt.Graphics - Fills the area bounded by the specified rectangle.
clearRect
public void clearRect(int x,
int y,
int width,
int height)
- Description copied from class:
java.awt.Graphics - Clears the specified rectangle.
setBackground
public void setBackground(java.awt.Color c)
setBackgroundUnlocked
public void setBackgroundUnlocked(java.awt.Color c)
getBackground
public java.awt.Color getBackground()
doPolygon
private void doPolygon(int[] xPoints,
int[] yPoints,
int nPoints,
boolean close,
boolean fill)
drawLine
public void drawLine(int x1,
int y1,
int x2,
int y2)
- Description copied from class:
java.awt.Graphics - Draws a line between the two specified points.
fillPolygon
public void fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
- Description copied from class:
java.awt.Graphics - Fills the polygon determined by the arrays
of corresponding x and y coordinates.
drawPolygon
public void drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
- Description copied from class:
java.awt.Graphics - Draws a series of interconnected lines determined by the arrays
of corresponding x and y coordinates. The figure is closed if necessary
by connecting the first and last points.
drawPolyline
public void drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
- Description copied from class:
java.awt.Graphics - Draws a series of interconnected lines determined by the arrays
of corresponding x and y coordinates.
drawRaster
private boolean drawRaster(java.awt.image.ColorModel cm, java.awt.image.Raster r, java.awt.geom.AffineTransform imageToUser, java.awt.Color bgcolor)
drawRenderedImage
public void drawRenderedImage(java.awt.image.RenderedImage image, java.awt.geom.AffineTransform xform)
drawRenderableImage
public void drawRenderableImage(java.awt.image.renderable.RenderableImage image, java.awt.geom.AffineTransform xform)
drawImage
public boolean drawImage(java.awt.Image img, java.awt.geom.AffineTransform xform, java.awt.image.ImageObserver obs)
drawImage
public void drawImage(java.awt.image.BufferedImage image, java.awt.image.BufferedImageOp op, int x, int y)
drawImage
public boolean drawImage(java.awt.Image img, int x, int y, java.awt.image.ImageObserver observer)
- Description copied from class:
java.awt.Graphics - Draws all of the image that is available and returns. If the image
is not completely loaded,
falseis returned and the specified iamge observer is notified as more data becomes available.
hit
public boolean hit(java.awt.Rectangle rect, java.awt.Shape text, boolean onStroke)
getDeviceConfiguration
public java.awt.GraphicsConfiguration getDeviceConfiguration()
setComposite
public void setComposite(java.awt.Composite comp)
setRenderingHint
public void setRenderingHint(java.awt.RenderingHints.Key hintKey,
java.lang.Object hintValue)
getRenderingHint
public java.lang.Object getRenderingHint(java.awt.RenderingHints.Key hintKey)
setRenderingHints
public void setRenderingHints(java.util.Map hints)
setRenderingHintsUnlocked
public void setRenderingHintsUnlocked(java.util.Map hints)
addRenderingHints
public void addRenderingHints(java.util.Map hints)
getRenderingHints
public java.awt.RenderingHints
JAVADOC