org.vectomatic.dom.svg
Class OMSVGElement

java.lang.Object
  extended by org.vectomatic.dom.svg.OMNode
      extended by org.vectomatic.dom.svg.OMElement
          extended by org.vectomatic.dom.svg.OMSVGElement
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers
Direct Known Subclasses:
OMSVGAElement, OMSVGAltGlyphDefElement, OMSVGAltGlyphItemElement, OMSVGAnimationElement, OMSVGCircleElement, OMSVGClipPathElement, OMSVGColorProfileElement, OMSVGComponentTransferFunctionElement, OMSVGCursorElement, OMSVGDefsElement, OMSVGDescElement, OMSVGEllipseElement, OMSVGFEBlendElement, OMSVGFEColorMatrixElement, OMSVGFEComponentTransferElement, OMSVGFECompositeElement, OMSVGFEConvolveMatrixElement, OMSVGFEDiffuseLightingElement, OMSVGFEDisplacementMapElement, OMSVGFEDistantLightElement, OMSVGFEFloodElement, OMSVGFEGaussianBlurElement, OMSVGFEImageElement, OMSVGFEMergeElement, OMSVGFEMergeNodeElement, OMSVGFEMorphologyElement, OMSVGFEOffsetElement, OMSVGFEPointLightElement, OMSVGFESpecularLightingElement, OMSVGFESpotLightElement, OMSVGFETileElement, OMSVGFETurbulenceElement, OMSVGFilterElement, OMSVGFontElement, OMSVGFontFaceElement, OMSVGFontFaceFormatElement, OMSVGFontFaceNameElement, OMSVGFontFaceSrcElement, OMSVGFontFaceUriElement, OMSVGForeignObjectElement, OMSVGGElement, OMSVGGlyphElement, OMSVGGlyphRefElement, OMSVGGradientElement, OMSVGHKernElement, OMSVGImageElement, OMSVGLineElement, OMSVGMarkerElement, OMSVGMaskElement, OMSVGMetadataElement, OMSVGMissingGlyphElement, OMSVGMPathElement, OMSVGPathElement, OMSVGPatternElement, OMSVGPolygonElement, OMSVGPolylineElement, OMSVGRectElement, OMSVGScriptElement, OMSVGStopElement, OMSVGStyleElement, OMSVGSVGElement, OMSVGSwitchElement, OMSVGSymbolElement, OMSVGTextContentElement, OMSVGTitleElement, OMSVGUseElement, OMSVGViewElement, OMSVGVKernElement

public abstract class OMSVGElement
extends OMElement

All of the SVG DOM interfaces that correspond directly to elements in the SVG language (such as the OMSVGPathElement interface for the path element) derive from the OMSVGElement interface.


Field Summary
 
Fields inherited from class org.vectomatic.dom.svg.OMNode
eventBus, ot
 
Constructor Summary
protected OMSVGElement(SVGElement ot)
           
 
Method Summary
 void addClassNameBaseVal(String className)
          Adds the specified class name to the baseVal CSS class name of this element
 OMSVGAnimatedString getClassName()
          Returns the CSS class name of this element.
 String getMarkup()
          Returns the XML markup which corresponds to the subtree rooted at this element
 OMSVGSVGElement getOwnerSVGElement()
          The nearest ancestor svg element.
 OMSVGStyle getStyle()
          Returns the CSS style of this element
 OMSVGElement getViewportElement()
          The element which established the current viewport.
 String getXmlbase()
          Corresponds to attribute xml:base on the given element.
 void removeClassNameBaseVal(String className)
          Removes the specified class name from the baseVal CSS class name of this element
 void replaceClassNameBaseVal(String oldClassName, String newClassName)
          Replaces the specified class name in the baseVal CSS class name of this element with a new class name
 void setClassNameBaseVal(String className)
          Sets the baseVal CSS class name of this element to the specified value
 void setId(String value)
          Sets the 'id' attribute of the specified element
 void setXmlbase(String value)
          Corresponds to attribute xml:base on the given element.
 
Methods inherited from class org.vectomatic.dom.svg.OMElement
getAttribute, getAttributeNode, getAttributeNS, getAttributes, getElement, getElementsByTagName, getElementsByTagNameNS, getId, getTagName, hasAttribute, hasAttributeNS, removeAttribute, setAttribute, setAttributeNode, setAttributeNS
 
Methods inherited from class org.vectomatic.dom.svg.OMNode
addDomHandler, addHandler, appendChild, cleanup, cloneNode, convert, convertList, dispatch, fireEvent, getChildNodes, getEventBus, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, normalize, removeChild, replaceChild, setNodeValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OMSVGElement

protected OMSVGElement(SVGElement ot)
Method Detail

getXmlbase

public final String getXmlbase()
Corresponds to attribute xml:base on the given element.


setXmlbase

public final void setXmlbase(String value)
                      throws com.google.gwt.core.client.JavaScriptException
Corresponds to attribute xml:base on the given element.

Throws:
DOMException(NO_MODIFICATION_ALLOWED_ERR) - Raised on an attempt to change the value of a read only attribute.
com.google.gwt.core.client.JavaScriptException

getOwnerSVGElement

public final OMSVGSVGElement getOwnerSVGElement()
The nearest ancestor svg element. Null if the given element is the outermost svg element.


getViewportElement

public final OMSVGElement getViewportElement()
The element which established the current viewport. Often, the nearest ancestor svg element. Null if the given element is the outermost svg element.


setId

public final void setId(String value)
Sets the 'id' attribute of the specified element

Parameters:
value - the value of the 'id' attribute

getStyle

public OMSVGStyle getStyle()
Returns the CSS style of this element


getClassName

public final OMSVGAnimatedString getClassName()
Returns the CSS class name of this element. Note that in SVG, this class name can change over the time (there is a baseVal and an animVal).

Returns:
the CSS class name of this element

addClassNameBaseVal

public final void addClassNameBaseVal(String className)
Adds the specified class name to the baseVal CSS class name of this element

Parameters:
className - the class name to add

removeClassNameBaseVal

public final void removeClassNameBaseVal(String className)
Removes the specified class name from the baseVal CSS class name of this element

Parameters:
className - the class name to remove

replaceClassNameBaseVal

public final void replaceClassNameBaseVal(String oldClassName,
                                          String newClassName)
Replaces the specified class name in the baseVal CSS class name of this element with a new class name

Parameters:
oldClassName - the class name to replace
newClassName - the replacement class name

setClassNameBaseVal

public final void setClassNameBaseVal(String className)
Sets the baseVal CSS class name of this element to the specified value

Parameters:
className - the class name

getMarkup

public final String getMarkup()
Returns the XML markup which corresponds to the subtree rooted at this element

Returns:
the XML markup which corresponds to the subtree rooted at this element


Copyright © 2012. All Rights Reserved.