[cairo-commit] cairo-java/src/java/org/freedesktop/cairo Cairo.java, 1.8, 1.9 Glyph.java, 1.1, 1.2

Jeffrey Morgan commit at pdx.freedesktop.org
Mon Mar 14 13:16:45 PST 2005


Committed by: kuzman

Update of /cvs/cairo/cairo-java/src/java/org/freedesktop/cairo
In directory gabe:/tmp/cvs-serv24113/src/java/org/freedesktop/cairo

Modified Files:
	Cairo.java Glyph.java 
Log Message:
New methods that accept and return Point objects.

Index: Cairo.java
===================================================================
RCS file: /cvs/cairo/cairo-java/src/java/org/freedesktop/cairo/Cairo.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- Cairo.java	13 Mar 2005 16:36:58 -0000	1.8
+++ Cairo.java	14 Mar 2005 21:16:43 -0000	1.9
@@ -899,10 +899,18 @@
 	public void arc(double xc, double yc, double radius, double angle1, double angle2) {
 		cairo_arc(getHandle(), xc, yc, radius, angle1, angle2);
 	}
+    
+    public void arc(Point p, double radius, double angle1, double angle2) {
+        arc(p.getX(), p.getY(), radius, angle1, angle2);
+    }
 
 	public void arcNegative(double xc, double yc, double radius, double angle1, double angle2) {
 		cairo_arc_negative(getHandle(), xc, yc, radius, angle1, angle2);
 	}
+    
+    public void arcNegative(Point p, double radius, double angle1, double angle2) {
+        arcNegative(p.getX(), p.getY(), radius, angle1, angle2);
+    }
 	
     public void rectangle(double x, double y, double width, double height) {
 		cairo_rectangle(getHandle(), x, y, width, height);

Index: Glyph.java
===================================================================
RCS file: /cvs/cairo/cairo-java/src/java/org/freedesktop/cairo/Glyph.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Glyph.java	23 Feb 2005 18:17:52 -0000	1.1
+++ Glyph.java	14 Mar 2005 21:16:43 -0000	1.2
@@ -27,6 +27,10 @@
     public double getY() {
         return get_y(getHandle());
     }
+    
+    public Point getPoint() {
+        return new Point(get_x(getHandle()), get_y(getHandle()));
+    }
 
     /*
      * native calls




More information about the cairo-commit mailing list