Interface SVGElement

All Superinterfaces:
Element, Node
All Known Subinterfaces:
SVGAElement, SVGAltGlyphDefElement, SVGAltGlyphElement, SVGAltGlyphItemElement, SVGAnimateColorElement, SVGAnimateElement, SVGAnimateMotionElement, SVGAnimateTransformElement, SVGAnimationElement, SVGCircleElement, SVGClipPathElement, SVGColorProfileElement, SVGComponentTransferFunctionElement, SVGCursorElement, SVGDefinitionSrcElement, SVGDefsElement, SVGDescElement, SVGEllipseElement, SVGFEBlendElement, SVGFEColorMatrixElement, SVGFEComponentTransferElement, SVGFECompositeElement, SVGFEConvolveMatrixElement, SVGFEDiffuseLightingElement, SVGFEDisplacementMapElement, SVGFEDistantLightElement, SVGFEFloodElement, SVGFEFuncAElement, SVGFEFuncBElement, SVGFEFuncGElement, SVGFEFuncRElement, SVGFEGaussianBlurElement, SVGFEImageElement, SVGFEMergeElement, SVGFEMergeNodeElement, SVGFEMorphologyElement, SVGFEOffsetElement, SVGFEPointLightElement, SVGFESpecularLightingElement, SVGFESpotLightElement, SVGFETileElement, SVGFETurbulenceElement, SVGFilterElement, SVGFontElement, SVGFontFaceElement, SVGFontFaceFormatElement, SVGFontFaceNameElement, SVGFontFaceSrcElement, SVGFontFaceUriElement, SVGForeignObjectElement, SVGGElement, SVGGeometryElement, SVGGlyphElement, SVGGlyphRefElement, SVGGradientElement, SVGGraphicsElement, SVGHKernElement, SVGImageElement, SVGLinearGradientElement, SVGLineElement, SVGMarkerElement, SVGMaskElement, SVGMetadataElement, SVGMissingGlyphElement, SVGMPathElement, SVGPathElement, SVGPatternElement, SVGPolygonElement, SVGPolylineElement, SVGRadialGradientElement, SVGRectElement, SVGScriptElement, SVGSetElement, SVGStopElement, SVGStyleElement, SVGSVGElement, SVGSwitchElement, SVGSymbolElement, SVGTextContentElement, SVGTextElement, SVGTextPathElement, SVGTextPositioningElement, SVGTitleElement, SVGTRefElement, SVGTSpanElement, SVGUseElement, SVGViewElement, SVGVKernElement

public interface SVGElement extends Element
  • Method Details

    • getId

      String getId()
      Gets the id content attribute.
      Returns:
      the value of the id attribute, or the empty string if none.
    • setId

      void setId(String id) throws DOMException
      Sets the id content attribute.
      Parameters:
      id - the value of the id attribute.
      Throws:
      DOMException
    • getXMLbase

      String getXMLbase()
    • setXMLbase

      void setXMLbase(String xmlbase) throws DOMException
      Throws:
      DOMException
    • getOwnerSVGElement

      SVGSVGElement getOwnerSVGElement()
      Gets the nearest ancestor svg element.
      Returns:
      the nearest ancestor svg element, or null if the current element is the outermost svg element.
    • getViewportElement

      SVGElement getViewportElement()
      Get the element that provides the SVG viewport for this element.
      Returns:
      the nearest ancestor element that establishes an SVG viewport, or null if the current element is the outermost svg element.