Interface MathMLMatrixElement
- All Superinterfaces:
Element, MathMLContentElement, MathMLElement, Node
- All Known Implementing Classes:
MathMLMatrixElementImpl
This interface represents the
matrix element in MathML Content.
A matrix is a rectangular array of elements.- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Field Summary
Fields inherited from interface 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 TypeMethodDescriptionvoiddeleteRow(int index) Deletes the row at the specifiedindex.intgetNcols()Returns the number of columns in this matrix.intgetNrows()Returns the number of rows in this matrix.getRow(int index) Returns theindex-th row of this matrix.getRows()Returns a list of the rows in this matrix.insertRow(MathMLMatrixrowElement newRow, int index) Inserts a new row into the matrix at the specifiedindex.removeRow(int index) Removes and returns the row at the specifiedindex.setRow(MathMLMatrixrowElement newRow, int index) Replaces the row at the specifiedindexwith a new row.Methods inherited from interface Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSMethods inherited from interface MathMLElement
getClassName, getHref, getId, getMathElementStyle, getOwnerMathElement, getXref, setClassName, setHref, setId, setMathElementStyle, setXrefMethods inherited from interface 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
-
getNrows
int getNrows()Returns the number of rows in this matrix.- Returns:
- the number of rows.
-
getNcols
int getNcols()Returns the number of columns in this matrix.- Returns:
- the number of columns.
-
getRows
-
getRow
Returns theindex-th row of this matrix.- Parameters:
index- the index of the row to retrieve (1-based index).- Returns:
- the row at the specified index.
- Throws:
DOMException- INDEX_SIZE_ERR if the index is out of bounds.
-
insertRow
Inserts a new row into the matrix at the specifiedindex.- Parameters:
newRow- the new row to insert.index- the index at which the new row is to be inserted.- Returns:
- the newly inserted row.
- Throws:
DOMException- INDEX_SIZE_ERR if the index is out of bounds.
-
setRow
Replaces the row at the specifiedindexwith a new row.- Parameters:
newRow- the new row to set.index- the index of the row to replace.- Returns:
- the newly set row.
- Throws:
DOMException- INDEX_SIZE_ERR if the index is out of bounds.
-
deleteRow
Deletes the row at the specifiedindex.- Parameters:
index- the index of the row to delete.- Throws:
DOMException- INDEX_SIZE_ERR if the index is out of bounds.
-
removeRow
Removes and returns the row at the specifiedindex.- Parameters:
index- the index of the row to remove.- Returns:
- the removed row.
- Throws:
DOMException- INDEX_SIZE_ERR if the index is out of bounds.
-