org.w3c.dom.mathml
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.


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
 MathMLElement getBase()
          A MathMLElement representing the base of the script.
 MathMLElement getSubscript()
          A MathMLElement representing the subscript of the script.
 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.
 MathMLElement getSuperscript()
          A MathMLElement representing the superscript of the script.
 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.
 void setBase(MathMLElement base)
          setter for the base attribute.
 void setSubscript(MathMLElement subscript)
          setter for the subscript attribute.
 void setSubscriptshift(String subscriptshift)
          setter for the subscriptshift attribute.
 void setSuperscript(MathMLElement superscript)
          setter for the superscript attribute.
 void setSuperscriptshift(String superscriptshift)
          setter for the superscriptshift attribute.
 
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.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.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

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:
getSubscriptshift()

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:
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:
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:
DOMException - HIERARCHY_REQUEST_ERR: Raised when the element is a msub.
See Also:
getSuperscript()


Copyright © 2002-2010 The JEuclid project. All Rights Reserved.