void | addRenderingHints(Map<K,V> hints)
|
protected void | cairoArc(long pointer, double x, double y, double radius, double angle1, double angle2)- Appends an arc to the current path
|
protected void | cairoClip(long pointer)- Clip current path
|
protected void | cairoClosePath(long pointer)- Close current path
|
protected void | cairoCurveTo(long pointer, double x1, double y1, double x2, double y2, double x3, double y3)- Cubic curve-to
|
protected void | cairoDrawGlyphVector(long pointer, GdkFontPeer font, float x, float y, int n, int[] codes, float[] positions, long[] fontset)
|
protected void | cairoFill(long pointer, double alpha)- Fill current path
|
protected void | cairoLineTo(long pointer, double x, double y)- lineTo
|
protected void | cairoMoveTo(long pointer, double x, double y)- moveTo
|
protected void | cairoNewPath(long pointer)- New current path
|
protected void | cairoRectangle(long pointer, double x, double y, double width, double height)- Appends a rectangle to the current path
|
protected void | cairoResetClip(long pointer)- Clear clip
|
protected void | cairoRestore(long pointer)
|
protected void | cairoSave(long pointer)- Save / restore a cairo path
|
protected void | cairoScale(long pointer, double x, double y)- Scaling method
|
protected void | cairoSetAntialias(long pointer, boolean aa)- Set antialias.
|
protected void | cairoSetDash(long pointer, double[] dashes, int ndash, double offset)- Set the dash style
|
protected void | cairoSetFillRule(long pointer, int cairoFillRule)- Sets the current winding rule in Cairo
|
protected void | cairoSetFont(long pointer, GdkFontPeer font)- Set the font in cairo.
|
protected void | cairoSetLine(long pointer, double width, int cap, int join, double miterLimit)- Set the line style, cap, join and miter limit.
|
protected void | cairoSetMatrix(long pointer, double[] m)- Set the current transform matrix
|
protected void | cairoSetOperator(long pointer, int cairoOperator)- Set the compositing operator
|
protected void | cairoSetRGBAColor(long pointer, double red, double green, double blue, double alpha)- Sets the current color in RGBA as a 0.0-1.0 double
|
protected void | cairoStroke(long pointer)- Stroke current path
|
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)
|
protected void | drawCairoSurface(CairoSurface surface, AffineTransform tx, double alpha, int interpolation)- Optimized method for drawing a CairoSurface onto this graphics context.
|
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)
|
protected void | drawPixels(long pointer, int[] pixels, int w, int h, int stride, double[] i2u, double alpha, int interpolation)- Draw pixels as an RGBA int matrix
|
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
|
protected Rectangle | findStrokedBounds(Shape s)- Utility method to find the bounds of a shape, including the stroke width.
|
Color | getBackground()- Returns the color used by the
Graphics.clearRect(int,int,int,int) method.
|
protected ColorModel | getBufferCM()- Returns the Color Model describing the buffer that this peer uses
for custom composites.
|
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.
|
protected abstract ColorModel | getNativeCM()- Returns the Colour Model describing the native, raw image data for this
specific peer.
|
Paint | getPaint()- Returns the current paint.
|
protected abstract Rectangle2D | getRealBounds()- Find the bounds of this graphics context, in device space.
|
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)
|
protected long | init(long pointer)- Allocate the cairographics2d structure and set the cairo_t pointer in it.
|
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.
|
protected void | setCustomPaint(Rectangle bounds)- Sets a custom paint
|
void | setFont(Font f)
|
protected void | setGradient(long pointer, 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(Paint p)- Sets the paint to be used for subsequent drawing operations.
|
void | setPaintMode()
|
protected void | setPaintPixels(long pointer, int[] pixels, int w, int h, int stride, boolean repeat, int x, int y)
|
void | setRenderingHint(RenderingHints.Key hintKey, Object hintValue)- Adds or updates a hint in the current rendering hints table.
|
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)
|