return null;
}
- public SVGTransformList getTransform()
+ public SVGAnimatedTransformList getTransform()
{
if(trans != null) {
SVGTransformList stl = new SVGTransformListImpl();
for(Enumeration e = trans.elements(); e.hasMoreElements(); ) {
- stl.append((SVGTransform)e.nextElement());
+ stl.appendItem((SVGTransform)e.nextElement());
}
- return stl;
+ SVGAnimatedTransformList atl = new SVGAnimatedTransformListImpl();
+ atl.setBaseVal(stl);
+ return atl;
}
return null;
}
- public void setTransform(SVGTransformList transform)
+ public void setTransform(SVGAnimatedTransformList transform)
{
}
{
}
- public String getSystemRequired()
+ public SVGList getRequiredFeatures( )
{
return null;
}
- public void setSystemRequired(String systemRequired)
+ public void setRequiredFeatures( SVGList requiredFeatures )
+ throws DOMException
{
}
- public String getSystemLanguage()
+ public SVGList getRequiredExtensions( )
{
return null;
}
- public void setSystemLanguage(String systemLanguage)
+ public void setRequiredExtensions( SVGList requiredExtensions )
+ throws DOMException
+ {
+ }
+
+ public boolean hasExtension ( String extension )
+ {
+ return false;
+ }
+
+ public SVGList getSystemLanguage()
+ {
+ return null;
+ }
+
+ public void setSystemLanguage(SVGList systemLanguage)
{
}
*/
// use this so that the SVGArea can also hold style, defs and transform etc.
public interface GraphicImpl {
- public Hashtable getStyle();
+ public Hashtable oldgetStyle();
public void setParent(GraphicImpl g);
public GraphicImpl getGraphicParent();
public Vector oldgetTransform(); // ??
--- /dev/null
+/*-- $Id$ --
+
+ ============================================================================
+ The Apache Software License, Version 1.1
+ ============================================================================
+
+ Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modifica-
+ tion, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ 3. The end-user documentation included with the redistribution, if any, must
+ include the following acknowledgment: "This product includes software
+ developed by the Apache Software Foundation (http://www.apache.org/)."
+ Alternately, this acknowledgment may appear in the software itself, if
+ and wherever such third-party acknowledgments normally appear.
+
+ 4. The names "FOP" and "Apache Software Foundation" must not be used to
+ endorse or promote products derived from this software without prior
+ written permission. For written permission, please contact
+ apache@apache.org.
+
+ 5. Products derived from this software may not be called "Apache", nor may
+ "Apache" appear in their name, without prior written permission of the
+ Apache Software Foundation.
+
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
+ DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+ This software consists of voluntary contributions made by many individuals
+ on behalf of the Apache Software Foundation and was originally created by
+ James Tauber <jtauber@jtauber.com>. For more information on the Apache
+ Software Foundation, please see <http://www.apache.org/>.
+
+ */
+
+package org.apache.fop.dom.svg;
+
+import org.w3c.dom.svg.*;
+
+import org.w3c.dom.DOMException;
+
+public class SVGAnimatedEnumerationImpl implements SVGAnimatedEnumeration {
+ short baseval = 0;
+
+ public SVGAnimatedEnumerationImpl(short base)
+ {
+ baseval = base;
+ }
+
+ public short getBaseVal( )
+ {
+ return baseval;
+ }
+
+ public void setBaseVal(short baseVal)
+ {
+ this.baseval = baseVal;
+ }
+
+ public short getAnimVal( )
+ {
+ return baseval;
+ }
+}
--- /dev/null
+/*-- $Id$ --
+
+ ============================================================================
+ The Apache Software License, Version 1.1
+ ============================================================================
+
+ Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modifica-
+ tion, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ 3. The end-user documentation included with the redistribution, if any, must
+ include the following acknowledgment: "This product includes software
+ developed by the Apache Software Foundation (http://www.apache.org/)."
+ Alternately, this acknowledgment may appear in the software itself, if
+ and wherever such third-party acknowledgments normally appear.
+
+ 4. The names "FOP" and "Apache Software Foundation" must not be used to
+ endorse or promote products derived from this software without prior
+ written permission. For written permission, please contact
+ apache@apache.org.
+
+ 5. Products derived from this software may not be called "Apache", nor may
+ "Apache" appear in their name, without prior written permission of the
+ Apache Software Foundation.
+
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
+ DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+ This software consists of voluntary contributions made by many individuals
+ on behalf of the Apache Software Foundation and was originally created by
+ James Tauber <jtauber@jtauber.com>. For more information on the Apache
+ Software Foundation, please see <http://www.apache.org/>.
+
+ */
+
+package org.apache.fop.dom.svg;
+
+import org.w3c.dom.svg.*;
+
+public class SVGAnimatedLengthImpl implements SVGAnimatedLength {
+ SVGLength len = null;
+
+ public SVGAnimatedLengthImpl(SVGLength l)
+ {
+ len = l;
+ }
+
+ public SVGLength getBaseVal( )
+ {
+ return len;
+ }
+
+ public void setBaseVal( SVGLength baseVal )
+ {
+ len = baseVal;
+ }
+
+ public SVGLength getAnimVal( )
+ {
+ return null;
+ }
+}
--- /dev/null
+/*-- $Id$ --
+
+ ============================================================================
+ The Apache Software License, Version 1.1
+ ============================================================================
+
+ Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modifica-
+ tion, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ 3. The end-user documentation included with the redistribution, if any, must
+ include the following acknowledgment: "This product includes software
+ developed by the Apache Software Foundation (http://www.apache.org/)."
+ Alternately, this acknowledgment may appear in the software itself, if
+ and wherever such third-party acknowledgments normally appear.
+
+ 4. The names "Fop" and "Apache Software Foundation" must not be used to
+ endorse or promote products derived from this software without prior
+ written permission. For written permission, please contact
+ apache@apache.org.
+
+ 5. Products derived from this software may not be called "Apache", nor may
+ "Apache" appear in their name, without prior written permission of the
+ Apache Software Foundation.
+
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
+ DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+ This software consists of voluntary contributions made by many individuals
+ on behalf of the Apache Software Foundation and was originally created by
+ James Tauber <jtauber@jtauber.com>. For more information on the Apache
+ Software Foundation, please see <http://www.apache.org/>.
+
+ */
+package org.apache.fop.dom.svg;
+
+import org.apache.fop.fo.Property;
+
+import java.util.*;
+
+import org.w3c.dom.svg.*;
+
+/**
+ *
+ */
+public class SVGAnimatedNumberImpl implements SVGAnimatedNumber {
+ float base = 0;
+
+ public SVGAnimatedNumberImpl(float b)
+ {
+ base = b;
+ }
+
+ public float getBaseVal()
+ {
+ return base;
+ }
+
+ public void setBaseVal(float baseVal)
+ {
+ base = baseVal;
+ }
+
+ public float getAnimVal()
+ {
+ return base;
+ }
+}
--- /dev/null
+/*-- $Id$ --
+
+ ============================================================================
+ The Apache Software License, Version 1.1
+ ============================================================================
+
+ Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modifica-
+ tion, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ 3. The end-user documentation included with the redistribution, if any, must
+ include the following acknowledgment: "This product includes software
+ developed by the Apache Software Foundation (http://www.apache.org/)."
+ Alternately, this acknowledgment may appear in the software itself, if
+ and wherever such third-party acknowledgments normally appear.
+
+ 4. The names "FOP" and "Apache Software Foundation" must not be used to
+ endorse or promote products derived from this software without prior
+ written permission. For written permission, please contact
+ apache@apache.org.
+
+ 5. Products derived from this software may not be called "Apache", nor may
+ "Apache" appear in their name, without prior written permission of the
+ Apache Software Foundation.
+
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
+ DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+ This software consists of voluntary contributions made by many individuals
+ on behalf of the Apache Software Foundation and was originally created by
+ James Tauber <jtauber@jtauber.com>. For more information on the Apache
+ Software Foundation, please see <http://www.apache.org/>.
+
+ */
+package org.apache.fop.dom.svg;
+
+import java.util.*;
+
+import org.w3c.dom.svg.*;
+import org.w3c.dom.*;
+
+/**
+ * Transform List
+ */
+public class SVGAnimatedTransformListImpl implements SVGAnimatedTransformList {
+ SVGTransformList base;
+
+ public SVGAnimatedTransformListImpl()
+ {
+ }
+
+ public SVGTransformList getBaseVal( )
+ {
+ return base;
+ }
+
+ public void setBaseVal(SVGTransformList baseVal )
+ {
+ base = baseVal;
+ }
+
+ public SVGTransformList getAnimVal()
+ {
+ return null;
+ }
+}
return (GraphicImpl)obj;
}
- public Hashtable getStyle()
+ public Hashtable oldgetStyle()
{
Hashtable ret = null;
if(parent != null) {
- ret = parent.getStyle();
+ ret = parent.oldgetStyle();
if(ret != null)
ret = (Hashtable)ret.clone();
}
*
*/
public class SVGCircleElementImpl extends GraphicElement implements SVGCircleElement {
- private SVGLength cx;
- private SVGLength cy;
- private SVGLength r;
+ private SVGAnimatedLength cx;
+ private SVGAnimatedLength cy;
+ private SVGAnimatedLength r;
/**
*/
{
}
- public String getClassName( )
+/* public String getClassName( )
{
return null;
}
public void setClassName( String className )
{
- }
+ }*/
- public SVGLength getCx( )
+ public SVGAnimatedLength getCx( )
{
return cx;
}
- public void setCx( SVGLength cx )
+ public void setCx( SVGAnimatedLength cx )
{
this.cx = cx;
}
- public SVGLength getCy( )
+ public SVGAnimatedLength getCy( )
{
return cy;
}
- public void setCy( SVGLength cy )
+ public void setCy( SVGAnimatedLength cy )
{
this.cy = cy;
}
- public SVGLength getR( )
+ public SVGAnimatedLength getR( )
{
return r;
}
- public void setR( SVGLength r )
+ public void setR( SVGAnimatedLength r )
{
this.r = r;
}
*/
public class SVGClipPathElementImpl extends GraphicElement implements SVGClipPathElement {
public Vector elements;
- short units;
+ SVGAnimatedEnumeration units;
public void addElement(GraphicImpl g)
{
{
}
- public short getClipPathUnits( )
+ public SVGAnimatedEnumeration getClipPathUnits( )
{
return units;
}
- public void setClipPathUnits(short clipPathUnits)
+ public void setClipPathUnits(SVGAnimatedEnumeration clipPathUnits)
{
units = clipPathUnits;
}
*
*/
public class SVGCursorElementImpl extends SVGURIReferenceImpl implements SVGCursorElement {
- SVGLength x;
- SVGLength y;
+ SVGAnimatedLength x;
+ SVGAnimatedLength y;
public SVGCursorElementImpl()
{
}
- public SVGLength getX( )
+ public SVGAnimatedLength getX( )
{
return x;
}
- public void setX( SVGLength x )
+ public void setX( SVGAnimatedLength x )
{
this.x = x;
}
- public SVGLength getY( )
+ public SVGAnimatedLength getY( )
{
return y;
}
- public void setY( SVGLength y )
+ public void setY( SVGAnimatedLength y )
{
this.y = y;
}
import org.apache.fop.datatypes.*;
+import org.w3c.dom.css.CSSStyleDeclaration;
+import org.w3c.dom.css.CSSValue;
import org.w3c.dom.svg.*;
import org.w3c.dom.*;
return null;
}
- public String getClassName()
+/* public String getClassName()
{
return null;
}
public void setClassName(String n)
{
- }
+ }*/
public String getNodeValue() throws DOMException
{
return null;
}
+ public SVGAnimatedString getClassName( )
+ {
+ return null;
+ }
+
+ public void setClassName( SVGAnimatedString className )
+ {
+ }
+
+ public CSSValue getPresentationAttribute ( String name )
+ {
+ return null;
+ }
+
+ public CSSValue getAnimatedPresentationAttribute ( String name )
+ {
+ return null;
+ }
+
+ public CSSStyleDeclaration getStyle( )
+ {
+ return null;
+ }
+
GraphicImpl parent = null;
public GraphicImpl getGraphicParent()
{
style = st;
}
- public Hashtable getStyle()
+ public Hashtable oldgetStyle()
{
Hashtable ret = null;
if(parent != null) {
- ret = parent.getStyle();
+ ret = parent.oldgetStyle();
if(ret != null)
ret = (Hashtable)ret.clone();
}
}
return ret;*/
}
+
+ public SVGAnimatedBoolean getExternalResourcesRequired( )
+ {
+ return null;
+ }
+
+ public void setExternalResourcesRequired( SVGAnimatedBoolean externalResourcesRequired )
+ {
+ }
}
*
*/
public class SVGEllipseElementImpl extends GraphicElement implements SVGEllipseElement {
- private SVGLength cx;
- private SVGLength cy;
- private SVGLength rx;
- private SVGLength ry;
+ private SVGAnimatedLength cx;
+ private SVGAnimatedLength cy;
+ private SVGAnimatedLength rx;
+ private SVGAnimatedLength ry;
/**
*/
{
}
- public String getClassName( )
+/* public String getClassName( )
{
return null;
}
public void setClassName( String className )
{
- }
- public SVGLength getCx( )
+ }*/
+ public SVGAnimatedLength getCx( )
{
return cx;
}
- public void setCx( SVGLength cx )
+ public void setCx( SVGAnimatedLength cx )
{
this.cx = cx;
}
- public SVGLength getCy( )
+ public SVGAnimatedLength getCy( )
{
return cy;
}
- public void setCy( SVGLength cy )
+ public void setCy( SVGAnimatedLength cy )
{
this.cy = cy;
}
- public SVGLength getRx( )
+ public SVGAnimatedLength getRx( )
{
return rx;
}
- public void setRx( SVGLength rx )
+ public void setRx( SVGAnimatedLength rx )
{
this.rx = rx;
}
- public SVGLength getRy( )
+ public SVGAnimatedLength getRy( )
{
return ry;
}
- public void setRy( SVGLength ry )
+ public void setRy( SVGAnimatedLength ry )
{
this.ry = ry;
}
{
}
- public short getFilterUnits( )
+ public SVGAnimatedEnumeration getFilterUnits( )
{
- return 0;
+ return null;
}
- public void setFilterUnits( short filterUnits )
+ public void setFilterUnits( SVGAnimatedEnumeration filterUnits )
{
}
- public SVGLength getX( )
+ public SVGAnimatedEnumeration getPrimitiveUnits( )
{
return null;
}
- public void setX( SVGLength x )
+ public void setPrimitiveUnits( SVGAnimatedEnumeration filterUnits )
{
}
- public SVGLength getY( )
+ public SVGAnimatedLength getX( )
{
return null;
}
- public void setY( SVGLength y )
+ public void setX( SVGAnimatedLength x )
{
}
- public SVGLength getWidth( )
+ public SVGAnimatedLength getY( )
{
return null;
}
- public void setWidth( SVGLength width )
+ public void setY( SVGAnimatedLength y )
{
}
- public SVGLength getHeight( )
+ public SVGAnimatedLength getWidth( )
{
return null;
}
- public void setHeight( SVGLength height )
+ public void setWidth( SVGAnimatedLength width )
{
}
- public SVGInteger getFilterResX( )
+ public SVGAnimatedLength getHeight( )
{
return null;
}
- public SVGInteger getFilterResY( )
+ public void setHeight( SVGAnimatedLength height )
+ {
+ }
+
+ public SVGAnimatedInteger getFilterResX( )
{
return null;
}
+ public SVGAnimatedInteger getFilterResY( )
+ {
+ return null;
+ }
+
+ public void setFilterResX( SVGAnimatedInteger filterResX )
+ {
+ }
+
+ public void setFilterResY( SVGAnimatedInteger filterResY )
+ {
+ }
public void setFilterRes ( int filterResX, int filterResY )
- throws SVGException
{
}
}
*/
public class SVGGradientElementImpl extends SVGURIReferenceImpl implements SVGGradientElement {
/*
-SVG_UNIT_TYPE_UNKNOWN
-SVG_UNIT_TYPE_USERSPACE
-SVG_UNIT_TYPE_USERSPACEONUSE
-SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
+SVG_SPREADMETHOD_UNKNOWN;
+SVG_SPREADMETHOD_PAD;
+SVG_SPREADMETHOD_REFLECT;
+SVG_SPREADMETHOD_REPEAT;
*/
- short units = SVG_UNIT_TYPE_UNKNOWN;
+ SVGAnimatedEnumeration units = new SVGAnimatedEnumerationImpl(SVG_UNIT_TYPE_UNKNOWN);
public SVGGradientElementImpl()
{
}
- public short getGradientUnits( )
+ public SVGAnimatedEnumeration getGradientUnits( )
{
return units;
}
- public void setGradientUnits(short gradientUnits)
+ public void setGradientUnits(SVGAnimatedEnumeration gradientUnits)
{
units = gradientUnits;
}
- public SVGTransformList getGradientTransform()
+ public SVGAnimatedTransformList getGradientTransform()
{
return null;
}
- public void setGradientTransform(SVGTransformList gradientTransform)
+ public void setGradientTransform(SVGAnimatedTransformList gradientTransform)
+ {
+ }
+
+ public SVGAnimatedEnumeration getSpreadMethod( )
+ {
+ return null;
+ }
+
+ public void setSpreadMethod( SVGAnimatedEnumeration spreadMethod )
+ {
+ }
+
+ public SVGAnimatedBoolean getExternalResourcesRequired( )
+ {
+ return null;
+ }
+
+ public void setExternalResourcesRequired( SVGAnimatedBoolean externalResourcesRequired )
{
}
}
* class representing a line in an SVG Area
*/
public class SVGLineElementImpl extends GraphicElement implements SVGLineElement {
+ /** x-coordinate of start */
+ protected SVGAnimatedLength x1;
+
+ /** y-coordinate of start */
+ protected SVGAnimatedLength y1;
+
+ /** x-coordinate of end */
+ protected SVGAnimatedLength x2;
+
+ /** y-coordinate of end */
+ protected SVGAnimatedLength y2;
+
+ /**
+ * construct a line graphic
+ *
+ * @param x1 x-coordinate of start
+ * @param y1 y-coordinate of start
+ * @param x2 x-coordinate of end
+ * @param y2 y-coordinate of end
+ */
+ public SVGLineElementImpl()
+ {
+ }
- public SVGLength getX1( )
+ public SVGAnimatedLength getX1( )
{
return x1;
}
- public void setX1( SVGLength x1 )
+ public void setX1( SVGAnimatedLength x1 )
{
this.x1 = x1;
}
- public SVGLength getY1( )
+ public SVGAnimatedLength getY1( )
{
return y1;
}
- public void setY1( SVGLength y1 )
+ public void setY1( SVGAnimatedLength y1 )
{
this.y1 = y1;
}
- public SVGLength getX2( )
+ public SVGAnimatedLength getX2( )
{
return x2;
}
- public void setX2( SVGLength x2 )
+ public void setX2( SVGAnimatedLength x2 )
{
this.x2 = x2;
}
- public SVGLength getY2( )
+ public SVGAnimatedLength getY2( )
{
return y2;
}
- public void setY2( SVGLength y2 )
+ public void setY2( SVGAnimatedLength y2 )
{
this.y2 = y2;
}
-
- /** x-coordinate of start */
- protected SVGLength x1;
-
- /** y-coordinate of start */
- protected SVGLength y1;
-
- /** x-coordinate of end */
- protected SVGLength x2;
-
- /** y-coordinate of end */
- protected SVGLength y2;
-
- /**
- * construct a line graphic
- *
- * @param x1 x-coordinate of start
- * @param y1 y-coordinate of start
- * @param x2 x-coordinate of end
- * @param y2 y-coordinate of end
- */
- public SVGLineElementImpl()
- {
- }
}
public class SVGLinearGradientElementImpl extends SVGGradientElementImpl
implements SVGLinearGradientElement {
- SVGLength x1;
- SVGLength x2;
- SVGLength y1;
- SVGLength y2;
- short spreadMethod;
+ SVGAnimatedLength x1;
+ SVGAnimatedLength x2;
+ SVGAnimatedLength y1;
+ SVGAnimatedLength y2;
+// short spreadMethod;
public SVGLinearGradientElementImpl()
{
}
- public SVGLength getX1()
+ public SVGAnimatedLength getX1()
{
return x1;
}
- public void setX1(SVGLength x1)
+ public void setX1(SVGAnimatedLength x1)
{
this.x1 = x1;
}
- public SVGLength getY1()
+ public SVGAnimatedLength getY1()
{
return y1;
}
- public void setY1(SVGLength y1)
+ public void setY1(SVGAnimatedLength y1)
{
this.y1 = y1;
}
- public SVGLength getX2()
+ public SVGAnimatedLength getX2()
{
return x2;
}
- public void setX2(SVGLength x2)
+ public void setX2(SVGAnimatedLength x2)
{
this.x2 = x2;
}
- public SVGLength getY2()
+ public SVGAnimatedLength getY2()
{
return y2;
}
- public void setY2(SVGLength y2)
+ public void setY2(SVGAnimatedLength y2)
{
this.y2 = y2;
}
- public short getSpreadMethod()
+/* public short getSpreadMethod()
{
return spreadMethod;
}
public void setSpreadMethod(short spreadMethod)
{
this.spreadMethod = spreadMethod;
- }
+ }*/
}
/**
*
*/
-class SVGListImpl implements SVGList {
+public class SVGListImpl implements SVGList {
Vector list = new Vector();
public int getNumberOfItems( )
return obj;
}
- public Object insertBefore(Object newItem, int index)
+ public Object insertItemBefore(Object newItem, int index)
throws SVGException
{
return null;
}
- public Object replace(Object newItem, int index)
+ public Object replaceItem(Object newItem, int index)
throws DOMException, SVGException
{
return null;
}
- public Object remove(int index)
+ public Object removeItem(int index)
throws DOMException
{
Object obj = list.elementAt(index);
return obj;
}
- public Object append(Object newItem)
+ public Object appendItem(Object newItem)
throws SVGException
{
list.addElement(newItem);
*
*/
public class SVGMarkerElementImpl extends GraphicElement implements SVGMarkerElement {
- short units;
- short otype;
+ SVGAnimatedEnumeration units;
+ SVGAnimatedEnumeration otype;
public SVGMarkerElementImpl()
{
}
- public short getMarkerUnits( )
+ public SVGAnimatedEnumeration getMarkerUnits( )
{
return units;
}
- public short getOrientType( )
+ public SVGAnimatedEnumeration getOrientType( )
{
return otype;
}
- public SVGAngle getOrientAngle( )
+ public SVGAnimatedAngle getOrientAngle( )
{
return null;
}
- public SVGLength getRefX( )
+ public SVGAnimatedLength getRefX( )
{
return null;
}
- public void setRefX( SVGLength refX )
+ public void setRefX(SVGAnimatedLength refX)
{
}
- public SVGLength getRefY( )
+ public SVGAnimatedLength getRefY( )
{
return null;
}
- public void setRefY( SVGLength refY )
+ public void setRefY( SVGAnimatedLength refY )
{
}
- public SVGLength getMarkerWidth( )
+ public SVGAnimatedLength getMarkerWidth( )
{
return null;
}
- public void setMarkerWidth( SVGLength markerWidth )
+ public void setMarkerWidth( SVGAnimatedLength markerWidth )
{
}
- public SVGLength getMarkerHeight( )
+ public SVGAnimatedLength getMarkerHeight( )
{
return null;
}
- public void setMarkerHeight( SVGLength markerHeight )
+ public void setMarkerHeight( SVGAnimatedLength markerHeight )
{
}
{
}
- public SVGRect getViewBox( )
+ public SVGAnimatedRect getViewBox( )
{
return null;
}
- public void setViewBox( SVGRect viewBox )
+ public void setViewBox( SVGAnimatedRect viewBox )
{
}
- public SVGPreserveAspectRatio getPreserveAspectRatio( )
+ public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( )
{
return null;
}
- public void setPreserveAspectRatio( SVGPreserveAspectRatio preserveAspectRatio )
+ public void setPreserveAspectRatio( SVGAnimatedPreserveAspectRatio preserveAspectRatio )
+ {
+ }
+
+ public void setMarkerUnits( SVGAnimatedEnumeration markerUnits )
{
}
}
float b = 0.0f;
float c = 0.0f;
float d = 1.0f;
- SVGLength e = new SVGLengthImpl();
- SVGLength f = new SVGLengthImpl();
+ float e = 0.0f;
+ float f = 0.0f;
public SVGMatrixImpl()
{
this.d = d;
}
- public SVGLength getE( )
+ public float getE( )
{
return e;
}
- public void setE( SVGLength e )
+ public void setE( float e )
{
this.e = e;
}
- public SVGLength getF( )
+ public float getF( )
{
return f;
}
- public void setF( SVGLength f )
+ public void setF( float f )
{
this.f = f;
}
mat.setC(c * secondMatrix.getA() + d * secondMatrix.getC());
mat.setD(c * secondMatrix.getB() + d * secondMatrix.getD());
// e,f?
- SVGLengthImpl len;
- len = new SVGLengthImpl();
- len.setValue(e.getValue() + secondMatrix.getE().getValue());
- mat.setE(len);
- len = new SVGLengthImpl();
- len.setValue(f.getValue() + secondMatrix.getF().getValue());
- mat.setF(len);
+ mat.setE(e + secondMatrix.getE());
+ mat.setF(f + secondMatrix.getF());
return mat;
}
mat.setC((float)(-c / det));
mat.setD((float)(a / det));
// e,f?
- SVGLengthImpl len;
- len = new SVGLengthImpl();
- len.setValue(-e.getValue());
- mat.setE(len);
- len = new SVGLengthImpl();
- len.setValue(-f.getValue());
- mat.setF(len);
+ mat.setE(-e);
+ mat.setF(-f);
return mat;
}
break;
}*/
- public SVGMatrix translate ( SVGLength x, SVGLength y )
+ public SVGMatrix translate ( float x, float y )
throws SVGException
{
SVGMatrix matrix = new SVGMatrixImpl();
matrix.setB(b);
matrix.setC(c);
matrix.setD(d);
- SVGLength len;
- len = new SVGLengthImpl();
- len.setValue(e.getValue() + x.getValue());
- matrix.setE(len);
- len = new SVGLengthImpl();
- len.setValue(f.getValue() + y.getValue());
- matrix.setF(len);
+ matrix.setE(e + x);
+ matrix.setF(f + y);
return matrix;
}
return matrix;
}
- public SVGMatrix rotate ( SVGAngle angle )
+ public SVGMatrix rotate ( float angle )
throws SVGException
{
SVGMatrix matrix = new SVGMatrixImpl();
- matrix.setA((float)Math.cos(angle.getValue()));
- matrix.setB((float)Math.sin(angle.getValue()));
- matrix.setC((float)-Math.sin(angle.getValue()));
- matrix.setD((float)Math.cos(angle.getValue()));
+ matrix.setA((float)Math.cos(angle));
+ matrix.setB((float)Math.sin(angle));
+ matrix.setC((float)-Math.sin(angle));
+ matrix.setD((float)Math.cos(angle));
return multiply(matrix);
}
- public SVGMatrix rotateFromVector(SVGLength x, SVGLength y) throws SVGException
+ public SVGMatrix rotateFromVector(float x, float y) throws SVGException
{
return null;
}
return null;
}
- public SVGMatrix skewX(SVGAngle angle) throws SVGException
+ public SVGMatrix skewX(float angle) throws SVGException
{
SVGMatrix matrix = new SVGMatrixImpl();
matrix.setA(1);
- matrix.setB((float)Math.sin(angle.getValue()));
+ matrix.setB((float)Math.sin(angle));
matrix.setC(0);
matrix.setD(1);
return multiply(matrix);
}
- public SVGMatrix skewY(SVGAngle angle) throws SVGException
+ public SVGMatrix skewY(float angle) throws SVGException
{
SVGMatrix matrix = new SVGMatrixImpl();
matrix.setA(1);
matrix.setB(0);
- matrix.setC((float)-Math.sin(angle.getValue()));
+ matrix.setC((float)-Math.sin(angle));
matrix.setD(1);
return multiply(matrix);
}
public String toString()
{
return "[" + getA() + " " + getB() + " " + getC()
- + " " + getD() + " " + getE().getValue() + " " + getF().getValue() + "]";
+ + " " + getD() + " " + getE() + " " + getF() + "]";
}
}
this.pathElements = v;
}
- public SVGNumber getLength()
+ public SVGAnimatedNumber getPathLength()
{
return null;
}
- public void setLength( SVGNumber length )
+ public void setPathLength( SVGAnimatedNumber length )
{
}
return 0;
}
- public SVGPathSeg createSVGPathSeg()
+ public short getPathSegType( )
+ {
+ return 0;
+ }
+
+ public String getPathSegTypeAsLetter( )
+ {
+ return null;
+ }
+
+ public SVGPathSegClosePath createSVGPathSegClosePath ( )
+ {
+ return null;
+ }
+
+ public SVGPathSegMovetoAbs createSVGPathSegMovetoAbs ( float x, float y )
+ {
+ return null;
+ }
+
+ public SVGPathSegMovetoRel createSVGPathSegMovetoRel ( float x, float y )
+ {
+ return null;
+ }
+
+ public SVGPathSegLinetoAbs createSVGPathSegLinetoAbs ( float x, float y )
+ {
+ return null;
+ }
+
+ public SVGPathSegLinetoRel createSVGPathSegLinetoRel ( float x, float y )
+ {
+ return null;
+ }
+
+ public SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs ( float x, float y, float x1, float y1, float x2, float y2 )
+ {
+ return null;
+ }
+
+ public SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel ( float x, float y, float x1, float y1, float x2, float y2 )
+ {
+ return null;
+ }
+
+ public SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs ( float x, float y, float x1, float y1 )
+ {
+ return null;
+ }
+
+ public SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel ( float x, float y, float x1, float y1 )
+ {
+ return null;
+ }
+
+ public SVGPathSegArcAbs createSVGPathSegArcAbs ( float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag )
+ {
+ return null;
+ }
+
+ public SVGPathSegArcRel createSVGPathSegArcRel ( float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag )
+ {
+ return null;
+ }
+
+ public SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs ( float x )
+ {
+ return null;
+ }
+
+ public SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel ( float x )
+ {
+ return null;
+ }
+
+ public SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs ( float y )
+ {
+ return null;
+ }
+
+ public SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel ( float y )
+ {
+ return null;
+ }
+
+ public SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs ( float x, float y, float x2, float y2 )
+ {
+ return null;
+ }
+
+ public SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel ( float x, float y, float x2, float y2 )
+ {
+ return null;
+ }
+
+ public SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs ( float x, float y )
+ {
+ return null;
+ }
+
+ public SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel ( float x, float y )
+ {
+ return null;
+ }
+
+ public SVGList getAnimatedPathSegList( )
+ {
+ return null;
+ }
+
+ public SVGList getAnimatedNormalizedPathSegList( )
{
return null;
}
{
}
- public float getX( )
+/* public float getX( )
{
return 0;
}
public void setSweepFlag( boolean sweepFlag )
{
- }
+ }*/
}
public SVGPatternElementImpl() {
}
- public short getPatternUnits( )
+ public SVGAnimatedEnumeration getPatternUnits( )
{
- return 0;
+ return null;
}
- public void setPatternUnits( short patternUnits )
+ public void setPatternUnits( SVGAnimatedEnumeration patternUnits )
{
}
- public SVGTransformList getPatternTransform( )
+ public SVGAnimatedTransformList getPatternTransform( )
{
return null;
}
- public void setPatternTransform( SVGTransformList patternTransform )
+ public void setPatternTransform( SVGAnimatedTransformList patternTransform )
{
}
- public SVGLength getX( )
+ public SVGAnimatedLength getX( )
{
return null;
}
- public void setX( SVGLength x )
+ public void setX( SVGAnimatedLength x )
{
}
- public SVGLength getY( )
+ public SVGAnimatedLength getY( )
{
return null;
}
- public void setY( SVGLength y )
+ public void setY( SVGAnimatedLength y )
{
}
- public SVGLength getWidth( )
+ public SVGAnimatedLength getWidth( )
{
return null;
}
- public void setWidth( SVGLength width )
+ public void setWidth( SVGAnimatedLength width )
{
}
- public SVGLength getHeight( )
+ public SVGAnimatedLength getHeight( )
{
return null;
}
- public void setHeight( SVGLength height )
+ public void setHeight( SVGAnimatedLength height )
{
}
- public SVGRect getViewBox( )
+ public SVGAnimatedRect getViewBox( )
{
return null;
}
- public void setViewBox( SVGRect viewBox )
+ public void setViewBox( SVGAnimatedRect viewBox )
{
}
- public SVGPreserveAspectRatio getPreserveAspectRatio( )
+ public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( )
{
return null;
}
- public void setPreserveAspectRatio( SVGPreserveAspectRatio preserveAspectRatio)
+ public void setPreserveAspectRatio( SVGAnimatedPreserveAspectRatio preserveAspectRatio)
{
}
}
{
return null;
}
+
+ public SVGList getAnimatedPoints( )
+ {
+ return null;
+ }
}
{
return null;
}
+
+ public SVGList getAnimatedPoints( )
+ {
+ return null;
+ }
+
+/* public SVGAnimatedBoolean getExternalResourcesRequired( )
+ {
+ return null;
+ }
+
+ public void setExternalResourcesRequired( SVGAnimatedBoolean externalResourcesRequired )
+ {
+ }*/
}
*
*/
public class SVGRadialGradientElementImpl extends SVGGradientElementImpl implements SVGRadialGradientElement {
- SVGLength cx;
- SVGLength cy;
- SVGLength r;
- SVGLength fx;
- SVGLength fy;
+ SVGAnimatedLength cx;
+ SVGAnimatedLength cy;
+ SVGAnimatedLength r;
+ SVGAnimatedLength fx;
+ SVGAnimatedLength fy;
public SVGRadialGradientElementImpl()
{
}
- public SVGLength getCx()
+ public SVGAnimatedLength getCx()
{
return cx;
}
- public void setCx(SVGLength cx)
+ public void setCx(SVGAnimatedLength cx)
{
this.cx = cx;
}
- public SVGLength getCy()
+ public SVGAnimatedLength getCy()
{
return cy;
}
- public void setCy(SVGLength cy)
+ public void setCy(SVGAnimatedLength cy)
{
this.cy = cy;
}
- public SVGLength getR()
+ public SVGAnimatedLength getR()
{
return r;
}
- public void setR(SVGLength r)
+ public void setR(SVGAnimatedLength r)
{
this.r = r;
}
- public SVGLength getFx()
+ public SVGAnimatedLength getFx()
{
return fx;
}
- public void setFx(SVGLength fx)
+ public void setFx(SVGAnimatedLength fx)
{
this.fx = fx;
}
- public SVGLength getFy()
+ public SVGAnimatedLength getFy()
{
return fy;
}
- public void setFy(SVGLength fy)
+ public void setFy(SVGAnimatedLength fy)
{
this.fy = fy;
}
public class SVGRectElementImpl extends GraphicElement implements SVGRectElement {
/** x-coordinate of corner */
- private SVGLength x;
+ private SVGAnimatedLength x;
/** y-coordinate of corner */
- private SVGLength y;
+ private SVGAnimatedLength y;
/** width of rectangle */
- private SVGLength width;
+ private SVGAnimatedLength width;
/** height of rectangle */
- private SVGLength height;
+ private SVGAnimatedLength height;
/**
* construct a rectangle graphic.
public SVGRect getBBox()
{
SVGRect rect = new SVGRectImpl();
- SVGNumber num;
- num = new SVGNumberImpl();
- num.setValue(x.getValue());
- rect.setX(num);
- num = new SVGNumberImpl();
- num.setValue(y.getValue());
- rect.setY(num);
- num = new SVGNumberImpl();
- num.setValue(width.getValue());
- rect.setWidth(num);
- num = new SVGNumberImpl();
- num.setValue(height.getValue());
- rect.setHeight(num);
+ rect.setX(x.getBaseVal().getValue());
+ rect.setY(y.getBaseVal().getValue());
+ rect.setWidth(width.getBaseVal().getValue());
+ rect.setHeight(height.getBaseVal().getValue());
return rect;
}
- public SVGLength getX( )
+ public SVGAnimatedLength getX( )
{
return x;
}
- public void setX( SVGLength x )
+ public void setX( SVGAnimatedLength x )
{
this.x = x;
}
- public SVGLength getY( )
+ public SVGAnimatedLength getY( )
{
return y;
}
- public void setY( SVGLength y )
+ public void setY( SVGAnimatedLength y )
{
this.y = y;
}
- public SVGLength getWidth( )
+ public SVGAnimatedLength getWidth( )
{
return width;
}
- public void setWidth( SVGLength width )
+ public void setWidth( SVGAnimatedLength width )
{
this.width = width;
}
- public SVGLength getHeight( )
+ public SVGAnimatedLength getHeight( )
{
return height;
}
- public void setHeight( SVGLength height )
+ public void setHeight( SVGAnimatedLength height )
{
this.height = height;
}
- public SVGLength getRx( )
+ public SVGAnimatedLength getRx( )
{
return null;
}
- public void setRx( SVGLength rx )
+ public void setRx( SVGAnimatedLength rx )
{
}
- public SVGLength getRy( )
+ public SVGAnimatedLength getRy( )
{
return null;
}
- public void setRy( SVGLength ry )
+ public void setRy( SVGAnimatedLength ry )
{
}
}
*
*/
public class SVGRectImpl implements SVGRect {
- SVGNumber x;
- SVGNumber y;
- SVGNumber width;
- SVGNumber height;
+ float x;
+ float y;
+ float width;
+ float height;
- SVGRectImpl()
+ public SVGRectImpl()
{
}
- public SVGNumber getX( )
+ public float getX( )
{
return x;
}
- public void setX( SVGNumber x )
+ public void setX(float x )
{
this.x = x;
}
- public SVGNumber getY( )
+ public float getY( )
{
return y;
}
- public void setY( SVGNumber y )
+ public void setY(float y )
{
this.y = y;
}
- public SVGNumber getWidth( )
+ public float getWidth( )
{
return width;
}
- public void setWidth( SVGNumber width )
+ public void setWidth(float width )
{
this.width = width;
}
- public SVGNumber getHeight( )
+ public float getHeight( )
{
return height;
}
- public void setHeight( SVGNumber height )
+ public void setHeight(float height )
{
this.height = height;
}
*
*/
public class SVGStopElementImpl extends SVGElementImpl implements SVGStopElement {
- float offset;
+ SVGAnimatedNumber offset;
public SVGStopElementImpl()
{
}
- public float getOffset()
+ public SVGAnimatedNumber getOffset()
{
return offset;
}
- public void setOffset(float offset)
+ public void setOffset(SVGAnimatedNumber offset)
{
this.offset = offset;
}
{
this.type = type;
}
+
+ public String getMedia( )
+ {
+ return null;
+ }
+
+ public void setMedia( String media )
+ {
+ }
+
+ public String getTitle( )
+ {
+ return null;
+ }
+
+ public void setTitle( String title )
+ {
+ }
}
{
}
- public SVGRect getViewBox()
+ public SVGAnimatedRect getViewBox()
{
return null;
}
- public void setViewBox(SVGRect viewBox)
+ public void setViewBox(SVGAnimatedRect viewBox)
{
}
- public SVGPreserveAspectRatio getPreserveAspectRatio( )
+ public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( )
{
return null;
}
- public void setPreserveAspectRatio(SVGPreserveAspectRatio preserveAspectRatio)
+ public void setPreserveAspectRatio(SVGAnimatedPreserveAspectRatio preserveAspectRatio)
{
}
}
return matrix;
}
- public SVGAngle getAngle( )
+ public float getAngle( )
{
- return null;
+ return 0.0f;
}
public void setMatrix ( SVGMatrix matrix )
- throws SVGException
{
this.matrix = matrix;
}
- public void setTranslate ( SVGLength tx, SVGLength ty )
+ public void setTranslate ( float tx, float ty )
throws SVGException
{
matrix.setE(tx);
matrix.setF(ty);
}
- public void setScale ( SVGNumber sx, SVGNumber sy )
+ public void setScale ( float sx, float sy )
throws SVGException
{
- matrix.setA(sx.getValue());
- matrix.setD(sy.getValue());
+ matrix.setA(sx);
+ matrix.setD(sy);
}
- public void setRotate ( SVGAngle angle )
+ public void setRotate (float angle, float cx, float cy)
throws SVGException
{
matrix = matrix.rotate(angle);
}
- public void setSkewX ( SVGAngle angle )
+ public void setSkewX ( float angle )
throws SVGException
{
matrix = matrix.skewX(angle);
}
- public void setSkewY ( SVGAngle angle )
+ public void setSkewY ( float angle )
throws SVGException
{
matrix = matrix.skewY(angle);
String xlinkTitle;
String xlinkShow;
String xlinkActuate;
- String href;
+ SVGAnimatedString href;
public String getXlinkType( )
{
this.xlinkActuate = xlinkActuate;
}
- public String getHref( )
+ public SVGAnimatedString getHref( )
{
return href;
}
- public void setHref( String href )
+ public void setHref( SVGAnimatedString href )
{
this.href = href;
}
+
+ public SVGAnimatedBoolean getExternalResourcesRequired()
+ {
+ return null;
+ }
+
+ public void setExternalResourcesRequired(SVGAnimatedBoolean externalResourcesRequired)
+ {
+ }
}
{
}
- public String getHref( )
+ public SVGAnimatedString getHref( )
{
return null;
}
- public void setHref( String href )
+ public void setHref( SVGAnimatedString href )
{
}
- public SVGLength getX( )
+ public SVGAnimatedLength getX( )
{
return null;
}
- public void setX( SVGLength x )
+ public void setX( SVGAnimatedLength x )
{
}
- public SVGLength getY( )
+ public SVGAnimatedLength getY( )
{
return null;
}
- public void setY( SVGLength y )
+ public void setY( SVGAnimatedLength y )
{
}
- public SVGLength getWidth( )
+ public SVGAnimatedLength getWidth( )
{
return null;
}
- public void setWidth( SVGLength width )
+ public void setWidth( SVGAnimatedLength width )
{
}
- public SVGLength getHeight( )
+ public SVGAnimatedLength getHeight( )
{
return null;
}
- public void setHeight( SVGLength height )
+ public void setHeight( SVGAnimatedLength height )
{
}
+
+ public SVGElementInstance getInstanceRoot( )
+ {
+ return null;
+ }
+
+ public SVGElementInstance getAnimatedInstanceRoot( )
+ {
+ return null;
+ }
+
+/* public SVGAnimatedBoolean getExternalResourcesRequired( )
+ {
+ }
+
+ public void setExternalResourcesRequired( SVGAnimatedBoolean externalResourcesRequired )
+ {
+ }*/
}
SVGLength cy = ((SVGLengthProperty)this.properties.get("cy")).getSVGLength();
SVGLength r = ((SVGLengthProperty)this.properties.get("r")).getSVGLength();
SVGCircleElementImpl graph = new SVGCircleElementImpl();
- graph.setCx(cx);
- graph.setCy(cy);
- graph.setR(r);
+ graph.setCx(new SVGAnimatedLengthImpl(cx));
+ graph.setCy(new SVGAnimatedLengthImpl(cy));
+ graph.setR(new SVGAnimatedLengthImpl(r));
graph.setStyle(((SVGStyle)this.properties.get("style")).getStyle());
graph.setTransform(((SVGTransform)this.properties.get("transform")).oldgetTransform());
graph.setId(this.properties.get("id").getString());
SVGLength rx = ((SVGLengthProperty)this.properties.get("rx")).getSVGLength();
SVGLength ry = ((SVGLengthProperty)this.properties.get("ry")).getSVGLength();
SVGEllipseElementImpl graph = new SVGEllipseElementImpl();
- graph.setCx(cx);
- graph.setCy(cy);
- graph.setRx(rx);
- graph.setRy(ry);
+ graph.setCx(new SVGAnimatedLengthImpl(cx));
+ graph.setCy(new SVGAnimatedLengthImpl(cy));
+ graph.setRx(new SVGAnimatedLengthImpl(rx));
+ graph.setRy(new SVGAnimatedLengthImpl(ry));
graph.setStyle(((SVGStyle)this.properties.get("style")).getStyle());
graph.setTransform(((SVGTransform)this.properties.get("transform")).oldgetTransform());
graph.setId(this.properties.get("id").getString());
// FOP
import org.apache.fop.fo.*;
import org.apache.fop.messaging.MessageHandler;
-//import org.apache.fop.fo.properties.*;
import org.apache.fop.layout.Area;
import org.apache.fop.layout.FontState;
import org.apache.fop.apps.FOPException;
SVGLength y1 = ((SVGLengthProperty)this.properties.get("y1")).getSVGLength();
SVGLength y2 = ((SVGLengthProperty)this.properties.get("y2")).getSVGLength();
SVGLineElementImpl graph = new SVGLineElementImpl();
- graph.setX1(x1);
- graph.setY1(y1);
- graph.setX2(x2);
- graph.setY2(y2);
+ graph.setX1(new SVGAnimatedLengthImpl(x1));
+ graph.setY1(new SVGAnimatedLengthImpl(y1));
+ graph.setX2(new SVGAnimatedLengthImpl(x2));
+ graph.setY2(new SVGAnimatedLengthImpl(y2));
graph.setStyle(((SVGStyle)this.properties.get("style")).getStyle());
graph.setTransform(((SVGTransform)this.properties.get("transform")).oldgetTransform());
graph.setId(this.properties.get("id").getString());
linear.setTransform(((SVGTransform)this.properties.get("transform")).oldgetTransform());
linear.setId(this.properties.get("id").getString());
- linear.setX1(((SVGLengthProperty)this.properties.get("x1")).getSVGLength());
- linear.setX2(((SVGLengthProperty)this.properties.get("x2")).getSVGLength());
- linear.setY1(((SVGLengthProperty)this.properties.get("y1")).getSVGLength());
- linear.setY2(((SVGLengthProperty)this.properties.get("y2")).getSVGLength());
+ linear.setX1(new SVGAnimatedLengthImpl(((SVGLengthProperty)this.properties.get("x1")).getSVGLength()));
+ linear.setX2(new SVGAnimatedLengthImpl(((SVGLengthProperty)this.properties.get("x2")).getSVGLength()));
+ linear.setY1(new SVGAnimatedLengthImpl(((SVGLengthProperty)this.properties.get("y1")).getSVGLength()));
+ linear.setY2(new SVGAnimatedLengthImpl(((SVGLengthProperty)this.properties.get("y2")).getSVGLength()));
// linear.setSpreadMethod(?);
return linear;
}
radial.setTransform(((SVGTransform)this.properties.get("transform")).oldgetTransform());
radial.setId(this.properties.get("id").getString());
- radial.setCx(((SVGLengthProperty)this.properties.get("cx")).getSVGLength());
- radial.setCy(((SVGLengthProperty)this.properties.get("cy")).getSVGLength());
- radial.setR(((SVGLengthProperty)this.properties.get("r")).getSVGLength());
- radial.setFx(((SVGLengthProperty)this.properties.get("fx")).getSVGLength());
- radial.setFy(((SVGLengthProperty)this.properties.get("fy")).getSVGLength());
+ radial.setCx(new SVGAnimatedLengthImpl(((SVGLengthProperty)this.properties.get("cx")).getSVGLength()));
+ radial.setCy(new SVGAnimatedLengthImpl(((SVGLengthProperty)this.properties.get("cy")).getSVGLength()));
+ radial.setR(new SVGAnimatedLengthImpl(((SVGLengthProperty)this.properties.get("r")).getSVGLength()));
+ radial.setFx(new SVGAnimatedLengthImpl(((SVGLengthProperty)this.properties.get("fx")).getSVGLength()));
+ radial.setFy(new SVGAnimatedLengthImpl(((SVGLengthProperty)this.properties.get("fy")).getSVGLength()));
return radial;
}
SVGLength x = ((SVGLengthProperty)this.properties.get("x")).getSVGLength();
SVGLength y = ((SVGLengthProperty)this.properties.get("y")).getSVGLength();
SVGRectElementImpl graph = new SVGRectElementImpl();
- graph.setX(x);
- graph.setY(y);
- graph.setWidth(width);
- graph.setHeight(height);
+ graph.setX(new SVGAnimatedLengthImpl(x));
+ graph.setY(new SVGAnimatedLengthImpl(y));
+ graph.setWidth(new SVGAnimatedLengthImpl(width));
+ graph.setHeight(new SVGAnimatedLengthImpl(height));
graph.setStyle(((SVGStyle)this.properties.get("style")).getStyle());
graph.setTransform(((SVGTransform)this.properties.get("transform")).oldgetTransform());
graph.setId(this.properties.get("id").getString());
public class SVGElementMapping implements ElementMapping {
public void addToBuilder(FOTreeBuilder builder) {
- String uri = "http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd";
+ String uri = "http://www.w3.org/TR/2000/WD-SVG-20000629/DTD/svg-20000629.dtd";
builder.addMapping(uri, "svg", SVG.maker());
builder.addMapping(uri, "rect", Rect.maker());
builder.addMapping(uri, "line", Line.maker());
SVGStopElementImpl sse = new SVGStopElementImpl();
sse.setStyle(((SVGStyle)this.properties.get("style")).getStyle());
SVGLength offset = ((SVGLengthProperty)this.properties.get("offset")).getSVGLength();
- sse.setOffset(offset.getValue()); // what about percentages
+ sse.setOffset(new SVGAnimatedNumberImpl(offset.getValue())); // what about percentages
sse.setId(this.properties.get("id").getString());
return sse;
}