Package org.w3c.dom.mathml
Interface MathMLPresentationToken
- All Superinterfaces:
Element,MathMLElement,MathMLPresentationElement,Node
- All Known Subinterfaces:
MathMLOperatorElement,MathMLStringLitElement
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
-
Field Summary
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE -
Method Summary
Modifier and TypeMethodDescriptionReturns the child Nodes of the element.The mathbackground attribute for the element, if specified.The mathcolor attribute for the element, if specified.The mathsize attribute for the element, if specified.The mathvariant attribute for the element, if specified.voidsetMathbackground(String mathbackground) setter for the mathbackground attribute.voidsetMathcolor(String mathcolor) setter for the mathcolor attribute.voidsetMathsize(String mathsize) setter for the mathsize attribute.voidsetMathvariant(String mathvariant) setter for the mathvariant attribute.Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSMethods inherited from interface org.w3c.dom.mathml.MathMLElement
getClassName, getHref, getId, getMathElementStyle, getOwnerMathElement, getXref, setClassName, setHref, setId, setMathElementStyle, setXrefMethods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
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
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
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
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
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.
-