Package net.sourceforge.jeuclid.elements
Interface JEuclidElement
- All Superinterfaces:
Element,JEuclidNode,LayoutableNode,MathMLElement,Node
- All Known Implementing Classes:
AbstractContainer,AbstractElementWithDelegates,AbstractInvisibleJEuclidElement,AbstractJEuclidElement,AbstractRoot,AbstractScriptElement,AbstractSubSuper,AbstractTableElement,AbstractTableRow,AbstractTokenWithTextLayout,AbstractUnderOver,Annotation,ForeignElement,Maction,Maligngroup,Malignmark,MathImpl,Menclose,Merror,Mfenced,Mfrac,Mglyph,Mi,Mlabeledtr,Mmultiscripts,Mn,Mo,Mover,Mpadded,Mphantom,Mprescripts,Mroot,Mrow,Ms,Mspace,Msqrt,Mstyle,Msub,Msubsup,Msup,Mtable,Mtd,Mtext,Mtr,Munder,Munderover,None,Semantics
Interface for all MathElements within JEuclid.
- Version:
- $Revision: 5c224b0fad38 $
-
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
Modifier and TypeMethodDescriptionintgetIndexOfMathElement(JEuclidElement element) Gets index of child element.intReturns the count of children for this element.Gets the current mathvariant.Returns parent of this element.booleanhasChildPostscripts(JEuclidElement child, LayoutContext context) returns true is the child has postscripts attached to it.booleanhasChildPrescripts(JEuclidElement child) returns true is the child has prescripts attached to it.voidsetFakeParent(JEuclidElement parent) Sets the parent of this element.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, setIdAttributeNSMethods inherited from interface net.sourceforge.jeuclid.elements.JEuclidNode
getChildLayoutContextMethods inherited from interface net.sourceforge.jeuclid.layout.LayoutableNode
getChildrenToDraw, getChildrenToLayout, layoutStage1, layoutStage2Methods inherited from interface org.w3c.dom.mathml.MathMLElement
getClassName, getHref, getId, getMathElementStyle, getOwnerMathElement, getXref, setClassName, setHref, setId, setMathElementStyle, setXrefMethods 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 Details
-
setFakeParent
Sets the parent of this element.- Parameters:
parent- Parent element
-
getIndexOfMathElement
Gets index of child element.- Parameters:
element- Child element.- Returns:
- Index of the element, -1 if element was not found
-
getMathvariantAsVariant
MathVariant getMathvariantAsVariant()Gets the current mathvariant.- Returns:
- the current MathVariant
-
getParent
JEuclidElement getParent()Returns parent of this element.- Returns:
- Parent element.
-
hasChildPrescripts
returns true is the child has prescripts attached to it. In this case, there should be no extra space on the left.- Parameters:
child- child to test- Returns:
- true if there are attached prescripts
-
hasChildPostscripts
returns true is the child has postscripts attached to it. In this case, there should be no extra space on the left.- Parameters:
child- child to testcontext- current layout context.- Returns:
- true if there are attached postscripts
-
getMathElementCount
int getMathElementCount()Returns the count of children for this element.- Returns:
- number of children.
-