diff options
author | kitfox | 2007-04-13 00:46:34 +0200 |
---|---|---|
committer | kitfox | 2007-04-13 00:46:34 +0200 |
commit | 79060105be1925398bd904d5a8cb9fb69baa949c (patch) | |
tree | 795039b8d3a408822e4c9fe95cdfbe0d20e1928a /src/main/java/com/kitfox/salamander/svg/coordSystems/SVGPoint.java | |
parent | Pseudocode for main rendering logic. Roughing in SVG structure. (diff) | |
download | svg-salamander-core-79060105be1925398bd904d5a8cb9fb69baa949c.tar.gz svg-salamander-core-79060105be1925398bd904d5a8cb9fb69baa949c.tar.xz svg-salamander-core-79060105be1925398bd904d5a8cb9fb69baa949c.zip |
Added Document Structure interfaces
git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@13 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b
Diffstat (limited to 'src/main/java/com/kitfox/salamander/svg/coordSystems/SVGPoint.java')
-rwxr-xr-x | src/main/java/com/kitfox/salamander/svg/coordSystems/SVGPoint.java | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/main/java/com/kitfox/salamander/svg/coordSystems/SVGPoint.java b/src/main/java/com/kitfox/salamander/svg/coordSystems/SVGPoint.java new file mode 100755 index 0000000..19e5fb7 --- /dev/null +++ b/src/main/java/com/kitfox/salamander/svg/coordSystems/SVGPoint.java @@ -0,0 +1,44 @@ +/*
+ * SVGPoint.java
+ *
+ * Created on April 12, 2007, 5:53 PM
+ *
+ * To change this template, choose Tools | Template Manager
+ * and open the template in the editor.
+ */
+
+package com.kitfox.salamander.svg.coordSystems;
+
+import com.kitfox.salamander.svg.basic.SVGDataType;
+
+/**
+ *
+ * Many of the SVG DOM interfaces refer to objects of class SVGPoint. An SVGPoint is an (x,y) coordinate pair. When used in matrix operations, an SVGPoint is treated as a vector of the form:
+ *
+ * <code>
+ * [x]
+ * [y]
+ * [1]
+ * </code>
+ * @author kitfox
+ */
+public interface SVGPoint extends SVGDataType
+{
+ /**
+ * The x coordinate.
+ */
+ public float getX();
+ /**
+ * The y coordinate.
+ */
+ public float getY();
+
+ /**
+ * Applies a 2x3 matrix transformation on this SVGPoint object and returns a new, transformed SVGPoint object:
+ *
+ * <CODE>newpoint = matrix * thispoint</CODE>
+ * @param matrix The matrix which is to be applied to this SVGPoint object.
+ * @return A new SVGPoint object.
+ */
+ public SVGPoint matrixTransform(SVGMatrix matrix);
+}
|