Interface JEuclidElement

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