void | addRenderingHints(Map hints)- Adds/updates the rendering hint.
|
void | clearRect(int x, int y, int width, int height)- Note that the rest of the drawing methods go via fill() or draw() for the drawing,
although subclasses may with to overload these methods where context-specific
optimizations are possible (e.g. bitmaps and fillRect(int, int, int, int)
|
void | clip(Shape s)- Sets the clip region to the intersection of the current clipping region
and
s.
|
void | clipRect(int x, int y, int width, int height)
|
void | copy(CairoGraphics2D g, long cairo_t_pointer)- Same as above, but copies the state of another CairoGraphics2D.
|
void | copyArea(int ox, int oy, int owidth, int oheight, int odx, int ody)- CopyArea - performs clipping to the native surface as a convenience
(requires getRealBounds).
|
protected abstract void | copyAreaImpl(int x, int y, int width, int height, int dx, int dy)
|
abstract Graphics | create()- These are declared abstract as there may be context-specific issues.
|
void | dispose()- Disposes the native cairographics2d structure, including the
cairo_t and any gradient stuff, if allocated.
|
void | disposeNative(long pointer)- Dispose of allocate native resouces.
|
void | draw(Shape s)- Draws an outline around a shape using the current stroke and paint.
|
void | draw3DRect(int x, int y, int width, int height, boolean raised)
|
void | drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)
|
void | drawGlyphVector(GlyphVector gv, float x, float y)- Draws a glyph vector at the specified location.
|
boolean | drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)
|
boolean | drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)
|
boolean | drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)
|
boolean | drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)
|
boolean | drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)
|
boolean | drawImage(Image img, int x, int y, ImageObserver observer)
|
protected boolean | drawImage(Image img, AffineTransform xform, Color bgcolor, ImageObserver obs)
|
boolean | drawImage(Image img, AffineTransform xform, ImageObserver obs)
|
void | drawImage(BufferedImage image, BufferedImageOp op, int x, int y)
|
void | drawLine(int x1, int y1, int x2, int y2)
|
void | drawOval(int x, int y, int width, int height)
|
void | drawPolygon(int[] xPoints, int[] yPoints, int nPoints)
|
void | drawPolyline(int[] xPoints, int[] yPoints, int nPoints)
|
void | drawRect(int x, int y, int width, int height)
|
void | drawRenderableImage(RenderableImage image, AffineTransform xform)
|
void | drawRenderedImage(RenderedImage image, AffineTransform xform)
|
void | drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
|
void | drawString(String str, float x, float y)- Draws a string at the specified location, using the current font.
|
void | drawString(String str, int x, int y)- Draws a string at the specified location, using the current font.
|
void | drawString(AttributedCharacterIterator ci, float x, float y)- Draws an attributed string at the specified location.
|
void | drawString(AttributedCharacterIterator ci, int x, int y)- Draws an attributed string at the specified location.
|
void | fill(Shape s)- Fills the interior of the specified
shape using the current
paint.
|
void | fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)
|
void | fillOval(int x, int y, int width, int height)
|
void | fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
|
void | fillRect(int x, int y, int width, int height)
|
void | fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
|
void | finalize()- Generic destructor - call the native dispose() method.
|
static int[] | findSimpleIntegerArray(ColorModel cm, Raster raster)- Used by drawRaster and GdkPixbufDecoder
|
Color | getBackground()- Returns the color used by the
Graphics.clearRect(int,int,int,int) method.
|
Shape | getClip()
|
Rectangle | getClipBounds()
|
protected Rectangle2D | getClipInDevSpace()
|
Color | getColor()
|
Composite | getComposite()- Return the current composite.
|
abstract GraphicsConfiguration | getDeviceConfiguration()
|
Font | getFont()
|
FontMetrics | getFontMetrics()
|
FontMetrics | getFontMetrics(Font f)
|
FontRenderContext | getFontRenderContext()- Should perhaps be contexct dependent, but this is left for now as an
overloadable default implementation.
|
Paint | getPaint()- Returns the current paint.
|
protected abstract Rectangle2D | getRealBounds()
|
Object | getRenderingHint(RenderingHints.Key hintKey)- Returns the current value of a rendering hint.
|
RenderingHints | getRenderingHints()- Returns the current rendering hints.
|
Stroke | getStroke()- Returns the current stroke.
|
AffineTransform | getTransform()- Returns the current transform.
|
boolean | hit(Rectangle rect, Shape s, boolean onStroke)
|
void | rotate(double theta)
|
void | rotate(double theta, double x, double y)
|
void | scale(double sx, double sy)
|
void | setBackground(Color c)- Sets the background color (used by the
Graphics.clearRect(int,int,int,int) method).
|
void | setClip(int x, int y, int width, int height)
|
void | setClip(Shape s)
|
void | setColor(Color c)
|
void | setComposite(Composite comp)- Sets the current composite context.
|
void | setFont(Font f)
|
void | setPaint(Paint p)- Sets the paint to be used for subsequent drawing operations.
|
void | setPaintMode()
|
void | setRenderingHint(RenderingHints.Key hintKey, Object hintValue)- FIXME- support better
|
void | setRenderingHints(Map hints)- Replaces the current rendering hints with the supplied hints.
|
void | setStroke(Stroke st)- Sets the stroke to be used for subsequent drawing operations.
|
void | setTransform(AffineTransform tx)- Set the current transform
|
void | setXORMode(Color c)
|
void | setup(long cairo_t_pointer)- Sets up the default values and allocates the native cairographics2d structure
|
void | shear(double shearX, double shearY)
|
String | toString()
|
void | transform(AffineTransform tx)- Sets the current transform to a concatenation of
transform
and the existing transform.
|
void | translate(double tx, double ty)- Translate the system of the co-ordinates.
|
void | translate(int x, int y)
|