Interface MathMLPresentationToken

All Superinterfaces:
Element, MathMLElement, MathMLPresentationElement, Node
All Known Subinterfaces:
MathMLOperatorElement, MathMLStringLitElement
All Known Implementing Classes:
AbstractTokenWithTextLayout, Mglyph, Mi, Mn, Mo, Ms, Mtext

public interface MathMLPresentationToken extends MathMLPresentationElement
This interface extends the MathMLElement interface to include access for attributes specific to text presentation. It serves as the base class for all MathML presentation token elements. Access to the body of the element is via the nodeValue attribute inherited from Node. Elements that expose only the core presentation token attributes are directly supported by this object. These elements are: mi mn mtext
  • Method Details

    • getMathvariant

      String getMathvariant()
      The mathvariant attribute for the element, if specified. One of the values normal, bold, italic, bold-italic, double-struck, bold-fraktur, script, bold-script, fraktur, sans-serif, bold-sans-serif, sans-serif-italic, sans-serif-bold-italic, or monospace.
      Returns:
      value of the mathvariant attribute.
    • setMathvariant

      void setMathvariant(String mathvariant)
      setter for the mathvariant attribute.
      Parameters:
      mathvariant - new value for mathvariant.
      See Also:
    • getMathsize

      String getMathsize()
      The mathsize attribute for the element, if specified. Either small, normal or big, or of the form number v-unit.
      Returns:
      value of the mathsize attribute.
    • setMathsize

      void setMathsize(String mathsize)
      setter for the mathsize attribute.
      Parameters:
      mathsize - new value for mathsize.
      See Also:
    • getMathcolor

      String getMathcolor()
      The mathcolor attribute for the element, if specified. The DOMString returned should be in one of the forms "#rgb" or "#rrggbb", or should be an html-color-name, as specified in .
      Returns:
      value of the mathcolor attribute.
    • setMathcolor

      void setMathcolor(String mathcolor)
      setter for the mathcolor attribute.
      Parameters:
      mathcolor - new value for mathcolor.
      See Also:
    • getMathbackground

      String getMathbackground()
      The mathbackground attribute for the element, if specified. The DOMString returned should be in one of the forms "#rgb" or "#rrggbb", or an html-color-name, as specified in , or the keyword "transparent".
      Returns:
      value of the mathbackground attribute.
    • setMathbackground

      void setMathbackground(String mathbackground)
      setter for the mathbackground attribute.
      Parameters:
      mathbackground - new value for mathbackground.
      See Also:
    • getContents

      MathMLNodeList getContents()
      Returns the child Nodes of the element. These should consist only of Text nodes, MathMLGlyphElements, and MathMLAlignMarkElements. Should behave the same as the base class's Node::childNodes attribute; however, it is provided here for clarity.
      Returns:
      value of the contents attribute.