| org.apache.batik.dom.AbstractElement org.apache.batik.dom.svg.AbstractElement org.apache.batik.dom.svg.SVGOMElement
All known Subclasses: org.apache.batik.dom.svg.SVGOMAltGlyphDefElement, org.apache.batik.dom.svg.SVGOMDefinitionSrcElement, org.apache.batik.dom.svg.SVGOMFEMergeNodeElement, org.apache.batik.dom.svg.SVGOMHKernElement, org.apache.batik.dom.svg.SVGOMAnimationElement, org.apache.batik.dom.svg12.SVGOMHandlerElement, org.apache.batik.dom.svg.SVGOMVKernElement, org.apache.batik.dom.svg.SVGOMMetadataElement, org.apache.batik.dom.svg.SVGOMAltGlyphItemElement, org.apache.batik.dom.svg.SVGOMURIReferenceElement, org.apache.batik.dom.svg.SVGOMComponentTransferFunctionElement, org.apache.batik.dom.svg.SVGOMFontFaceSrcElement, org.apache.batik.dom.svg.SVGOMStyleElement, org.apache.batik.dom.svg.SVGOMFESpotLightElement, org.apache.batik.extension.ExtensionElement, org.apache.batik.dom.svg.SVGOMFontFaceElement, org.apache.batik.dom.svg12.XBLOMElement, org.apache.batik.dom.svg.SVGOMFEPointLightElement, org.apache.batik.dom.svg.SVGOMViewElement, org.apache.batik.dom.svg.SVGOMFontFaceFormatElement, org.apache.batik.dom.svg.SVGOMFontFaceNameElement, org.apache.batik.dom.svg.SVGOMFontFaceUriElement, org.apache.batik.dom.svg.SVGStylableElement, org.apache.batik.dom.svg.SVGOMFEDistantLightElement,
Method Summary | |
public void | addTargetListener(String ns, String an, boolean isCSS, AnimationTargetListener l) Adds a listener for changes to the given attribute value. | protected Node | copyInto(Node n) Copy the fields of the current node into the given node. | protected SVGOMAnimatedBoolean | createLiveAnimatedBoolean(String ns, String ln, boolean def) Creates a new
SVGOMAnimatedBoolean and stores it in
this element's LiveAttributeValue table. | protected SVGOMAnimatedEnumeration | createLiveAnimatedEnumeration(String ns, String ln, String[] val, short def) Creates a new
SVGOMAnimatedEnumeration and stores it in
this element's LiveAttributeValue table. | protected SVGOMAnimatedInteger | createLiveAnimatedInteger(String ns, String ln, int def) Creates a new
SVGOMAnimatedInteger and stores it in
this element's LiveAttributeValue table. | protected SVGOMAnimatedLength | createLiveAnimatedLength(String ns, String ln, String val, short dir, boolean nonneg) Creates a new
SVGOMAnimatedLength and stores it in
this element's LiveAttributeValue table. | protected SVGOMAnimatedLengthList | createLiveAnimatedLengthList(String ns, String ln, String def, boolean emptyAllowed, short dir) Creates a new
SVGOMAnimatedLengthList and stores it in
this element's LiveAttributeValue table. | protected SVGOMAnimatedMarkerOrientValue | createLiveAnimatedMarkerOrientValue(String ns, String ln) Creates a new
SVGOMAnimatedMarkerOrientValue and stores it in
this element's LiveAttributeValue table. | protected SVGOMAnimatedNumber | createLiveAnimatedNumber(String ns, String ln, float def) Creates a new
SVGOMAnimatedNumber and stores it in
this element's LiveAttributeValue table. | protected SVGOMAnimatedNumber | createLiveAnimatedNumber(String ns, String ln, float def, boolean allowPercentage) Creates a new
SVGOMAnimatedNumber that can be parsed as a
percentage and stores it in this element's LiveAttributeValue table. | protected SVGOMAnimatedNumberList | createLiveAnimatedNumberList(String ns, String ln, String def, boolean canEmpty) Creates a new
SVGOMAnimatedNumberList and stores it in
this element's LiveAttributeValue table. | protected SVGOMAnimatedPathData | createLiveAnimatedPathData(String ns, String ln, String def) Creates a new
SVGOMAnimatedPathData and stores it in
this element's LiveAttributeValue table. | protected SVGOMAnimatedPoints | createLiveAnimatedPoints(String ns, String ln, String def) Creates a new
SVGOMAnimatedPoints and stores it in
this element's LiveAttributeValue table. | protected SVGOMAnimatedPreserveAspectRatio | createLiveAnimatedPreserveAspectRatio() Creates a new
SVGOMAnimatedPreserveAspectRatio and stores it in
this element's LiveAttributeValue table. | protected SVGOMAnimatedString | createLiveAnimatedString(String ns, String ln) Creates a new
SVGOMAnimatedString and stores it in
this element's LiveAttributeValue table. | protected SVGOMAnimatedTransformList | createLiveAnimatedTransformList(String ns, String ln, String def) Creates a new
SVGOMAnimatedTransformList and stores it in
this element's LiveAttributeValue table. | public SVGException | createSVGException(short type, String key, Object[] args) Creates an SVGException with the appropriate error message. | protected Node | deepCopyInto(Node n) Deeply copy the fields of the current node into the given node. | protected Node | deepExport(Node n, AbstractDocument d) Deeply exports this node to the given document. | protected Node | export(Node n, AbstractDocument d) Exports this node to the given document. | void | fireBaseAttributeListeners(String ns, String ln) Fires the listeners registered for changes to the base value of the
given attribute. | final protected short | getAttributePercentageInterpretation(String ns, String ln) Gets how percentage values are interpreted by the given attribute. | final public int | getAttributeType(String ns, String ln) Returns the type of the given attribute. | protected AnimatableValue | getBaseValue(SVGAnimatedInteger n, SVGAnimatedInteger on) Returns an AnimatableNumberOptionalNumberValue for the base value of
the given two SVGAnimatedIntegers. | protected AnimatableValue | getBaseValue(SVGAnimatedNumber n, SVGAnimatedNumber on) Returns an AnimatableNumberOptionalNumberValue for the base value of
the given two SVGAnimatedNumbers. | protected String | getCascadedXMLBase(Node node) Returns the xml:base attribute value of the given element,
resolving any dependency on parent bases if needed. | public Element | getElement() Returns the element. | public String | getId() DOM: Implements
SVGElement.getId . | public String | getNamespaceURI() DOM: Implements
Node.getNamespaceURI . | public String | getNodeName() DOM: Implements
Node.getNodeName . | public SVGSVGElement | getOwnerSVGElement() DOM: Implements
SVGElement.getOwnerSVGElement . | public short | getPercentageInterpretation(String ns, String an, boolean isCSS) Gets how percentage values are interpreted by the given attribute
or property. | public int | getPropertyType(String pn) Returns the type of the given property. | public SVGContext | getSVGContext() Returns the SVG context used to get SVG specific informations. | protected DoublyIndexedTable | getTraitInformationTable() Returns the table of TraitInformation objects for this element. | public AnimatableValue | getUnderlyingValue(String ns, String ln) Returns the underlying value of an animatable XML attribute. | public SVGElement | getViewportElement() DOM: Implements
SVGElement.getViewportElement . | public String | getXMLbase() DOM: Implements
SVGElement.getXMLbase . | public boolean | hasProperty(String pn) Returns whether the given CSS property is available on this element. | public boolean | hasTrait(String ns, String ln) Returns whether the given trait is available on this element. | protected void | initializeAllLiveAttributes() Initializes all live attributes for this element. | public boolean | isAttributeAdditive(String ns, String ln) Returns whether the given XML attribute is additive. | final public boolean | isAttributeAnimatable(String ns, String ln) Returns whether the given XML attribute is animatable. | public boolean | isPropertyAdditive(String pn) Returns whether the given CSS property is additive. | public boolean | isPropertyAnimatable(String pn) Returns whether the given CSS property is animatable. | public boolean | isReadonly() Tests whether this node is readonly. | public boolean | isTraitAdditive(String ns, String tn) Returns whether the given trait is additive. | public boolean | isTraitAnimatable(String ns, String tn) Returns whether the given trait is animatable. | public void | removeTargetListener(String ns, String an, boolean isCSS, AnimationTargetListener l) Removes a listener for changes to the given attribute value. | public void | setId(String id) DOM: Implements
SVGElement.setId(String) . | public void | setPrefix(String prefix) DOM: Implements
Node.setPrefix(String) . | public void | setReadonly(boolean v) Sets this node readonly attribute. | public void | setSVGContext(SVGContext ctx) Sets the SVG context to use to get SVG specific informations. | public void | setXMLbase(String xmlbase) DOM: Implements
SVGElement.setXMLbase(String) . | public float | svgToUserSpace(float v, short type, short pcInterp) Converts the given SVG length into user units. | public void | updateAttributeValue(String ns, String ln, AnimatableValue val) Updates an attribute value in this target. | public void | updateOtherValue(String type, AnimatableValue val) Updates a 'other' animation value in this target. | public void | updatePropertyValue(String pn, AnimatableValue val) Updates a property value in this target. | public boolean | useLinearRGBColorInterpolation() Returns whether color interpolations should be done in linear RGB
color space rather than sRGB. |
readonly | protected transient boolean readonly(Code) | | Is this element immutable?
|
svgContext | protected transient SVGContext svgContext(Code) | | The SVG context to get SVG specific informations.
|
xmlTraitInformation | protected static DoublyIndexedTable xmlTraitInformation(Code) | | Table mapping XML attribute names to TraitInformation objects.
|
SVGOMElement | protected SVGOMElement()(Code) | | Creates a new Element object.
|
SVGOMElement | protected SVGOMElement(String prefix, AbstractDocument owner)(Code) | | Creates a new Element object.
Parameters: prefix - The namespace prefix. Parameters: owner - The owner document. |
copyInto | protected Node copyInto(Node n)(Code) | | Copy the fields of the current node into the given node.
Parameters: n - a node of the type of this. |
createSVGException | public SVGException createSVGException(short type, String key, Object[] args)(Code) | | Creates an SVGException with the appropriate error message.
|
deepCopyInto | protected Node deepCopyInto(Node n)(Code) | | Deeply copy the fields of the current node into the given node.
Parameters: n - a node of the type of this. |
fireBaseAttributeListeners | void fireBaseAttributeListeners(String ns, String ln)(Code) | | Fires the listeners registered for changes to the base value of the
given attribute.
|
getAttributePercentageInterpretation | final protected short getAttributePercentageInterpretation(String ns, String ln)(Code) | | Gets how percentage values are interpreted by the given attribute.
|
getAttributeType | final public int getAttributeType(String ns, String ln)(Code) | | Returns the type of the given attribute.
|
getBaseValue | protected AnimatableValue getBaseValue(SVGAnimatedInteger n, SVGAnimatedInteger on)(Code) | | Returns an AnimatableNumberOptionalNumberValue for the base value of
the given two SVGAnimatedIntegers.
|
getBaseValue | protected AnimatableValue getBaseValue(SVGAnimatedNumber n, SVGAnimatedNumber on)(Code) | | Returns an AnimatableNumberOptionalNumberValue for the base value of
the given two SVGAnimatedNumbers.
|
getCascadedXMLBase | protected String getCascadedXMLBase(Node node)(Code) | | Returns the xml:base attribute value of the given element,
resolving any dependency on parent bases if needed.
Follows shadow trees when moving to parent nodes.
|
getId | public String getId()(Code) | | DOM: Implements
SVGElement.getId .
|
getOwnerSVGElement | public SVGSVGElement getOwnerSVGElement()(Code) | | DOM: Implements
SVGElement.getOwnerSVGElement .
|
getPercentageInterpretation | public short getPercentageInterpretation(String ns, String an, boolean isCSS)(Code) | | Gets how percentage values are interpreted by the given attribute
or property.
|
getPropertyType | public int getPropertyType(String pn)(Code) | | Returns the type of the given property.
|
getSVGContext | public SVGContext getSVGContext()(Code) | | Returns the SVG context used to get SVG specific informations.
|
getTraitInformationTable | protected DoublyIndexedTable getTraitInformationTable()(Code) | | Returns the table of TraitInformation objects for this element.
|
getViewportElement | public SVGElement getViewportElement()(Code) | | DOM: Implements
SVGElement.getViewportElement .
|
getXMLbase | public String getXMLbase()(Code) | | DOM: Implements
SVGElement.getXMLbase .
|
hasProperty | public boolean hasProperty(String pn)(Code) | | Returns whether the given CSS property is available on this element.
|
hasTrait | public boolean hasTrait(String ns, String ln)(Code) | | Returns whether the given trait is available on this element.
|
initializeAllLiveAttributes | protected void initializeAllLiveAttributes()(Code) | | Initializes all live attributes for this element.
|
isAttributeAdditive | public boolean isAttributeAdditive(String ns, String ln)(Code) | | Returns whether the given XML attribute is additive.
|
isAttributeAnimatable | final public boolean isAttributeAnimatable(String ns, String ln)(Code) | | Returns whether the given XML attribute is animatable.
|
isPropertyAdditive | public boolean isPropertyAdditive(String pn)(Code) | | Returns whether the given CSS property is additive.
|
isPropertyAnimatable | public boolean isPropertyAnimatable(String pn)(Code) | | Returns whether the given CSS property is animatable.
|
isReadonly | public boolean isReadonly()(Code) | | Tests whether this node is readonly.
|
isTraitAdditive | public boolean isTraitAdditive(String ns, String tn)(Code) | | Returns whether the given trait is additive.
|
isTraitAnimatable | public boolean isTraitAnimatable(String ns, String tn)(Code) | | Returns whether the given trait is animatable.
|
setId | public void setId(String id)(Code) | | DOM: Implements
SVGElement.setId(String) .
|
setReadonly | public void setReadonly(boolean v)(Code) | | Sets this node readonly attribute.
|
setSVGContext | public void setSVGContext(SVGContext ctx)(Code) | | Sets the SVG context to use to get SVG specific informations.
Parameters: ctx - the SVG context |
setXMLbase | public void setXMLbase(String xmlbase) throws DOMException(Code) | | DOM: Implements
SVGElement.setXMLbase(String) .
|
svgToUserSpace | public float svgToUserSpace(float v, short type, short pcInterp)(Code) | | Converts the given SVG length into user units.
Parameters: v - the SVG length value Parameters: type - the SVG length units (one of theSVGLength.SVG_LENGTH_* constants) Parameters: pcInterp - how to interpretet percentage values (one of theSVGContext.PERCENTAGE_* constants) the SVG value in user units |
updatePropertyValue | public void updatePropertyValue(String pn, AnimatableValue val)(Code) | | Updates a property value in this target. Ignored for non-stylable
elements. Overridden in
SVGStylableElement to actually update
properties.
|
useLinearRGBColorInterpolation | public boolean useLinearRGBColorInterpolation()(Code) | | Returns whether color interpolations should be done in linear RGB
color space rather than sRGB. Overriden in
SVGStylableElement to actually look up the 'color-interpolation' property.
|
Methods inherited from org.apache.batik.dom.svg.AbstractElement | protected void attrAdded(Attr node, String newv)(Code)(Java Doc) protected void attrModified(Attr node, String oldv, String newv)(Code)(Java Doc) protected void attrRemoved(Attr node, String oldv)(Code)(Java Doc) protected NamedNodeMap createAttributes()(Code)(Java Doc) protected Node deepExport(Node n, AbstractDocument d)(Code)(Java Doc) protected Node export(Node n, AbstractDocument d)(Code)(Java Doc) protected AttributeInitializer getAttributeInitializer()(Code)(Java Doc) public Node getCSSFirstChild()(Code)(Java Doc) public Node getCSSLastChild()(Code)(Java Doc) public Node getCSSNextSibling()(Code)(Java Doc) public Node getCSSParentNode()(Code)(Java Doc) public Node getCSSPreviousSibling()(Code)(Java Doc) public LiveAttributeValue getLiveAttributeValue(String ns, String ln)(Code)(Java Doc) protected void initializeAttributes()(Code)(Java Doc) public boolean isHiddenFromSelectors()(Code)(Java Doc) public void putLiveAttributeValue(String ns, String ln, LiveAttributeValue val)(Code)(Java Doc) protected boolean resetAttribute(String ns, String prefix, String ln)(Code)(Java Doc) public void setUnspecifiedAttribute(String nsURI, String name, String value)(Code)(Java Doc)
|
Methods inherited from org.apache.batik.dom.AbstractElement | protected void attrAdded(Attr node, String newv)(Code)(Java Doc) protected void attrModified(Attr node, String oldv, String newv)(Code)(Java Doc) protected void attrRemoved(Attr node, String oldv)(Code)(Java Doc) protected void checkChildType(Node n, boolean replace)(Code)(Java Doc) protected Node copyInto(Node n)(Code)(Java Doc) protected NamedNodeMap createAttributes()(Code)(Java Doc) protected Node deepCopyInto(Node n)(Code)(Java Doc) protected Node deepExport(Node n, AbstractDocument d)(Code)(Java Doc) protected Node export(Node n, AbstractDocument d)(Code)(Java Doc) public void fireDOMAttrModifiedEvent(String name, Attr node, String oldv, String newv, short change)(Code)(Java Doc) public String getAttribute(String name)(Code)(Java Doc) public String getAttributeNS(String namespaceURI, String localName)(Code)(Java Doc) public Attr getAttributeNode(String name)(Code)(Java Doc) public Attr getAttributeNodeNS(String namespaceURI, String localName)(Code)(Java Doc) public NamedNodeMap getAttributes()(Code)(Java Doc) protected String getId()(Code)(Java Doc) protected Attr getIdAttribute()(Code)(Java Doc) public short getNodeType()(Code)(Java Doc) public TypeInfo getSchemaTypeInfo()(Code)(Java Doc) public String getTagName()(Code)(Java Doc) public boolean hasAttribute(String name)(Code)(Java Doc) public boolean hasAttributeNS(String namespaceURI, String localName)(Code)(Java Doc) public boolean hasAttributes()(Code)(Java Doc) protected void nodeAdded(Node node)(Code)(Java Doc) protected void nodeToBeRemoved(Node node)(Code)(Java Doc) public void normalize()(Code)(Java Doc) public void removeAttribute(String name) throws DOMException(Code)(Java Doc) public void removeAttributeNS(String namespaceURI, String localName) throws DOMException(Code)(Java Doc) public Attr removeAttributeNode(Attr oldAttr) throws DOMException(Code)(Java Doc) public void setAttribute(String name, String value) throws DOMException(Code)(Java Doc) public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException(Code)(Java Doc) public Attr setAttributeNode(Attr newAttr) throws DOMException(Code)(Java Doc) public Attr setAttributeNodeNS(Attr newAttr) throws DOMException(Code)(Java Doc) public void setIdAttribute(String name, boolean isId) throws DOMException(Code)(Java Doc) public void setIdAttributeNS(String ns, String ln, boolean isId) throws DOMException(Code)(Java Doc) public void setIdAttributeNode(Attr attr, boolean isId) throws DOMException(Code)(Java Doc)
|
|
|