Package org.w3c.dom.mathml
Interface MathMLScriptElement
- All Superinterfaces:
Element,MathMLElement,MathMLPresentationElement,Node
- All Known Implementing Classes:
AbstractSubSuper,Msub,Msubsup,Msup
This interface extends the MathMLPresentationElement interface for the
MathML subscript, superscript and subscript-superscript pair elements msub,
msup, and msubsup.
-
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 TypeMethodDescriptiongetBase()A MathMLElement representing the base of the script.A MathMLElement representing the subscript of the script.A string representing the minimum amount to shift the baseline of the subscript down, if specified; this is the element's subscriptshift attribute.A MathMLElement representing the superscript of the script.A string representing the minimum amount to shift the baseline of the superscript up, if specified; this is the element's superscriptshift attribute.voidsetBase(MathMLElement base) setter for the base attribute.voidsetSubscript(MathMLElement subscript) setter for the subscript attribute.voidsetSubscriptshift(String subscriptshift) setter for the subscriptshift attribute.voidsetSuperscript(MathMLElement superscript) setter for the superscript attribute.voidsetSuperscriptshift(String superscriptshift) setter for the superscriptshift 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
-
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
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
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
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
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
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:
-