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


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
 MathMLNodeList getContents()
          Returns the child Nodes of the element.
 String getMathbackground()
          The mathbackground attribute for the element, if specified.
 String getMathcolor()
          The mathcolor attribute for the element, if specified.
 String getMathsize()
          The mathsize attribute for the element, if specified.
 String getMathvariant()
          The mathvariant attribute for the element, if specified.
 void setMathbackground(String mathbackground)
          setter for the mathbackground attribute.
 void setMathcolor(String mathcolor)
          setter for the mathcolor attribute.
 void setMathsize(String mathsize)
          setter for the mathsize attribute.
 void setMathvariant(String mathvariant)
          setter for the mathvariant 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

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

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

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

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

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.


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