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

public interface JEuclidElement extends MathMLElement, JEuclidNode, LayoutableNode
Interface for all MathElements within JEuclid.
Version:
$Revision: 5c224b0fad38 $
  • Method Details

    • 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 test
      context - 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.