290 |
private native void cairoRestore(); |
private native void cairoRestore(); |
291 |
private native void cairoSetMatrix(double[] m); |
private native void cairoSetMatrix(double[] m); |
292 |
private native void cairoSetOperator(int cairoOperator); |
private native void cairoSetOperator(int cairoOperator); |
293 |
private native void cairoSetRGBColor(double red, double green, double blue); |
private native void cairoSetRGBAColor(double red, double green, |
294 |
private native void cairoSetAlpha(double alpha); |
double blue, double alpha); |
295 |
private native void cairoSetFillRule(int cairoFillRule); |
private native void cairoSetFillRule(int cairoFillRule); |
296 |
private native void cairoSetLineWidth(double width); |
private native void cairoSetLineWidth(double width); |
297 |
private native void cairoSetLineCap(int cairoLineCap); |
private native void cairoSetLineCap(int cairoLineCap); |
807 |
|
|
808 |
fg = c; |
fg = c; |
809 |
paint = c; |
paint = c; |
810 |
cairoSetRGBColor(fg.getRed() / 255.0, fg.getGreen() / 255.0, |
cairoSetRGBAColor(fg.getRed() / 255.0, fg.getGreen() / 255.0, |
811 |
fg.getBlue() / 255.0); |
fg.getBlue() / 255.0, fg.getAlpha() / 255.0); |
|
cairoSetAlpha((fg.getAlpha() & 255) / 255.0); |
|
812 |
} |
} |
813 |
|
|
814 |
public Color getColor() |
public Color getColor() |
913 |
|
|
914 |
public void clearRect(int x, int y, int width, int height) |
public void clearRect(int x, int y, int width, int height) |
915 |
{ |
{ |
916 |
cairoSetRGBColor(bg.getRed() / 255.0, bg.getGreen() / 255.0, |
cairoSetRGBAColor(bg.getRed() / 255.0, bg.getGreen() / 255.0, |
917 |
bg.getBlue() / 255.0); |
bg.getBlue() / 255.0, 1.0); |
|
cairoSetAlpha(1.0); |
|
918 |
cairoNewPath(); |
cairoNewPath(); |
919 |
cairoRectangle(x, y, width, height); |
cairoRectangle(x, y, width, height); |
920 |
cairoFill(); |
cairoFill(); |