Package org.w3c.dom.mathml
Interface MathMLScriptElement
-
- All Superinterfaces:
org.w3c.dom.Element,MathMLElement,MathMLPresentationElement,org.w3c.dom.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.
-
-
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MathMLElementgetBase()A MathMLElement representing the base of the script.MathMLElementgetSubscript()A MathMLElement representing the subscript of the script.java.lang.StringgetSubscriptshift()A string representing the minimum amount to shift the baseline of the subscript down, if specified; this is the element's subscriptshift attribute.MathMLElementgetSuperscript()A MathMLElement representing the superscript of the script.java.lang.StringgetSuperscriptshift()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(java.lang.String subscriptshift)setter for the subscriptshift attribute.voidsetSuperscript(MathMLElement superscript)setter for the superscript attribute.voidsetSuperscriptshift(java.lang.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, setIdAttributeNS
-
Methods inherited from interface org.w3c.dom.mathml.MathMLElement
getClassName, getHref, getId, getMathElementStyle, getOwnerMathElement, getXref, setClassName, setHref, setId, setMathElementStyle, setXref
-
Methods 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 Detail
-
getSubscriptshift
java.lang.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(java.lang.String subscriptshift)
setter for the subscriptshift attribute.- Parameters:
subscriptshift- new value for subscriptshift.- See Also:
getSubscriptshift()
-
getSuperscriptshift
java.lang.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(java.lang.String superscriptshift)
setter for the superscriptshift attribute.- Parameters:
superscriptshift- new value for superscriptshift.- See Also:
getSuperscriptshift()
-
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:
getBase()
-
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:
org.w3c.dom.DOMException- HIERARCHY_REQUEST_ERR: Raised when the element is a msup.- See Also:
getSubscript()
-
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:
org.w3c.dom.DOMException- HIERARCHY_REQUEST_ERR: Raised when the element is a msub.- See Also:
getSuperscript()
-
-