[cairo-commit] CairoJava/src/org/cairographics/cairo Cairo.java, 1.6, 1.7

Soorya Kuloor commit at pdx.freedesktop.org
Mon May 10 16:20:22 PDT 2004


Committed by: skuloor

Update of /cvs/cairo/CairoJava/src/org/cairographics/cairo
In directory pdx:/tmp/cvs-serv3026/src/org/cairographics/cairo

Modified Files:
	Cairo.java 
Log Message:
Added method convert global co-ordinates into local co-ordinates

Index: Cairo.java
===================================================================
RCS file: /cvs/cairo/CairoJava/src/org/cairographics/cairo/Cairo.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** a/Cairo.java	30 Apr 2004 17:53:54 -0000	1.6
--- b/Cairo.java	10 May 2004 23:20:20 -0000	1.7
***************
*** 943,948 ****
      /**
       * Transforms a point to the global co-ordinates and returns the transformed
!      * point. The original point remains unchanged.
!      * 
       * @param x
       *            The x cordinate of the point in local co-ordinates
--- 943,948 ----
      /**
       * Transforms a point to the global co-ordinates and returns the transformed
!      * point. 
!      *  
       * @param x
       *            The x cordinate of the point in local co-ordinates
***************
*** 954,958 ****
          return cairo_transform_point(handle, x, y);
      }
! 
      /**
       * Returns the current transformation matrix for this state.
--- 954,972 ----
          return cairo_transform_point(handle, x, y);
      }
!     
!     /**
!      * Inverse transforms a point to the local co-ordinates and returns the transformed
!      * point.
!      * 
!      * @param x
!      *            The x cordinate of the point in global co-ordinates
!      * @param y
!      *            The y cordinate of the point in global co-ordinates
!      * @return The transformed point
!      */
!     public double[] getInverseTransformedPoint(double x, double y) {
!         return cairo_inverse_transform_point(handle, x, y);
!     }
!     
      /**
       * Returns the current transformation matrix for this state.





More information about the cairo-commit mailing list