|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MathMLMatrixElement
The matrix element is the container element for matrixrow elements.
| Field Summary |
|---|
| Method Summary | |
|---|---|
void |
deleteRow(int index)
A convenience method to delete a row. |
int |
getNcols()
The number of columns in the represented matrix. |
int |
getNrows()
The number of rows in the represented matrix. |
MathMLMatrixrowElement |
getRow(int index)
A convenience method to retrieve a specified row. |
MathMLNodeList |
getRows()
The rows of the matrix, returned as a MathMLNodeList consisting of MathMLMatrixrowElements. |
MathMLMatrixrowElement |
insertRow(MathMLMatrixrowElement newRow,
int index)
A convenience method to insert a row before the row that is currently the index-th row of this matrix. |
MathMLMatrixrowElement |
removeRow(int index)
A convenience method to remove a row and return it to the caller. |
MathMLMatrixrowElement |
setRow(MathMLMatrixrowElement newRow,
int index)
A convenience method to set the value of the index-th child matrixrow element of this element. |
| 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 |
|---|
int getNrows()
int getNcols()
MathMLNodeList getRows()
MathMLMatrixrowElement getRow(int index)
throws DOMException
index - Position of the row in the list of rows. The first row is
numbered 1.
DOMException - INDEX_SIZE_ERR: Raised if index is greater than the number
of rows in the matrix.
MathMLMatrixrowElement insertRow(MathMLMatrixrowElement newRow,
int index)
throws DOMException
newRow - MathMLMatrixrowElement to be inserted into the matrix.index - Unsigned integer giving the row position before which newRow
is to be inserted. The first row is numbered 1.
DOMException - INDEX_SIZE_ERR: Raised if index is greater than one more
than the number of rows in the matrix.
HIERARCHY_REQUEST_ERR: Raised if the number of cells in
newRow doesn't match the number of columns in the matrix.
MathMLMatrixrowElement setRow(MathMLMatrixrowElement newRow,
int index)
throws DOMException
newRow - MathMLMatrixrowElement representing the matrixrow which is
to become the index-th row of the matrix.index - Unsigned integer giving the row which is to be set to
newRow. The first row is numbered 1.
DOMException - INDEX_SIZE_ERR: Raised if index is greater than the number
of rows in the matrix. HIERARCHY_REQUEST_ERR: Raised if the
number of cells in newRow doesn't match the number of
columns in the matrix.
void deleteRow(int index)
throws DOMException
index - Position of the row to be deleted in the list of rows
DOMException - INDEX_SIZE_ERR: Raised if index is greater than the number
of rows in the matrix.
MathMLMatrixrowElement removeRow(int index)
throws DOMException
index - Position of the row to be removed in the list of rows. The
first row is numbered 1.
DOMException - INDEX_SIZE_ERR: Raised if index is greater than the number
of rows in the matrix.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||