]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
put spread method in right place
authorKeiron Liddle <keiron@apache.org>
Fri, 22 Sep 2000 05:24:00 +0000 (05:24 +0000)
committerKeiron Liddle <keiron@apache.org>
Fri, 22 Sep 2000 05:24:00 +0000 (05:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193708 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/dom/svg/SVGGradientElementImpl.java
src/org/apache/fop/dom/svg/SVGLinearGradientElementImpl.java

index 008879044a65bb1ef28137cbea5a95b65ad86706..4541796eaac1bff7002541c95c725c9d898226a4 100644 (file)
@@ -63,8 +63,10 @@ SVG_SPREADMETHOD_PAD;
 SVG_SPREADMETHOD_REFLECT;
 SVG_SPREADMETHOD_REPEAT;
 */
+       SVGAnimatedEnumeration spreadMethod = new SVGAnimatedEnumerationImpl(SVG_SPREADMETHOD_UNKNOWN);
        SVGAnimatedEnumeration units = new SVGAnimatedEnumerationImpl(SVG_UNIT_TYPE_UNKNOWN);
 
+
        public SVGGradientElementImpl()
        {
        }
@@ -90,11 +92,12 @@ SVG_SPREADMETHOD_REPEAT;
 
        public SVGAnimatedEnumeration   getSpreadMethod( )
        {
-               return null;
+               return spreadMethod;
        }
 
        public void setSpreadMethod( SVGAnimatedEnumeration spreadMethod )
        {
+               this.spreadMethod = spreadMethod;
        }
 
        public SVGAnimatedBoolean getExternalResourcesRequired( )
@@ -102,7 +105,7 @@ SVG_SPREADMETHOD_REPEAT;
                return null;
        }
 
-       public void      setExternalResourcesRequired( SVGAnimatedBoolean externalResourcesRequired )
+       public void setExternalResourcesRequired( SVGAnimatedBoolean externalResourcesRequired )
        {
        }
 }
index 1840e97479492b983ea1281e866095da2161f47c..3c38b9afd88d0592aa946d64f56fd1a1e8e0a16c 100644 (file)
@@ -63,7 +63,6 @@ public class SVGLinearGradientElementImpl extends SVGGradientElementImpl
        SVGAnimatedLength x2;
        SVGAnimatedLength y1;
        SVGAnimatedLength y2;
-//     short spreadMethod;
 
        public SVGLinearGradientElementImpl()
        {
@@ -108,14 +107,4 @@ public class SVGLinearGradientElementImpl extends SVGGradientElementImpl
        {
                this.y2 = y2;
        }
-
-/*     public short getSpreadMethod()
-       {
-               return spreadMethod;
-       }
-
-       public void setSpreadMethod(short spreadMethod)
-       {
-               this.spreadMethod = spreadMethod;
-       }*/
 }