summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/kitfox/salamander/svg/coordSystems
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/kitfox/salamander/svg/coordSystems')
-rwxr-xr-xsrc/main/java/com/kitfox/salamander/svg/coordSystems/SVGPoint.java44
-rwxr-xr-xsrc/main/java/com/kitfox/salamander/svg/coordSystems/SVGPointList.java25
2 files changed, 69 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);
+}
diff --git a/src/main/java/com/kitfox/salamander/svg/coordSystems/SVGPointList.java b/src/main/java/com/kitfox/salamander/svg/coordSystems/SVGPointList.java
new file mode 100755
index 0000000..0a8e298
--- /dev/null
+++ b/src/main/java/com/kitfox/salamander/svg/coordSystems/SVGPointList.java
@@ -0,0 +1,25 @@
+/*
+ * SVGTransformList.java
+ *
+ * Created on April 12, 2007, 1:09 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.SVGList;
+
+
+/**
+ * <p>This interface defines a list of SVGTransform objects.</p>
+ *
+ * <p>The SVGTransformList and SVGTransform interfaces correspond to the various attributes which specify a set of transformations, such as the transform attribute which is available for many of SVG's elements.</p>
+ *
+ * <p>SVGTransformList has the same attributes and methods as other SVGxxxList interfaces. Implementers may consider using a single base class to implement the various SVGxxxList interfaces.</p>
+ * @author kitfox
+ */
+public interface SVGPointList extends SVGList<SVGPoint>
+{
+}