Package net.sourceforge.jeuclid.elements
Interface JEuclidElement
-
- All Superinterfaces:
org.w3c.dom.Element,JEuclidNode,LayoutableNode,MathMLElement,org.w3c.dom.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
public interface JEuclidElement extends MathMLElement, JEuclidNode, LayoutableNode
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetIndexOfMathElement(JEuclidElement element)Gets index of child element.intgetMathElementCount()Returns the count of children for this element.MathVariantgetMathvariantAsVariant()Gets the current mathvariant.JEuclidElementgetParent()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, setIdAttributeNS
-
Methods inherited from interface net.sourceforge.jeuclid.elements.JEuclidNode
getChildLayoutContext
-
Methods inherited from interface net.sourceforge.jeuclid.layout.LayoutableNode
getChildrenToDraw, getChildrenToLayout, layoutStage1, layoutStage2
-
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.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
-
setFakeParent
void setFakeParent(JEuclidElement parent)
Sets the parent of this element.- Parameters:
parent- Parent element
-
getIndexOfMathElement
int getIndexOfMathElement(JEuclidElement element)
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
boolean hasChildPrescripts(JEuclidElement child)
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
boolean hasChildPostscripts(JEuclidElement child, LayoutContext context)
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.
-
-