org.freedesktop.cairo
public class Context extends org.gnu.glib.Struct
Constructor and Description |
---|
Context(Surface target)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Modifier and Type | Method and Description |
---|---|
void |
arc(double x,
double y,
double radius,
double angle1,
double angle2) |
void |
arc(Point point,
double radius,
double angle1,
double angle2)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
arcNegative(double x,
double y,
double radius,
double angle1,
double angle2) |
void |
arcNegative(Point point,
double radius,
double angle1,
double angle2)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
clip()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
clipPreserve()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
closePath()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
copyPage() |
void |
curveTo(double x1,
double y1,
double x2,
double y2,
double x3,
double y3) |
void |
curveTo(Point p1,
Point p2,
Point p3)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Point |
deviceToUser(Point point)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Point |
deviceToUserDistance(Point distance)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
ellipse(double cx,
double cy,
double rx,
double ry)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
fill()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Rectangle |
fillExtents() |
void |
fillPreserve()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
FontExtents |
fontExtents()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Antialias |
getAntialias() |
Point |
getCurrentPoint()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
FillRule |
getFillRule()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
FontFace |
getFontFace()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Matrix |
getFontMatrix()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
FontOptions |
getFontOptions() |
LineCap |
getLineCap()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
LineJoin |
getLineJoin()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
double |
getLineWidth()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Matrix |
getMatrix()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
double |
getMiterLimit()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Operator |
getOperator()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Pattern |
getSource()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Surface |
getTarget()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
double |
getTolerance()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
TextExtents |
glyphExtents(Glyph[] glyphs)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
glyphPath(Glyph[] glyphs) |
void |
identityMatrix()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
boolean |
inFill(double x,
double y)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
boolean |
inFill(Point p) |
boolean |
inStroke(double x,
double y)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
boolean |
inStroke(Point p) |
void |
lineTo(double x,
double y) |
void |
lineTo(Point p)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
mask(Pattern pattern)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
mask(Surface surface,
double sx,
double sy)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
moveTo(double x,
double y) |
void |
moveTo(Point p)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
newPath()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
paint()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
paintWithAlpha(double alpha)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
rectangle(Point upperLeft,
Point lowerRight)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
rectangle(Rectangle rect)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
relCurveTo(double x1,
double y1,
double x2,
double y2,
double x3,
double y3) |
void |
relCurveTo(Point p1,
Point p2,
Point p3)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
relLineTo(double x,
double y) |
void |
relLineTo(Point p)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
relMoveTo(double x,
double y) |
void |
relMoveTo(Point p)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
resetClip()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
restore()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
rotate(double angle)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
save()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
scale(double sx,
double sy)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
selectFontFace(java.lang.String family,
FontSlant slant,
FontWeight weight)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
setAntialias(Antialias antialias) |
void |
setDash(double[] dashes,
double offset)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
setFillRule(FillRule fillrule)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
setFontFace(FontFace fontFace)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
setFontMatrix(Matrix matrix)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
setFontOptions(FontOptions fontOptions) |
void |
setFontSize(double scale)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
setLineCap(LineCap linecap)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
setLineJoin(LineJoin linejoin)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
setLineWidth(double width)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
setMatrix(Matrix matrix)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
setMiterLimit(double limit)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
setOperator(Operator op)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
setSource(Pattern pattern)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
setSource(Surface surface,
double x,
double y)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
setSourceRGB(double red,
double green,
double blue)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
setSourceRGBA(double red,
double green,
double blue,
double alpha)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
setTolerance(double tolerance)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
showGlyphs(Glyph[] glyphs) |
void |
showPage() |
void |
showText(java.lang.String text)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Status |
status() |
void |
stroke()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Rectangle |
strokeExtents() |
void |
strokePreserve()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
TextExtents |
textExtents(java.lang.String text)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
textPath(java.lang.String text) |
void |
transform(Matrix matrix)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
translate(double tx,
double ty)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Point |
userToDevice(Point point)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Point |
userToDeviceDistance(Point distance)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
public Context(Surface target)
target
- target surface for the context.public void save()
restore()
is called, the saved state will be
restored. Multiple calls save() and restore() can
be nested; each call to restore() restores the state from the
matching paired save().public void restore()
save()
and
removes that state from the stack of saved states.public void setOperator(Operator op)
op
- public void setSource(Pattern pattern)
pattern
- public void setSourceRGB(double red, double green, double blue)
red
- green
- blue
- public void setSourceRGBA(double red, double green, double blue, double alpha)
red
- green
- blue
- alpha
- public void setSource(Surface surface, double x, double y)
surface
- x
- y
- public void setTolerance(double tolerance)
tolerance
- public void setFillRule(FillRule fillrule)
fillrule
- public void setLineWidth(double width)
width
- public void setLineCap(LineCap linecap)
linecap
- public void setLineJoin(LineJoin linejoin)
linejoin
- public void setDash(double[] dashes, double offset)
dashes
- offset
- public void setMiterLimit(double limit)
limit
- public void translate(double tx, double ty)
tx
- ty
- public void scale(double sx, double sy)
sx
- sy
- public void rotate(double angle)
angle
- public void transform(Matrix matrix)
matrix
- the transformation matrix to appendpublic void setMatrix(Matrix matrix)
matrix
- the transformation matrixpublic void identityMatrix()
public Point userToDevice(Point point)
public Point userToDeviceDistance(Point distance)
public Point deviceToUser(Point point)
public Point deviceToUserDistance(Point distance)
public void newPath()
public void moveTo(Point p)
p
- the point co-ordinate of the point to move topublic void moveTo(double x, double y)
public void lineTo(Point p)
p
- the point coordinate for the end point for the line segmentpublic void lineTo(double x, double y)
public void curveTo(Point p1, Point p2, Point p3)
p1
- x co-ordinate of the first control pointp2
- x co-ordinate of the second control pointp3
- x co-ordinate of the end pointpublic void curveTo(double x1, double y1, double x2, double y2, double x3, double y3)
public void arc(Point point, double radius, double angle1, double angle2)
point
- radius
- angle1
- angle2
- public void arc(double x, double y, double radius, double angle1, double angle2)
public void arcNegative(Point point, double radius, double angle1, double angle2)
point
- radius
- angle1
- angle2
- public void arcNegative(double x, double y, double radius, double angle1, double angle2)
public void relMoveTo(Point p)
p
- relative distance between current point and the new pointpublic void relMoveTo(double x, double y)
public void relLineTo(Point p)
p
- The relative coordinate for the end point for the line segmentpublic void relLineTo(double x, double y)
public void relCurveTo(Point p1, Point p2, Point p3)
p1
- relative co-ordinate of the first control pointp2
- relative co-ordinate of the second control pointp3
- relative co-ordinate of the end pointpublic void relCurveTo(double x1, double y1, double x2, double y2, double x3, double y3)
public void rectangle(Point upperLeft, Point lowerRight)
upperLeft
- x and y coordinates of the upper-left pointlowerRight
- x and y coordinates of the lower-right pointpublic void rectangle(Rectangle rect)
rect
- Rectangle defining the coordinate of the shape to drawpublic void closePath()
public void paint()
public void paintWithAlpha(double alpha)
alpha
- public void mask(Pattern pattern)
pattern
- public void mask(Surface surface, double sx, double sy)
surface
- sx
- sy
- public void stroke()
public void strokePreserve()
public void fill()
public void fillPreserve()
public void copyPage()
public void showPage()
public boolean inStroke(double x, double y)
x
- x coordinate of the point to testy
- y coordinate of the point to testpublic boolean inStroke(Point p)
public boolean inFill(double x, double y)
x
- x coordinate of the point to testy
- y coordinate of the point to testpublic boolean inFill(Point p)
public Rectangle strokeExtents()
public Rectangle fillExtents()
public void resetClip()
public void clip()
public void clipPreserve()
public void selectFontFace(java.lang.String family, FontSlant slant, FontWeight weight)
family
- font family nameslant
- font slantweight
- font weightpublic void setFontSize(double scale)
scale
- the scaling factor.public void setFontMatrix(Matrix matrix)
matrix
- transformation matrix.public Matrix getFontMatrix()
public void showText(java.lang.String text)
text
- String to draw on the screen.public void showGlyphs(Glyph[] glyphs)
public FontFace getFontFace()
public FontExtents fontExtents()
public void setFontFace(FontFace fontFace)
fontFace
- public TextExtents textExtents(java.lang.String text)
public TextExtents glyphExtents(Glyph[] glyphs)
public void textPath(java.lang.String text)
public void glyphPath(Glyph[] glyphs)
public Operator getOperator()
public Pattern getSource()
public double getTolerance()
public Point getCurrentPoint()
public FillRule getFillRule()
public double getLineWidth()
public LineCap getLineCap()
public LineJoin getLineJoin()
public double getMiterLimit()
public Matrix getMatrix()
public Surface getTarget()
public Status status()
public void setAntialias(Antialias antialias)
public Antialias getAntialias()
public void setFontOptions(FontOptions fontOptions)
public FontOptions getFontOptions()
public void ellipse(double cx, double cy, double rx, double ry)
cx
- X co-ordinate of the center of ellipsecy
- Y co-ordinate of the center of ellipserx
- X radius of the ellipsery
- Y radius of the ellipse