Interface SVGTextContentElement

All Superinterfaces:
Element, EventTarget, InnerHTML, Node, NonDocumentTypeChildNode, ParentNode, SVGElement, SVGExternalResourcesRequired, SVGLangSpace, SVGStylable, SVGTests
All Known Subinterfaces:
SVGAltGlyphElement, SVGTextElement, SVGTextPathElement, SVGTextPositioningElement, SVGTRefElement, SVGTSpanElement
All Known Implementing Classes:
SVGTextElementImpl

public interface SVGTextContentElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable

SVGTextContentElement interface.

  • Field Details

    • LENGTHADJUST_UNKNOWN

      static final short LENGTHADJUST_UNKNOWN
      Constant LENGTHADJUST_UNKNOWN=0
      See Also:
    • LENGTHADJUST_SPACING

      static final short LENGTHADJUST_SPACING
      Constant LENGTHADJUST_SPACING=1
      See Also:
    • LENGTHADJUST_SPACINGANDGLYPHS

      static final short LENGTHADJUST_SPACINGANDGLYPHS
      Constant LENGTHADJUST_SPACINGANDGLYPHS=2
      See Also:
  • Method Details

    • getTextLength

      SVGAnimatedLength getTextLength()

      getTextLength.

      Returns:
      a SVGAnimatedLength object.
    • getLengthAdjust

      SVGAnimatedEnumeration getLengthAdjust()

      getLengthAdjust.

      Returns:
      a SVGAnimatedEnumeration object.
    • getNumberOfChars

      int getNumberOfChars()

      getNumberOfChars.

      Returns:
      a Integer object.
    • getComputedTextLength

      float getComputedTextLength()

      getComputedTextLength.

      Returns:
      a float.
    • getSubStringLength

      float getSubStringLength(int charnum, int nchars)

      getSubStringLength.

      Parameters:
      charnum - a Integer object.
      nchars - a Integer object.
      Returns:
      a float.
      Throws:
      DOMException - if any.
    • getStartPositionOfChar

      SVGPoint getStartPositionOfChar(int charnum)

      getStartPositionOfChar.

      Parameters:
      charnum - a Integer object.
      Returns:
      a SVGPoint object.
      Throws:
      DOMException - if any.
    • getEndPositionOfChar

      SVGPoint getEndPositionOfChar(int charnum)

      getEndPositionOfChar.

      Parameters:
      charnum - a Integer object.
      Returns:
      a SVGPoint object.
      Throws:
      DOMException - if any.
    • getExtentOfChar

      SVGRect getExtentOfChar(int charnum)

      getExtentOfChar.

      Parameters:
      charnum - a Integer object.
      Returns:
      a SVGRect object.
      Throws:
      DOMException - if any.
    • getRotationOfChar

      float getRotationOfChar(int charnum)

      getRotationOfChar.

      Parameters:
      charnum - a Integer object.
      Returns:
      a float.
      Throws:
      DOMException - if any.
    • getCharNumAtPosition

      int getCharNumAtPosition(SVGPoint point)

      getCharNumAtPosition.

      Parameters:
      point - a SVGPoint object.
      Returns:
      a Integer object.
    • selectSubString

      void selectSubString(int charnum, int nchars)

      selectSubString.

      Parameters:
      charnum - a Integer object.
      nchars - a Integer object.
      Throws:
      DOMException - if any.