You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by lb...@apache.org on 2014/12/23 16:10:50 UTC
svn commit: r1647590 [11/24] - in
/xmlgraphics/batik/branches/submodules_cyclic_deps: ./
resources/META-INF/services/ resources/org/apache/batik/anim/dom/
resources/org/apache/batik/anim/dom/resources/
resources/org/apache/batik/apps/rasterizer/resourc...
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFESpecularLightingElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFESpecularLightingElement.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFESpecularLightingElement.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFESpecularLightingElement.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,167 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+import org.apache.batik.util.DoublyIndexedTable;
+import org.apache.batik.util.SVGTypes;
+
+import org.w3c.dom.Node;
+import org.w3c.dom.svg.SVGAnimatedNumber;
+import org.w3c.dom.svg.SVGAnimatedString;
+import org.w3c.dom.svg.SVGFESpecularLightingElement;
+
+/**
+ * This class implements {@link SVGFESpecularLightingElement}.
+ *
+ * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
+ * @version $Id$
+ */
+public class SVGOMFESpecularLightingElement
+ extends SVGOMFilterPrimitiveStandardAttributes
+ implements SVGFESpecularLightingElement {
+
+ /**
+ * Table mapping XML attribute names to TraitInformation objects.
+ */
+ protected static DoublyIndexedTable xmlTraitInformation;
+ static {
+ DoublyIndexedTable t =
+ new DoublyIndexedTable(SVGOMFilterPrimitiveStandardAttributes.xmlTraitInformation);
+ t.put(null, SVG_IN_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_CDATA));
+ t.put(null, SVG_SURFACE_SCALE_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_NUMBER));
+ t.put(null, SVG_SPECULAR_CONSTANT_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_NUMBER));
+ t.put(null, SVG_SPECULAR_EXPONENT_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_NUMBER));
+ xmlTraitInformation = t;
+ }
+
+ /**
+ * The 'in' attribute value.
+ */
+ protected SVGOMAnimatedString in;
+
+ /**
+ * The 'surfaceScale' attribute value.
+ */
+ protected SVGOMAnimatedNumber surfaceScale;
+
+ /**
+ * The 'specularConstant' attribute value.
+ */
+ protected SVGOMAnimatedNumber specularConstant;
+
+ /**
+ * The 'specularExponent' attribute value.
+ */
+ protected SVGOMAnimatedNumber specularExponent;
+
+ /**
+ * Creates a new SVGOMFESpecularLightingElement object.
+ */
+ protected SVGOMFESpecularLightingElement() {
+ }
+
+ /**
+ * Creates a new SVGOMFESpecularLightingElement object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ public SVGOMFESpecularLightingElement(String prefix,
+ AbstractDocument owner) {
+ super(prefix, owner);
+ initializeLiveAttributes();
+ }
+
+ /**
+ * Initializes all live attributes for this element.
+ */
+ protected void initializeAllLiveAttributes() {
+ super.initializeAllLiveAttributes();
+ initializeLiveAttributes();
+ }
+
+ /**
+ * Initializes the live attribute values of this element.
+ */
+ private void initializeLiveAttributes() {
+ in = createLiveAnimatedString(null, SVG_IN_ATTRIBUTE);
+ surfaceScale =
+ createLiveAnimatedNumber(null, SVG_SURFACE_SCALE_ATTRIBUTE, 1f);
+ specularConstant =
+ createLiveAnimatedNumber(null, SVG_SPECULAR_CONSTANT_ATTRIBUTE, 1f);
+ specularExponent =
+ createLiveAnimatedNumber(null, SVG_SPECULAR_EXPONENT_ATTRIBUTE, 1f);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link Node#getLocalName()}.
+ */
+ public String getLocalName() {
+ return SVG_FE_SPECULAR_LIGHTING_TAG;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFESpecularLightingElement#getIn1()}.
+ */
+ public SVGAnimatedString getIn1() {
+ return in;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link
+ * SVGFESpecularLightingElement#getSurfaceScale()}.
+ */
+ public SVGAnimatedNumber getSurfaceScale() {
+ return surfaceScale;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link
+ * SVGFESpecularLightingElement#getSpecularConstant()}.
+ */
+ public SVGAnimatedNumber getSpecularConstant() {
+ return specularConstant;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link
+ * SVGFESpecularLightingElement#getSpecularExponent()}.
+ */
+ public SVGAnimatedNumber getSpecularExponent() {
+ return specularExponent;
+ }
+
+ /**
+ * Returns a new uninitialized instance of this object's class.
+ */
+ protected Node newNode() {
+ return new SVGOMFESpecularLightingElement();
+ }
+
+ /**
+ * Returns the table of TraitInformation objects for this element.
+ */
+ protected DoublyIndexedTable getTraitInformationTable() {
+ return xmlTraitInformation;
+ }
+}
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFESpotLightElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFESpotLightElement.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFESpotLightElement.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFESpotLightElement.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,228 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+import org.apache.batik.util.DoublyIndexedTable;
+import org.apache.batik.util.SVGTypes;
+
+import org.w3c.dom.Node;
+import org.w3c.dom.svg.SVGAnimatedNumber;
+import org.w3c.dom.svg.SVGFESpotLightElement;
+
+/**
+ * This class implements {@link SVGFESpotLightElement}.
+ *
+ * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
+ * @version $Id$
+ */
+public class SVGOMFESpotLightElement
+ extends SVGOMElement
+ implements SVGFESpotLightElement {
+
+ /**
+ * Table mapping XML attribute names to TraitInformation objects.
+ */
+ protected static DoublyIndexedTable xmlTraitInformation;
+ static {
+ DoublyIndexedTable t =
+ new DoublyIndexedTable(SVGOMElement.xmlTraitInformation);
+ t.put(null, SVG_X_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_NUMBER));
+ t.put(null, SVG_Y_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_NUMBER));
+ t.put(null, SVG_Z_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_NUMBER));
+ t.put(null, SVG_POINTS_AT_X_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_NUMBER));
+ t.put(null, SVG_POINTS_AT_Y_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_NUMBER));
+ t.put(null, SVG_POINTS_AT_Z_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_NUMBER));
+ t.put(null, SVG_SPECULAR_EXPONENT_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_NUMBER));
+ t.put(null, SVG_LIMITING_CONE_ANGLE_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_NUMBER));
+ xmlTraitInformation = t;
+ }
+
+ /**
+ * The 'x' attribute value.
+ */
+ protected SVGOMAnimatedNumber x;
+
+ /**
+ * The 'y' attribute value.
+ */
+ protected SVGOMAnimatedNumber y;
+
+ /**
+ * The 'z' attribute value.
+ */
+ protected SVGOMAnimatedNumber z;
+
+ /**
+ * The 'pointsAtX' attribute value.
+ */
+ protected SVGOMAnimatedNumber pointsAtX;
+
+ /**
+ * The 'pointsAtY' attribute value.
+ */
+ protected SVGOMAnimatedNumber pointsAtY;
+
+ /**
+ * The 'pointsAtZ' attribute value.
+ */
+ protected SVGOMAnimatedNumber pointsAtZ;
+
+ /**
+ * The 'specularExponent' attribute value.
+ */
+ protected SVGOMAnimatedNumber specularExponent;
+
+ /**
+ * The 'limitingConeAngle' attribute value.
+ */
+ protected SVGOMAnimatedNumber limitingConeAngle;
+
+ /**
+ * Creates a new SVGOMFESpotLightElement object.
+ */
+ protected SVGOMFESpotLightElement() {
+ }
+
+ /**
+ * Creates a new SVGOMFESpotLightElement object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ public SVGOMFESpotLightElement(String prefix,
+ AbstractDocument owner) {
+ super(prefix, owner);
+ initializeLiveAttributes();
+ }
+
+ /**
+ * Initializes all live attributes for this element.
+ */
+ protected void initializeAllLiveAttributes() {
+ super.initializeAllLiveAttributes();
+ initializeLiveAttributes();
+ }
+
+ /**
+ * Initializes the live attribute values of this element.
+ */
+ private void initializeLiveAttributes() {
+ x = createLiveAnimatedNumber(null, SVG_X_ATTRIBUTE, 0f);
+ y = createLiveAnimatedNumber(null, SVG_Y_ATTRIBUTE, 0f);
+ z = createLiveAnimatedNumber(null, SVG_Z_ATTRIBUTE, 0f);
+ pointsAtX =
+ createLiveAnimatedNumber(null, SVG_POINTS_AT_X_ATTRIBUTE, 0f);
+ pointsAtY =
+ createLiveAnimatedNumber(null, SVG_POINTS_AT_Y_ATTRIBUTE, 0f);
+ pointsAtZ =
+ createLiveAnimatedNumber(null, SVG_POINTS_AT_Z_ATTRIBUTE, 0f);
+ specularExponent =
+ createLiveAnimatedNumber(null, SVG_SPECULAR_EXPONENT_ATTRIBUTE, 1f);
+ limitingConeAngle =
+ createLiveAnimatedNumber
+ (null, SVG_LIMITING_CONE_ANGLE_ATTRIBUTE, 0f);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link Node#getLocalName()}.
+ */
+ public String getLocalName() {
+ return SVG_FE_SPOT_LIGHT_TAG;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFESpotLightElement#getX()}.
+ */
+ public SVGAnimatedNumber getX() {
+ return x;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFESpotLightElement#getY()}.
+ */
+ public SVGAnimatedNumber getY() {
+ return y;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFESpotLightElement#getZ()}.
+ */
+ public SVGAnimatedNumber getZ() {
+ return z;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFESpotLightElement#getPointsAtX()}.
+ */
+ public SVGAnimatedNumber getPointsAtX() {
+ return pointsAtX;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFESpotLightElement#getPointsAtY()}.
+ */
+ public SVGAnimatedNumber getPointsAtY() {
+ return pointsAtY;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFESpotLightElement#getPointsAtZ()}.
+ */
+ public SVGAnimatedNumber getPointsAtZ() {
+ return pointsAtZ;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link
+ * SVGFESpotLightElement#getSpecularExponent()}.
+ */
+ public SVGAnimatedNumber getSpecularExponent() {
+ return specularExponent;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link
+ * SVGFESpotLightElement#getLimitingConeAngle()}.
+ */
+ public SVGAnimatedNumber getLimitingConeAngle() {
+ return limitingConeAngle;
+ }
+
+ /**
+ * Returns a new uninitialized instance of this object's class.
+ */
+ protected Node newNode() {
+ return new SVGOMFESpotLightElement();
+ }
+
+ /**
+ * Returns the table of TraitInformation objects for this element.
+ */
+ protected DoublyIndexedTable getTraitInformationTable() {
+ return xmlTraitInformation;
+ }
+}
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFETileElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFETileElement.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFETileElement.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFETileElement.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,114 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+import org.apache.batik.util.DoublyIndexedTable;
+import org.apache.batik.util.SVGTypes;
+
+import org.w3c.dom.Node;
+import org.w3c.dom.svg.SVGAnimatedString;
+import org.w3c.dom.svg.SVGFETileElement;
+
+/**
+ * This class implements {@link SVGFETileElement}.
+ *
+ * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
+ * @version $Id$
+ */
+public class SVGOMFETileElement
+ extends SVGOMFilterPrimitiveStandardAttributes
+ implements SVGFETileElement {
+
+ /**
+ * Table mapping XML attribute names to TraitInformation objects.
+ */
+ protected static DoublyIndexedTable xmlTraitInformation;
+ static {
+ DoublyIndexedTable t =
+ new DoublyIndexedTable(SVGOMFilterPrimitiveStandardAttributes.xmlTraitInformation);
+ t.put(null, SVG_IN_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_CDATA));
+ xmlTraitInformation = t;
+ }
+
+ /**
+ * The 'in' attribute value.
+ */
+ protected SVGOMAnimatedString in;
+
+ /**
+ * Creates a new SVGOMFETileElement object.
+ */
+ protected SVGOMFETileElement() {
+ }
+
+ /**
+ * Creates a new SVGOMFETileElement object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ public SVGOMFETileElement(String prefix, AbstractDocument owner) {
+ super(prefix, owner);
+ initializeLiveAttributes();
+ }
+
+ /**
+ * Initializes all live attributes for this element.
+ */
+ protected void initializeAllLiveAttributes() {
+ super.initializeAllLiveAttributes();
+ initializeLiveAttributes();
+ }
+
+ /**
+ * Initializes the live attribute values of this element.
+ */
+ private void initializeLiveAttributes() {
+ in = createLiveAnimatedString(null, SVG_IN_ATTRIBUTE);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link Node#getLocalName()}.
+ */
+ public String getLocalName() {
+ return SVG_FE_TILE_TAG;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFETileElement#getIn1()}.
+ */
+ public SVGAnimatedString getIn1() {
+ return in;
+ }
+
+ /**
+ * Returns a new uninitialized instance of this object's class.
+ */
+ protected Node newNode() {
+ return new SVGOMFETileElement();
+ }
+
+ /**
+ * Returns the table of TraitInformation objects for this element.
+ */
+ protected DoublyIndexedTable getTraitInformationTable() {
+ return xmlTraitInformation;
+ }
+}
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFETurbulenceElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFETurbulenceElement.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFETurbulenceElement.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFETurbulenceElement.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,251 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+import org.apache.batik.util.DoublyIndexedTable;
+import org.apache.batik.util.SVGTypes;
+
+import org.w3c.dom.Node;
+import org.w3c.dom.svg.SVGAnimatedEnumeration;
+import org.w3c.dom.svg.SVGAnimatedInteger;
+import org.w3c.dom.svg.SVGAnimatedNumber;
+import org.w3c.dom.svg.SVGFETurbulenceElement;
+
+/**
+ * This class implements {@link SVGFETurbulenceElement}.
+ *
+ * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
+ * @version $Id$
+ */
+public class SVGOMFETurbulenceElement
+ extends SVGOMFilterPrimitiveStandardAttributes
+ implements SVGFETurbulenceElement {
+
+ /**
+ * Table mapping XML attribute names to TraitInformation objects.
+ */
+ protected static DoublyIndexedTable xmlTraitInformation;
+ static {
+ DoublyIndexedTable t =
+ new DoublyIndexedTable(SVGOMFilterPrimitiveStandardAttributes.xmlTraitInformation);
+ t.put(null, SVG_BASE_FREQUENCY_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_NUMBER_OPTIONAL_NUMBER));
+ t.put(null, SVG_NUM_OCTAVES_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_INTEGER));
+ t.put(null, SVG_SEED_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_NUMBER));
+ t.put(null, SVG_STITCH_TILES_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_IDENT));
+ t.put(null, SVG_TYPE_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_IDENT));
+ xmlTraitInformation = t;
+ }
+
+ /**
+ * The 'stitchTiles' attribute values.
+ */
+ protected static final String[] STITCH_TILES_VALUES = {
+ "",
+ SVG_STITCH_VALUE,
+ SVG_NO_STITCH_VALUE
+ };
+
+ /**
+ * The 'type' attribute values.
+ */
+ protected static final String[] TYPE_VALUES = {
+ "",
+ SVG_FRACTAL_NOISE_VALUE,
+ SVG_TURBULENCE_VALUE
+ };
+
+ /**
+ * The 'numOctaves' attribute value.
+ */
+ protected SVGOMAnimatedInteger numOctaves;
+
+ /**
+ * The 'seed' attribute value.
+ */
+ protected SVGOMAnimatedNumber seed;
+
+ /**
+ * The 'stitchTiles' attribute value.
+ */
+ protected SVGOMAnimatedEnumeration stitchTiles;
+
+ /**
+ * The 'type' attribute value.
+ */
+ protected SVGOMAnimatedEnumeration type;
+
+ /**
+ * Creates a new SVGOMFETurbulence object.
+ */
+ protected SVGOMFETurbulenceElement() {
+ }
+
+ /**
+ * Creates a new SVGOMFETurbulenceElement object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ public SVGOMFETurbulenceElement(String prefix,
+ AbstractDocument owner) {
+ super(prefix, owner);
+ initializeLiveAttributes();
+ }
+
+ /**
+ * Initializes all live attributes for this element.
+ */
+ protected void initializeAllLiveAttributes() {
+ super.initializeAllLiveAttributes();
+ initializeLiveAttributes();
+ }
+
+ /**
+ * Initializes the live attribute values of this element.
+ */
+ private void initializeLiveAttributes() {
+ numOctaves =
+ createLiveAnimatedInteger(null, SVG_NUM_OCTAVES_ATTRIBUTE, 1);
+ seed = createLiveAnimatedNumber(null, SVG_SEED_ATTRIBUTE, 0f);
+ stitchTiles =
+ createLiveAnimatedEnumeration
+ (null, SVG_STITCH_TILES_ATTRIBUTE, STITCH_TILES_VALUES,
+ (short) 2);
+ type =
+ createLiveAnimatedEnumeration
+ (null, SVG_TYPE_ATTRIBUTE, TYPE_VALUES, (short) 2);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link Node#getLocalName()}.
+ */
+ public String getLocalName() {
+ return SVG_FE_TURBULENCE_TAG;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link
+ * SVGFETurbulenceElement#getBaseFrequencyX()}.
+ */
+ public SVGAnimatedNumber getBaseFrequencyX() {
+ throw new UnsupportedOperationException
+ ("SVGFETurbulenceElement.getBaseFrequencyX is not implemented"); // XXX
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link
+ * SVGFETurbulenceElement#getBaseFrequencyY()}.
+ */
+ public SVGAnimatedNumber getBaseFrequencyY() {
+ throw new UnsupportedOperationException
+ ("SVGFETurbulenceElement.getBaseFrequencyY is not implemented"); // XXX
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFETurbulenceElement#getNumOctaves()}.
+ */
+ public SVGAnimatedInteger getNumOctaves() {
+ return numOctaves;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFETurbulenceElement#getSeed()}.
+ */
+ public SVGAnimatedNumber getSeed() {
+ return seed;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFETurbulenceElement#getStitchTiles()}.
+ */
+ public SVGAnimatedEnumeration getStitchTiles() {
+ return stitchTiles;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFETurbulenceElement#getType()}.
+ */
+ public SVGAnimatedEnumeration getType() {
+ return type;
+ }
+
+ /**
+ * Returns a new uninitialized instance of this object's class.
+ */
+ protected Node newNode() {
+ return new SVGOMFETurbulenceElement();
+ }
+
+ /**
+ * Returns the table of TraitInformation objects for this element.
+ */
+ protected DoublyIndexedTable getTraitInformationTable() {
+ return xmlTraitInformation;
+ }
+
+ // AnimationTarget ///////////////////////////////////////////////////////
+
+// XXX TBD
+// /**
+// * Updates an attribute value in this target.
+// */
+// public void updateAttributeValue(String ns, String ln,
+// AnimatableValue val) {
+// if (ns == null) {
+// if (ln.equals(SVG_BASE_FREQUENCY_ATTRIBUTE)) {
+// // XXX Needs testing.
+// if (val == null) {
+// updateNumberAttributeValue(getBaseFrequencyX(), null);
+// updateNumberAttributeValue(getBaseFrequencyY(), null);
+// } else {
+// AnimatableNumberOptionalNumberValue anonv =
+// (AnimatableNumberOptionalNumberValue) val;
+// SVGOMAnimatedNumber an =
+// (SVGOMAnimatedNumber) getBaseFrequencyX();
+// an.setAnimatedValue(anonv.getNumber());
+// an = (SVGOMAnimatedNumber) getBaseFrequencyY();
+// if (anonv.hasOptionalNumber()) {
+// an.setAnimatedValue(anonv.getOptionalNumber());
+// } else {
+// an.setAnimatedValue(anonv.getNumber());
+// }
+// }
+// return;
+// }
+// }
+// super.updateAttributeValue(ns, ln, val);
+// }
+//
+// /**
+// * Returns the underlying value of an animatable XML attribute.
+// */
+// public AnimatableValue getUnderlyingValue(String ns, String ln) {
+// if (ns == null) {
+// if (ln.equals(SVG_BASE_FREQUENCY_ATTRIBUTE)) {
+// return getBaseValue(getBaseFrequencyX(), getBaseFrequencyY());
+// }
+// }
+// return super.getUnderlyingValue(ns, ln);
+// }
+}
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFilterElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFilterElement.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFilterElement.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFilterElement.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,379 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+import org.apache.batik.dom.util.XLinkSupport;
+import org.apache.batik.dom.util.XMLSupport;
+import org.apache.batik.util.DoublyIndexedTable;
+import org.apache.batik.util.SVGTypes;
+
+import org.w3c.dom.Node;
+import org.w3c.dom.svg.SVGAnimatedBoolean;
+import org.w3c.dom.svg.SVGAnimatedEnumeration;
+import org.w3c.dom.svg.SVGAnimatedInteger;
+import org.w3c.dom.svg.SVGAnimatedLength;
+import org.w3c.dom.svg.SVGAnimatedString;
+import org.w3c.dom.svg.SVGFilterElement;
+
+/**
+ * This class implements {@link SVGFilterElement}.
+ *
+ * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
+ * @version $Id$
+ */
+public class SVGOMFilterElement
+ extends SVGStylableElement
+ implements SVGFilterElement {
+
+ /**
+ * Table mapping XML attribute names to TraitInformation objects.
+ */
+ protected static DoublyIndexedTable xmlTraitInformation;
+ static {
+ DoublyIndexedTable t =
+ new DoublyIndexedTable(SVGStylableElement.xmlTraitInformation);
+ t.put(null, SVG_FILTER_UNITS_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_IDENT));
+ t.put(null, SVG_PRIMITIVE_UNITS_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_IDENT));
+ t.put(null, SVG_X_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_LENGTH, PERCENTAGE_VIEWPORT_WIDTH));
+ t.put(null, SVG_Y_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_LENGTH, PERCENTAGE_VIEWPORT_HEIGHT));
+ t.put(null, SVG_WIDTH_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_LENGTH, PERCENTAGE_VIEWPORT_WIDTH));
+ t.put(null, SVG_HEIGHT_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_LENGTH, PERCENTAGE_VIEWPORT_HEIGHT));
+ t.put(null, SVG_FILTER_RES_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_NUMBER_OPTIONAL_NUMBER));
+ xmlTraitInformation = t;
+ }
+
+ /**
+ * The attribute initializer.
+ */
+ protected static final AttributeInitializer attributeInitializer;
+ static {
+ attributeInitializer = new AttributeInitializer(4);
+ attributeInitializer.addAttribute(XMLSupport.XMLNS_NAMESPACE_URI,
+ null, "xmlns:xlink",
+ XLinkSupport.XLINK_NAMESPACE_URI);
+ attributeInitializer.addAttribute(XLinkSupport.XLINK_NAMESPACE_URI,
+ "xlink", "type", "simple");
+ attributeInitializer.addAttribute(XLinkSupport.XLINK_NAMESPACE_URI,
+ "xlink", "show", "other");
+ attributeInitializer.addAttribute(XLinkSupport.XLINK_NAMESPACE_URI,
+ "xlink", "actuate", "onLoad");
+ }
+
+ /**
+ * The units values.
+ */
+ protected static final String[] UNITS_VALUES = {
+ "",
+ SVG_USER_SPACE_ON_USE_VALUE,
+ SVG_OBJECT_BOUNDING_BOX_VALUE
+ };
+
+ /**
+ * The 'filterUnits' attribute value.
+ */
+ protected SVGOMAnimatedEnumeration filterUnits;
+
+ /**
+ * The 'primitiveUnits' attribute value.
+ */
+ protected SVGOMAnimatedEnumeration primitiveUnits;
+
+ /**
+ * The 'x' attribute value.
+ */
+ protected SVGOMAnimatedLength x;
+
+ /**
+ * The 'y' attribute value.
+ */
+ protected SVGOMAnimatedLength y;
+
+ /**
+ * The 'width' attribute value.
+ */
+ protected SVGOMAnimatedLength width;
+
+ /**
+ * The 'height' attribute value.
+ */
+ protected SVGOMAnimatedLength height;
+
+ /**
+ * The 'xlink:href' attribute value.
+ */
+ protected SVGOMAnimatedString href;
+
+ /**
+ * The 'externalResourcesRequired' attribute value.
+ */
+ protected SVGOMAnimatedBoolean externalResourcesRequired;
+
+ /**
+ * Creates a new SVGOMFilterElement object.
+ */
+ protected SVGOMFilterElement() {
+ }
+
+ /**
+ * Creates a new SVGOMFilterElement object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ public SVGOMFilterElement(String prefix, AbstractDocument owner) {
+ super(prefix, owner);
+ initializeLiveAttributes();
+ }
+
+ /**
+ * Initializes all live attributes for this element.
+ */
+ protected void initializeAllLiveAttributes() {
+ super.initializeAllLiveAttributes();
+ initializeLiveAttributes();
+ }
+
+ /**
+ * Initializes the live attribute values of this element.
+ */
+ private void initializeLiveAttributes() {
+ filterUnits =
+ createLiveAnimatedEnumeration
+ (null, SVG_FILTER_UNITS_ATTRIBUTE, UNITS_VALUES, (short) 2);
+ primitiveUnits =
+ createLiveAnimatedEnumeration
+ (null, SVG_PRIMITIVE_UNITS_ATTRIBUTE, UNITS_VALUES, (short) 1);
+ x = createLiveAnimatedLength
+ (null, SVG_X_ATTRIBUTE, SVG_FILTER_X_DEFAULT_VALUE,
+ SVGOMAnimatedLength.HORIZONTAL_LENGTH, false);
+ y = createLiveAnimatedLength
+ (null, SVG_Y_ATTRIBUTE, SVG_FILTER_Y_DEFAULT_VALUE,
+ SVGOMAnimatedLength.VERTICAL_LENGTH, false);
+ width =
+ createLiveAnimatedLength
+ (null, SVG_WIDTH_ATTRIBUTE, SVG_FILTER_WIDTH_DEFAULT_VALUE,
+ SVGOMAnimatedLength.HORIZONTAL_LENGTH, true);
+ height =
+ createLiveAnimatedLength
+ (null, SVG_HEIGHT_ATTRIBUTE, SVG_FILTER_HEIGHT_DEFAULT_VALUE,
+ SVGOMAnimatedLength.VERTICAL_LENGTH, true);
+ href =
+ createLiveAnimatedString(XLINK_NAMESPACE_URI, XLINK_HREF_ATTRIBUTE);
+ externalResourcesRequired =
+ createLiveAnimatedBoolean
+ (null, SVG_EXTERNAL_RESOURCES_REQUIRED_ATTRIBUTE, false);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link Node#getLocalName()}.
+ */
+ public String getLocalName() {
+ return SVG_FILTER_TAG;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFilterElement#getFilterUnits()}.
+ */
+ public SVGAnimatedEnumeration getFilterUnits() {
+ return filterUnits;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFilterElement#getPrimitiveUnits()}.
+ */
+ public SVGAnimatedEnumeration getPrimitiveUnits() {
+ return primitiveUnits;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFilterElement#getX()}.
+ */
+ public SVGAnimatedLength getX() {
+ return x;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFilterElement#getY()}.
+ */
+ public SVGAnimatedLength getY() {
+ return y;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFilterElement#getWidth()}.
+ */
+ public SVGAnimatedLength getWidth() {
+ return width;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFilterElement#getHeight()}.
+ */
+ public SVGAnimatedLength getHeight() {
+ return height;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFilterElement#getFilterResX()}.
+ */
+ public SVGAnimatedInteger getFilterResX() {
+ throw new UnsupportedOperationException
+ ("SVGFilterElement.getFilterResX is not implemented"); // XXX
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFilterElement#getFilterResY()}.
+ */
+ public SVGAnimatedInteger getFilterResY() {
+ throw new UnsupportedOperationException
+ ("SVGFilterElement.getFilterResY is not implemented"); // XXX
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link SVGFilterElement#setFilterRes(int,int)}.
+ */
+ public void setFilterRes(int filterResX, int filterResY) {
+ throw new UnsupportedOperationException
+ ("SVGFilterElement.setFilterRes is not implemented"); // XXX
+ }
+
+ // SVGURIReference support /////////////////////////////////////////////
+
+ /**
+ * <b>DOM</b>: Implements {@link org.w3c.dom.svg.SVGURIReference#getHref()}.
+ */
+ public SVGAnimatedString getHref() {
+ return href;
+ }
+
+ // SVGExternalResourcesRequired support /////////////////////////////
+
+ /**
+ * <b>DOM</b>: Implements {@link
+ * org.w3c.dom.svg.SVGExternalResourcesRequired#getExternalResourcesRequired()}.
+ */
+ public SVGAnimatedBoolean getExternalResourcesRequired() {
+ return externalResourcesRequired;
+ }
+
+ /**
+ * Returns the table of TraitInformation objects for this element.
+ */
+ protected DoublyIndexedTable getTraitInformationTable() {
+ return xmlTraitInformation;
+ }
+
+ // SVGLangSpace support //////////////////////////////////////////////////
+
+ /**
+ * <b>DOM</b>: Returns the xml:lang attribute value.
+ */
+ public String getXMLlang() {
+ return XMLSupport.getXMLLang(this);
+ }
+
+ /**
+ * <b>DOM</b>: Sets the xml:lang attribute value.
+ */
+ public void setXMLlang(String lang) {
+ setAttributeNS(XML_NAMESPACE_URI, XML_LANG_QNAME, lang);
+ }
+
+ /**
+ * <b>DOM</b>: Returns the xml:space attribute value.
+ */
+ public String getXMLspace() {
+ return XMLSupport.getXMLSpace(this);
+ }
+
+ /**
+ * <b>DOM</b>: Sets the xml:space attribute value.
+ */
+ public void setXMLspace(String space) {
+ setAttributeNS(XML_NAMESPACE_URI, XML_SPACE_QNAME, space);
+ }
+
+ /**
+ * Returns the AttributeInitializer for this element type.
+ * @return null if this element has no attribute with a default value.
+ */
+ protected AttributeInitializer getAttributeInitializer() {
+ return attributeInitializer;
+ }
+
+ /**
+ * Returns a new uninitialized instance of this object's class.
+ */
+ protected Node newNode() {
+ return new SVGOMFilterElement();
+ }
+
+ // AnimationTarget ///////////////////////////////////////////////////////
+
+// XXX TBD
+// /**
+// * Updates an attribute value in this target.
+// */
+// public void updateAttributeValue(String ns, String ln,
+// AnimatableValue val) {
+// if (ns == null) {
+// if (ln.equals(SVG_FILTER_RES_ATTRIBUTE)) {
+// // XXX Needs testing.
+// if (val == null) {
+// updateIntegerAttributeValue(getFilterResX(), null);
+// updateIntegerAttributeValue(getFilterResY(), null);
+// } else {
+// AnimatableNumberOptionalNumberValue anonv =
+// (AnimatableNumberOptionalNumberValue) val;
+// SVGOMAnimatedInteger ai =
+// (SVGOMAnimatedInteger) getFilterResX();
+// ai.setAnimatedValue(Math.round(anonv.getNumber()));
+// ai = (SVGOMAnimatedInteger) getFilterResY();
+// if (anonv.hasOptionalNumber()) {
+// ai.setAnimatedValue
+// (Math.round(anonv.getOptionalNumber()));
+// } else {
+// ai.setAnimatedValue(Math.round(anonv.getNumber()));
+// }
+// }
+// return;
+// }
+// }
+// super.updateAttributeValue(ns, ln, val);
+// }
+//
+// /**
+// * Returns the underlying value of an animatable XML attribute.
+// */
+// public AnimatableValue getUnderlyingValue(String ns, String ln) {
+// if (ns == null) {
+// if (ln.equals(SVG_FILTER_RES_ATTRIBUTE)) {
+// return getBaseValue(getFilterResX(), getFilterResY());
+// }
+// }
+// return super.getUnderlyingValue(ns, ln);
+// }
+}
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFilterPrimitiveStandardAttributes.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFilterPrimitiveStandardAttributes.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFilterPrimitiveStandardAttributes.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFilterPrimitiveStandardAttributes.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,179 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+import org.apache.batik.util.DoublyIndexedTable;
+import org.apache.batik.util.SVGTypes;
+
+import org.w3c.dom.svg.SVGAnimatedLength;
+import org.w3c.dom.svg.SVGAnimatedString;
+import org.w3c.dom.svg.SVGFilterPrimitiveStandardAttributes;
+
+/**
+ * This class represents a SVGElement with support for standard filter
+ * attributes.
+ *
+ * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
+ * @version $Id$
+ */
+public abstract class SVGOMFilterPrimitiveStandardAttributes
+ extends SVGStylableElement
+ implements SVGFilterPrimitiveStandardAttributes {
+
+ /**
+ * Table mapping XML attribute names to TraitInformation objects.
+ */
+ protected static DoublyIndexedTable xmlTraitInformation;
+ static {
+ DoublyIndexedTable t =
+ new DoublyIndexedTable(SVGStylableElement.xmlTraitInformation);
+ t.put(null, SVG_X_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_LENGTH, PERCENTAGE_VIEWPORT_WIDTH));
+ t.put(null, SVG_Y_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_LENGTH, PERCENTAGE_VIEWPORT_HEIGHT));
+ t.put(null, SVG_WIDTH_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_LENGTH, PERCENTAGE_VIEWPORT_WIDTH));
+ t.put(null, SVG_HEIGHT_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_LENGTH, PERCENTAGE_VIEWPORT_HEIGHT));
+ t.put(null, SVG_RESULT_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_CDATA));
+ xmlTraitInformation = t;
+ }
+
+ /**
+ * The 'x' attribute value.
+ */
+ protected SVGOMAnimatedLength x;
+
+ /**
+ * The 'y' attribute value.
+ */
+ protected SVGOMAnimatedLength y;
+
+ /**
+ * The 'width' attribute value.
+ */
+ protected SVGOMAnimatedLength width;
+
+ /**
+ * The 'height' attribute value.
+ */
+ protected SVGOMAnimatedLength height;
+
+ /**
+ * The 'result' attribute value.
+ */
+ protected SVGOMAnimatedString result;
+
+ /**
+ * Creates a new SVGOMFilterPrimitiveStandardAttributes object.
+ */
+ protected SVGOMFilterPrimitiveStandardAttributes() {
+ }
+
+ /**
+ * Creates a new SVGOMFilterPrimitiveStandardAttributes object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ protected SVGOMFilterPrimitiveStandardAttributes(String prefix,
+ AbstractDocument owner) {
+ super(prefix, owner);
+ initializeLiveAttributes();
+ }
+
+ /**
+ * Initializes all live attributes for this element.
+ */
+ protected void initializeAllLiveAttributes() {
+ super.initializeAllLiveAttributes();
+ initializeLiveAttributes();
+ }
+
+ /**
+ * Initializes the live attribute values of this element.
+ */
+ private void initializeLiveAttributes() {
+ x = createLiveAnimatedLength
+ (null, SVG_X_ATTRIBUTE, SVG_FILTER_PRIMITIVE_X_DEFAULT_VALUE,
+ SVGOMAnimatedLength.HORIZONTAL_LENGTH, false);
+ y = createLiveAnimatedLength
+ (null, SVG_Y_ATTRIBUTE, SVG_FILTER_PRIMITIVE_Y_DEFAULT_VALUE,
+ SVGOMAnimatedLength.VERTICAL_LENGTH, false);
+ width =
+ createLiveAnimatedLength
+ (null, SVG_WIDTH_ATTRIBUTE,
+ SVG_FILTER_PRIMITIVE_WIDTH_DEFAULT_VALUE,
+ SVGOMAnimatedLength.HORIZONTAL_LENGTH, true);
+ height =
+ createLiveAnimatedLength
+ (null, SVG_HEIGHT_ATTRIBUTE,
+ SVG_FILTER_PRIMITIVE_HEIGHT_DEFAULT_VALUE,
+ SVGOMAnimatedLength.VERTICAL_LENGTH, true);
+ result = createLiveAnimatedString(null, SVG_RESULT_ATTRIBUTE);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link
+ * org.w3c.dom.svg.SVGFilterPrimitiveStandardAttributes#getX()}.
+ */
+ public SVGAnimatedLength getX() {
+ return x;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link
+ * org.w3c.dom.svg.SVGFilterPrimitiveStandardAttributes#getY()}.
+ */
+ public SVGAnimatedLength getY() {
+ return y;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link
+ * org.w3c.dom.svg.SVGFilterPrimitiveStandardAttributes#getWidth()}.
+ */
+ public SVGAnimatedLength getWidth() {
+ return width;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link
+ * org.w3c.dom.svg.SVGFilterPrimitiveStandardAttributes#getHeight()}.
+ */
+ public SVGAnimatedLength getHeight() {
+ return height;
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link
+ * org.w3c.dom.svg.SVGFilterPrimitiveStandardAttributes#getResult()}.
+ */
+ public SVGAnimatedString getResult() {
+ return result;
+ }
+
+ /**
+ * Returns the table of TraitInformation objects for this element.
+ */
+ protected DoublyIndexedTable getTraitInformationTable() {
+ return xmlTraitInformation;
+ }
+}
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowDivElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowDivElement.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowDivElement.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowDivElement.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,64 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+import org.apache.batik.util.SVG12Constants;
+import org.w3c.dom.Node;
+import org.w3c.dom.svg.SVGTextContentElement;
+
+/**
+ * This class implements the flowDiv element from SVG 1.2
+ *
+ * @author <a href="mailto:thomas.deweese@kodak.com">Thomas DeWeese</a>
+ * @version $Id$
+ */
+public class SVGOMFlowDivElement
+ extends SVGOMTextContentElement
+ implements SVGTextContentElement {
+
+ /**
+ * Creates a new BatikRegularPolygonElement object.
+ */
+ protected SVGOMFlowDivElement() {
+ }
+
+ /**
+ * Creates a new BatikRegularPolygonElement object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ public SVGOMFlowDivElement(String prefix, AbstractDocument owner) {
+ super(prefix, owner);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link org.w3c.dom.Node#getLocalName()}.
+ */
+ public String getLocalName() {
+ return SVG12Constants.SVG_FLOW_DIV_TAG;
+ }
+
+ /**
+ * Returns a new uninitialized instance of this object's class.
+ */
+ protected Node newNode() {
+ return new SVGOMFlowDivElement();
+ }
+}
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowLineElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowLineElement.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowLineElement.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowLineElement.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,62 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+import org.apache.batik.util.SVG12Constants;
+import org.w3c.dom.Node;
+
+/**
+ * This class implements a regular polygon extension to SVG
+ *
+ * @author <a href="mailto:thomas.deweese@kodak.com">Thomas DeWeese</a>
+ * @version $Id$
+ */
+public class SVGOMFlowLineElement
+ extends SVGOMTextPositioningElement {
+
+ /**
+ * Creates a new BatikRegularPolygonElement object.
+ */
+ protected SVGOMFlowLineElement() {
+ }
+
+ /**
+ * Creates a new BatikRegularPolygonElement object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ public SVGOMFlowLineElement(String prefix, AbstractDocument owner) {
+ super(prefix, owner);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link org.w3c.dom.Node#getLocalName()}.
+ */
+ public String getLocalName() {
+ return SVG12Constants.SVG_FLOW_LINE_TAG;
+ }
+
+ /**
+ * Returns a new uninitialized instance of this object's class.
+ */
+ protected Node newNode() {
+ return new SVGOMFlowLineElement();
+ }
+}
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowParaElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowParaElement.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowParaElement.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowParaElement.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,63 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+import org.apache.batik.util.SVG12Constants;
+
+import org.w3c.dom.Node;
+
+/**
+ * This class implements a regular polygon extension to SVG
+ *
+ * @author <a href="mailto:thomas.deweese@kodak.com">Thomas DeWeese</a>
+ * @version $Id$
+ */
+public class SVGOMFlowParaElement
+ extends SVGOMTextPositioningElement {
+
+ /**
+ * Creates a new BatikRegularPolygonElement object.
+ */
+ protected SVGOMFlowParaElement() {
+ }
+
+ /**
+ * Creates a new BatikRegularPolygonElement object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ public SVGOMFlowParaElement(String prefix, AbstractDocument owner) {
+ super(prefix, owner);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link org.w3c.dom.Node#getLocalName()}.
+ */
+ public String getLocalName() {
+ return SVG12Constants.SVG_FLOW_PARA_TAG;
+ }
+
+ /**
+ * Returns a new uninitialized instance of this object's class.
+ */
+ protected Node newNode() {
+ return new SVGOMFlowParaElement();
+ }
+}
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowRegionBreakElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowRegionBreakElement.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowRegionBreakElement.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowRegionBreakElement.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,62 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+import org.apache.batik.util.SVG12Constants;
+import org.w3c.dom.Node;
+
+/**
+ * This class implements a regular polygon extension to SVG
+ *
+ * @author <a href="mailto:thomas.deweese@kodak.com">Thomas DeWeese</a>
+ * @version $Id$
+ */
+public class SVGOMFlowRegionBreakElement
+ extends SVGOMTextPositioningElement {
+
+ /**
+ * Creates a new BatikRegularPolygonElement object.
+ */
+ protected SVGOMFlowRegionBreakElement() {
+ }
+
+ /**
+ * Creates a new BatikRegularPolygonElement object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ public SVGOMFlowRegionBreakElement(String prefix, AbstractDocument owner) {
+ super(prefix, owner);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link org.w3c.dom.Node#getLocalName()}.
+ */
+ public String getLocalName() {
+ return SVG12Constants.SVG_FLOW_REGION_BREAK_TAG;
+ }
+
+ /**
+ * Returns a new uninitialized instance of this object's class.
+ */
+ protected Node newNode() {
+ return new SVGOMFlowRegionBreakElement();
+ }
+}
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowRegionElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowRegionElement.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowRegionElement.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowRegionElement.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,61 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+import org.apache.batik.util.SVG12Constants;
+import org.w3c.dom.Node;
+
+/**
+ * This class implements a regular polygon extension to SVG
+ *
+ * @author <a href="mailto:thomas.deweese@kodak.com">Thomas DeWeese</a>
+ * @version $Id$
+ */
+public class SVGOMFlowRegionElement extends SVGStylableElement {
+
+ /**
+ * Creates a new BatikRegularPolygonElement object.
+ */
+ protected SVGOMFlowRegionElement() {
+ }
+
+ /**
+ * Creates a new BatikRegularPolygonElement object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ public SVGOMFlowRegionElement(String prefix, AbstractDocument owner) {
+ super(prefix, owner);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link org.w3c.dom.Node#getLocalName()}.
+ */
+ public String getLocalName() {
+ return SVG12Constants.SVG_FLOW_REGION_TAG;
+ }
+
+ /**
+ * Returns a new uninitialized instance of this object's class.
+ */
+ protected Node newNode() {
+ return new SVGOMFlowRegionElement();
+ }
+}
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowRegionExcludeElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowRegionExcludeElement.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowRegionExcludeElement.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowRegionExcludeElement.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,61 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+import org.apache.batik.util.SVG12Constants;
+import org.w3c.dom.Node;
+
+/**
+ * This class implements a regular polygon extension to SVG
+ *
+ * @author <a href="mailto:thomas.deweese@kodak.com">Thomas DeWeese</a>
+ * @version $Id$
+ */
+public class SVGOMFlowRegionExcludeElement extends SVGStylableElement {
+
+ /**
+ * Creates a new BatikRegularPolygonElement object.
+ */
+ protected SVGOMFlowRegionExcludeElement() {
+ }
+
+ /**
+ * Creates a new BatikRegularPolygonElement object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ public SVGOMFlowRegionExcludeElement(String prefix, AbstractDocument owner){
+ super(prefix, owner);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link org.w3c.dom.Node#getLocalName()}.
+ */
+ public String getLocalName() {
+ return SVG12Constants.SVG_FLOW_REGION_EXCLUDE_TAG;
+ }
+
+ /**
+ * Returns a new uninitialized instance of this object's class.
+ */
+ protected Node newNode() {
+ return new SVGOMFlowRegionExcludeElement();
+ }
+}
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowRootElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowRootElement.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowRootElement.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowRootElement.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,61 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+import org.apache.batik.util.SVG12Constants;
+import org.w3c.dom.Node;
+
+/**
+ * This class implements a regular polygon extension to SVG
+ *
+ * @author <a href="mailto:thomas.deweese@kodak.com">Thomas DeWeese</a>
+ * @version $Id$
+ */
+public class SVGOMFlowRootElement extends SVGGraphicsElement {
+
+ /**
+ * Creates a new BatikRegularPolygonElement object.
+ */
+ protected SVGOMFlowRootElement() {
+ }
+
+ /**
+ * Creates a new BatikRegularPolygonElement object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ public SVGOMFlowRootElement(String prefix, AbstractDocument owner) {
+ super(prefix, owner);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link org.w3c.dom.Node#getLocalName()}.
+ */
+ public String getLocalName() {
+ return SVG12Constants.SVG_FLOW_ROOT_TAG;
+ }
+
+ /**
+ * Returns a new uninitialized instance of this object's class.
+ */
+ protected Node newNode() {
+ return new SVGOMFlowRootElement();
+ }
+}
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowSpanElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowSpanElement.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowSpanElement.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFlowSpanElement.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,62 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+import org.apache.batik.util.SVG12Constants;
+import org.w3c.dom.Node;
+
+/**
+ * This class implements a regular polygon extension to SVG
+ *
+ * @author <a href="mailto:thomas.deweese@kodak.com">Thomas DeWeese</a>
+ * @version $Id$
+ */
+public class SVGOMFlowSpanElement
+ extends SVGOMTextPositioningElement {
+
+ /**
+ * Creates a new BatikRegularPolygonElement object.
+ */
+ protected SVGOMFlowSpanElement() {
+ }
+
+ /**
+ * Creates a new BatikRegularPolygonElement object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ public SVGOMFlowSpanElement(String prefix, AbstractDocument owner) {
+ super(prefix, owner);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link org.w3c.dom.Node#getLocalName()}.
+ */
+ public String getLocalName() {
+ return SVG12Constants.SVG_FLOW_SPAN_TAG;
+ }
+
+ /**
+ * Returns a new uninitialized instance of this object's class.
+ */
+ protected Node newNode() {
+ return new SVGOMFlowSpanElement();
+ }
+}
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontElement.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontElement.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontElement.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,131 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+import org.apache.batik.util.DoublyIndexedTable;
+import org.apache.batik.util.SVGTypes;
+
+import org.w3c.dom.Node;
+import org.w3c.dom.svg.SVGAnimatedBoolean;
+import org.w3c.dom.svg.SVGFontElement;
+
+/**
+ * This class implements {@link SVGFontElement}.
+ *
+ * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
+ * @version $Id$
+ */
+public class SVGOMFontElement
+ extends SVGStylableElement
+ implements SVGFontElement {
+
+ /**
+ * Table mapping XML attribute names to TraitInformation objects.
+ */
+ protected static DoublyIndexedTable xmlTraitInformation;
+ static {
+ DoublyIndexedTable t =
+ new DoublyIndexedTable(SVGStylableElement.xmlTraitInformation);
+ t.put(null, SVG_EXTERNAL_RESOURCES_REQUIRED_ATTRIBUTE,
+ new TraitInformation(true, SVGTypes.TYPE_BOOLEAN));
+// t.put(null, SVG_HORIZ_ORIGIN_X_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_NUMBER));
+// t.put(null, SVG_HORIZ_ORIGIN_Y_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_NUMBER));
+// t.put(null, SVG_HORIZ_ADV_X_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_NUMBER));
+// t.put(null, SVG_VERT_ORIGIN_X_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_NUMBER));
+// t.put(null, SVG_VERT_ORIGIN_Y_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_NUMBER));
+// t.put(null, SVG_VERT_ADV_Y_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_NUMBER));
+ xmlTraitInformation = t;
+ }
+
+ /**
+ * The 'externalResourcesRequired' attribute value.
+ */
+ protected SVGOMAnimatedBoolean externalResourcesRequired;
+
+ /**
+ * Creates a new SVGOMFontElement object.
+ */
+ protected SVGOMFontElement() {
+ }
+
+ /**
+ * Creates a new SVGOMFontElement object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ public SVGOMFontElement(String prefix, AbstractDocument owner) {
+ super(prefix, owner);
+ initializeLiveAttributes();
+ }
+
+ /**
+ * Initializes all live attributes for this element.
+ */
+ protected void initializeAllLiveAttributes() {
+ super.initializeAllLiveAttributes();
+ initializeLiveAttributes();
+ }
+
+ /**
+ * Initializes the live attribute values of this element.
+ */
+ private void initializeLiveAttributes() {
+ externalResourcesRequired =
+ createLiveAnimatedBoolean
+ (null, SVG_EXTERNAL_RESOURCES_REQUIRED_ATTRIBUTE, false);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link Node#getLocalName()}.
+ */
+ public String getLocalName() {
+ return SVG_FONT_TAG;
+ }
+
+ // SVGExternalResourcesRequired support /////////////////////////////
+
+ /**
+ * <b>DOM</b>: Implements {@link
+ * org.w3c.dom.svg.SVGExternalResourcesRequired#getExternalResourcesRequired()}.
+ */
+ public SVGAnimatedBoolean getExternalResourcesRequired() {
+ return externalResourcesRequired;
+ }
+
+ /**
+ * Returns a new uninitialized instance of this object's class.
+ */
+ protected Node newNode() {
+ return new SVGOMFontElement();
+ }
+
+ /**
+ * Returns the table of TraitInformation objects for this element.
+ */
+ protected DoublyIndexedTable getTraitInformationTable() {
+ return xmlTraitInformation;
+ }
+}
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontFaceElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontFaceElement.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontFaceElement.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontFaceElement.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,145 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+import org.w3c.dom.Node;
+import org.w3c.dom.svg.SVGFontFaceElement;
+
+/**
+ * This class implements {@link SVGFontFaceElement}.
+ *
+ * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
+ * @version $Id$
+ */
+public class SVGOMFontFaceElement
+ extends SVGOMElement
+ implements SVGFontFaceElement {
+
+// /**
+// * Table mapping XML attribute names to TraitInformation objects.
+// */
+// protected static DoublyIndexedTable xmlTraitInformation;
+// static {
+// DoublyIndexedTable t = new DoublyIndexedTable(SVGOMElement.xmlTraitInformation);
+// t.put(null, SVG_FONT_FAMILY_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_FONT_STYLE_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_FONT_VARIANT_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_FONT_WEIGHT_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_FONT_STRETCH_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_FONT_SIZE_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_UNICODE_RANGE_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_UNITS_PER_EM_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_PANOSE_1_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_STEMV_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_STEMH_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_SLOPE_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_CAP_HEIGHT_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_X_HEIGHT_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_ACCENT_HEIGHT_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_ASCENT_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_DESCENT_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_WIDTHS_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_BBOX_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_IDEOGRAPHIC_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_ALPHABETIC_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_MATHEMATICAL_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_HANGING_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_V_IDEOGRAPHIC_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_V_ALPHABETIC_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_V_MATHEMATICAL_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_V_HANGING_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_UNDERLINE_POSITION_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_UNDERLINE_THICKNESS_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_STRIKETHROUGH_POSITION_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_STRIKETHROUGH_THICKNESS_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_OVERLINE_POSITION_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// t.put(null, SVG_OVERLINE_THICKNESS_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// xmlTraitInformation = t;
+// }
+
+ /**
+ * Creates a new SVGOMFontFaceElement object.
+ */
+ protected SVGOMFontFaceElement() {
+ }
+
+ /**
+ * Creates a new SVGOMFontFaceElement object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ public SVGOMFontFaceElement(String prefix, AbstractDocument owner) {
+ super(prefix, owner);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link Node#getLocalName()}.
+ */
+ public String getLocalName() {
+ return SVG_FONT_FACE_TAG;
+ }
+
+ /**
+ * Returns a new uninitialized instance of this object's class.
+ */
+ protected Node newNode() {
+ return new SVGOMFontFaceElement();
+ }
+
+// /**
+// * Returns the table of TraitInformation objects for this element.
+// */
+// protected DoublyIndexedTable getTraitInformationTable() {
+// return xmlTraitInformation;
+// }
+}
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontFaceFormatElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontFaceFormatElement.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontFaceFormatElement.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontFaceFormatElement.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,83 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+
+import org.w3c.dom.Node;
+import org.w3c.dom.svg.SVGFontFaceFormatElement;
+
+/**
+ * This class implements {@link SVGFontFaceFormatElement}.
+ *
+ * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
+ * @version $Id$
+ */
+public class SVGOMFontFaceFormatElement
+ extends SVGOMElement
+ implements SVGFontFaceFormatElement {
+
+// /**
+// * Table mapping XML attribute names to TraitInformation objects.
+// */
+// protected static DoublyIndexedTable xmlTraitInformation;
+// static {
+// DoublyIndexedTable t =
+// new DoublyIndexedTable(SVGOMElement.xmlTraitInformation);
+// t.put(null, SVG_STRING_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// xmlTraitInformation = t;
+// }
+
+ /**
+ * Creates a new SVGOMFontFaceFormatElement object.
+ */
+ protected SVGOMFontFaceFormatElement() {
+ }
+
+ /**
+ * Creates a new SVGOMFontFaceFormatElement object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ public SVGOMFontFaceFormatElement(String prefix, AbstractDocument owner) {
+ super(prefix, owner);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link Node#getLocalName()}.
+ */
+ public String getLocalName() {
+ return SVG_FONT_FACE_FORMAT_TAG;
+ }
+
+ /**
+ * Returns a new uninitialized instance of this object's class.
+ */
+ protected Node newNode() {
+ return new SVGOMFontFaceFormatElement();
+ }
+
+// /**
+// * Returns the table of TraitInformation objects for this element.
+// */
+// protected DoublyIndexedTable getTraitInformationTable() {
+// return xmlTraitInformation;
+// }
+}
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontFaceNameElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontFaceNameElement.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontFaceNameElement.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontFaceNameElement.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,83 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+
+import org.w3c.dom.Node;
+import org.w3c.dom.svg.SVGFontFaceNameElement;
+
+/**
+ * This class implements {@link SVGFontFaceNameElement}.
+ *
+ * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
+ * @version $Id$
+ */
+public class SVGOMFontFaceNameElement
+ extends SVGOMElement
+ implements SVGFontFaceNameElement {
+
+// /**
+// * Table mapping XML attribute names to TraitInformation objects.
+// */
+// protected static DoublyIndexedTable xmlTraitInformation;
+// static {
+// DoublyIndexedTable t =
+// new DoublyIndexedTable(SVGOMElement.xmlTraitInformation);
+// t.put(null, SVG_NAME_ATTRIBUTE,
+// new TraitInformation(false, SVGTypes.TYPE_CDATA));
+// xmlTraitInformation = t;
+// }
+
+ /**
+ * Creates a new SVGOMFontFaceNameElement object.
+ */
+ protected SVGOMFontFaceNameElement() {
+ }
+
+ /**
+ * Creates a new SVGOMFontFaceNameElement object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ public SVGOMFontFaceNameElement(String prefix, AbstractDocument owner) {
+ super(prefix, owner);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link Node#getLocalName()}.
+ */
+ public String getLocalName() {
+ return SVG_FONT_FACE_NAME_TAG;
+ }
+
+ /**
+ * Returns a new uninitialized instance of this object's class.
+ */
+ protected Node newNode() {
+ return new SVGOMFontFaceNameElement();
+ }
+
+// /**
+// * Returns the table of TraitInformation objects for this element.
+// */
+// protected DoublyIndexedTable getTraitInformationTable() {
+// return xmlTraitInformation;
+// }
+}
Added: xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontFaceSrcElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontFaceSrcElement.java?rev=1647590&view=auto
==============================================================================
--- xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontFaceSrcElement.java (added)
+++ xmlgraphics/batik/branches/submodules_cyclic_deps/sources/org/apache/batik/anim/dom/SVGOMFontFaceSrcElement.java Tue Dec 23 15:10:45 2014
@@ -0,0 +1,63 @@
+/*
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ */
+package org.apache.batik.anim.dom;
+
+import org.apache.batik.dom.AbstractDocument;
+import org.w3c.dom.Node;
+import org.w3c.dom.svg.SVGFontFaceSrcElement;
+
+/**
+ * This class implements {@link SVGFontFaceSrcElement}.
+ *
+ * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
+ * @version $Id$
+ */
+public class SVGOMFontFaceSrcElement
+ extends SVGOMElement
+ implements SVGFontFaceSrcElement {
+
+ /**
+ * Creates a new SVGOMFontFaceSrcElement object.
+ */
+ protected SVGOMFontFaceSrcElement() {
+ }
+
+ /**
+ * Creates a new SVGOMFontFaceSrcElement object.
+ * @param prefix The namespace prefix.
+ * @param owner The owner document.
+ */
+ public SVGOMFontFaceSrcElement(String prefix, AbstractDocument owner) {
+ super(prefix, owner);
+ }
+
+ /**
+ * <b>DOM</b>: Implements {@link Node#getLocalName()}.
+ */
+ public String getLocalName() {
+ return SVG_FONT_FACE_SRC_TAG;
+ }
+
+ /**
+ * Returns a new uninitialized instance of this object's class.
+ */
+ protected Node newNode() {
+ return new SVGOMFontFaceSrcElement();
+ }
+}