Interface MathMLScriptElement

All Superinterfaces:
Element, MathMLElement, MathMLPresentationElement, Node
All Known Implementing Classes:
AbstractSubSuper, Msub, Msubsup, Msup

public interface MathMLScriptElement extends MathMLPresentationElement
This interface extends the MathMLPresentationElement interface for the MathML subscript, superscript and subscript-superscript pair elements msub, msup, and msubsup.
  • Method Details

    • getSubscriptshift

      String getSubscriptshift()
      A string representing the minimum amount to shift the baseline of the subscript down, if specified; this is the element's subscriptshift attribute. This must return null for an msup.
      Returns:
      value of the subscriptshift attribute.
    • setSubscriptshift

      void setSubscriptshift(String subscriptshift)
      setter for the subscriptshift attribute.
      Parameters:
      subscriptshift - new value for subscriptshift.
      See Also:
    • getSuperscriptshift

      String getSuperscriptshift()
      A string representing the minimum amount to shift the baseline of the superscript up, if specified; this is the element's superscriptshift attribute. This must return null for a msub.
      Returns:
      value of the superscriptshift attribute.
    • setSuperscriptshift

      void setSuperscriptshift(String superscriptshift)
      setter for the superscriptshift attribute.
      Parameters:
      superscriptshift - new value for superscriptshift.
      See Also:
    • getBase

      MathMLElement getBase()
      A MathMLElement representing the base of the script. This is the first child of the element.
      Returns:
      value of the base attribute.
    • setBase

      void setBase(MathMLElement base)
      setter for the base attribute.
      Parameters:
      base - new value for base.
      See Also:
    • getSubscript

      MathMLElement getSubscript()
      A MathMLElement representing the subscript of the script. This is the second child of a msub or msubsup; retrieval must return null for an msup.
      Returns:
      value of the subscript attribute.
    • setSubscript

      void setSubscript(MathMLElement subscript)
      setter for the subscript attribute.
      Parameters:
      subscript - new value for subscript.
      Throws:
      DOMException - HIERARCHY_REQUEST_ERR: Raised when the element is a msup.
      See Also:
    • getSuperscript

      MathMLElement getSuperscript()
      A MathMLElement representing the superscript of the script. This is the second child of a msup or the third child of a msubsup; retrieval must return null for an msub.
      Returns:
      value of the superscript attribute.
    • setSuperscript

      void setSuperscript(MathMLElement superscript)
      setter for the superscript attribute.
      Parameters:
      superscript - new value for superscript.
      Throws:
      DOMException - HIERARCHY_REQUEST_ERR: Raised when the element is a msub.
      See Also: