]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Make compatible with new Property.Maker constructor and make method parameters
authorKaren Lease <klease@apache.org>
Fri, 10 Nov 2000 22:33:23 +0000 (22:33 +0000)
committerKaren Lease <klease@apache.org>
Fri, 10 Nov 2000 22:33:23 +0000 (22:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193775 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/svg/SVGD.java
src/org/apache/fop/svg/SVGLengthListProperty.java
src/org/apache/fop/svg/SVGLengthProperty.java
src/org/apache/fop/svg/SVGPoints.java
src/org/apache/fop/svg/SVGStringProperty.java
src/org/apache/fop/svg/SVGStyle.java
src/org/apache/fop/svg/SVGTransform.java
src/org/apache/fop/svg/TextProperty.java

index c58c92a0dfa34ae3b3d0fa12d0459ad5826e6330..5356ccea883c47d1cbabd40a5dda16b9776d9ce3 100644 (file)
@@ -80,7 +80,7 @@ public class SVGD extends Property {
         * @param propertyList the property list this is a member of
         * @param value the explicit string value of the property
         */
-       public Property make(PropertyList propertyList, String value)
+       public Property make(PropertyList propertyList, String value, FObj fo)
                throws FOPException {
                return new SVGD(propertyList, new PathData(value));
        }
@@ -91,7 +91,7 @@ public class SVGD extends Property {
         * @param propertyList the property list the property is a member of
         */
        public Property make(PropertyList propertyList) throws FOPException {
-               return make(propertyList, "");
+               return make(propertyList, "", null);
        }
        }
 
@@ -100,7 +100,7 @@ public class SVGD extends Property {
         *
         * @return the maker for SVG Length objects
         */
-       public static Property.Maker maker() {
+       public static Property.Maker maker(String propName) {
        return new SVGD.Maker();
        }
 
index bcb955a164277c8e5a1a51aa54a7c3f07a251503..b25d621837b68b492dbb7cb6746a6ac3207438ed 100644 (file)
@@ -84,7 +84,7 @@ public class SVGLengthListProperty extends Property {
         * @param propertyList the property list this is a member of
         * @param value the explicit string value of the property
         */
-       public Property make(PropertyList propertyList, String value)
+       public Property make(PropertyList propertyList, String value, FObj fo)
                throws FOPException {
                SVGAnimatedLengthListImpl anime = new SVGAnimatedLengthListImpl();
                SVGLengthListImpl len = new SVGLengthListImpl();
@@ -99,7 +99,7 @@ public class SVGLengthListProperty extends Property {
         * @param propertyList the property list the property is a member of
         */
        public Property make(PropertyList propertyList) throws FOPException {
-               return make(propertyList, "");
+               return make(propertyList, "", null);
        }
        }
 
@@ -112,6 +112,10 @@ public class SVGLengthListProperty extends Property {
        return new SVGLengthListProperty.Maker();
        }
 
+       public static Property.Maker maker(String propName) {
+       return new SVGLengthListProperty.Maker();
+       }
+
        /** the length as a Length object */
        protected SVGAnimatedLengthList value;
        
index 1d96f6eadd2c57c1bcbdbf0131cb108307047a90..ce774b8b71e8c55d49bf4f1f9c75475dd1da6630 100644 (file)
@@ -82,7 +82,7 @@ public class SVGLengthProperty extends Property {
          * @param value the explicit string value of the property
          */
         public Property make(PropertyList propertyList,
-                             String value) throws FOPException {
+                             String value, FObj fo) throws FOPException {
             SVGLengthImpl len = new SVGLengthImpl();
             len.setValueAsString(value);
             return new SVGLengthProperty(propertyList, len);
@@ -108,6 +108,16 @@ public class SVGLengthProperty extends Property {
         return new SVGLengthProperty.Maker();
     }
 
+    /**
+     * returns the maker for this object.
+     * @param propName the name of the property (used with new
+     * property mapping scheme)
+     * @return the maker for SVG Length objects
+     */
+    public static Property.Maker maker(String propName) {
+       return new SVGLengthProperty.Maker();
+    }
+
     /** the length as a Length object */
     protected SVGLengthImpl value;
 
index 866615d86ed4f6b1601ce9ed2f4b173e6dae4b1a..36ff790cf167068d8eacc999247a175fd4f682f6 100644 (file)
@@ -80,7 +80,7 @@ public class SVGPoints extends Property {
         * @param propertyList the property list this is a member of
         * @param value the explicit string value of the property
         */
-       public Property make(PropertyList propertyList, String value)
+       public Property make(PropertyList propertyList, String value, FObj fo)
                throws FOPException {
                return new SVGPoints(propertyList, new PointsData(value));
        }
@@ -91,7 +91,7 @@ public class SVGPoints extends Property {
         * @param propertyList the property list the property is a member of
         */
        public Property make(PropertyList propertyList) throws FOPException {
-               return make(propertyList, "");
+               return make(propertyList, "", null);
        }
        }
 
@@ -100,7 +100,7 @@ public class SVGPoints extends Property {
         *
         * @return the maker for SVG Length objects
         */
-       public static Property.Maker maker() {
+       public static Property.Maker maker(String propName) {
        return new SVGPoints.Maker();
        }
 
index 5d9adb98f635c26a6c416279f9041aa484028229..c01f28ec5291eec5e4e4a372dd7671ec19078653 100644 (file)
@@ -81,7 +81,7 @@ public class SVGStringProperty extends Property {
         * @param propertyList the property list this is a member of
         * @param value the explicit string value of the property
         */
-       public Property make(PropertyList propertyList, String value)
+       public Property make(PropertyList propertyList, String value, FObj fo)
                throws FOPException {
                return new SVGStringProperty(propertyList, value);
        }
@@ -92,7 +92,7 @@ public class SVGStringProperty extends Property {
         * @param propertyList the property list the property is a member of
         */
        public Property make(PropertyList propertyList) throws FOPException {
-               return make(propertyList, "");
+               return make(propertyList, "", null);
        }
        }
 
index 8bd7da0bedc0a944e003713317912f6a2344048e..f804aa700475c5b70ec6fe45536daf2892111e2f 100644 (file)
@@ -82,7 +82,7 @@ public class SVGStyle extends Property {
         * @param propertyList the property list this is a member of
         * @param value the explicit string value of the property
         */
-       public Property make(PropertyList propertyList, String value)
+       public Property make(PropertyList propertyList, String value, FObj fo)
                throws FOPException {
                return new SVGStyle(propertyList, new StyleData(value));
        }
@@ -93,7 +93,7 @@ public class SVGStyle extends Property {
         * @param propertyList the property list the property is a member of
         */
        public Property make(PropertyList propertyList) throws FOPException {
-               return make(propertyList, "");
+               return make(propertyList, "", null);
        }
        }
 
@@ -102,7 +102,7 @@ public class SVGStyle extends Property {
         *
         * @return the maker for SVG Length objects
         */
-       public static Property.Maker maker() {
+       public static Property.Maker maker(String propName) {
        return new SVGStyle.Maker();
        }
 
index 3c90f82d3d10357b64203bab1d40f8e94d90edf4..e883410e72f578ee6431e7b0d57e9c94306fdafb 100644 (file)
@@ -82,7 +82,7 @@ public class SVGTransform extends Property {
         * @param propertyList the property list this is a member of
         * @param value the explicit string value of the property
         */
-       public Property make(PropertyList propertyList, String value)
+       public Property make(PropertyList propertyList, String value, FObj fo)
                throws FOPException {
                return new SVGTransform(propertyList, new TransformData(value));
        }
@@ -93,7 +93,7 @@ public class SVGTransform extends Property {
         * @param propertyList the property list the property is a member of
         */
        public Property make(PropertyList propertyList) throws FOPException {
-               return make(propertyList, "");
+               return make(propertyList, "", null);
        }
        }
 
@@ -102,7 +102,7 @@ public class SVGTransform extends Property {
         *
         * @return the maker for SVG Length objects
         */
-       public static Property.Maker maker() {
+       public static Property.Maker maker(String propName) {
        return new SVGTransform.Maker();
        }
 
index 48f8153ce8c495cc6cddfee6b1daaa8ee196f3f8..74f74a7ece77c931a87fef6b1c44d1f419d3c51b 100644 (file)
@@ -80,7 +80,7 @@ public class TextProperty extends Property {
         * @param propertyList the property list this is a member of
         * @param value the explicit string value of the property
         */
-       public Property make(PropertyList propertyList, String value)
+       public Property make(PropertyList propertyList, String value, FObj fo)
                throws FOPException {
                return new TextProperty(propertyList, value);
        }
@@ -91,7 +91,7 @@ public class TextProperty extends Property {
         * @param propertyList the property list the property is a member of
         */
        public Property make(PropertyList propertyList) throws FOPException {
-               return make(propertyList, "");
+               return make(propertyList, "", null);
        }
        }