Class AbstractSubSuper

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractElement

        org.apache.batik.dom.AbstractElement.ElementTypeInfo, org.apache.batik.dom.AbstractElement.Entry, org.apache.batik.dom.AbstractElement.NamedNodeHashMap
      • Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractParentNode

        org.apache.batik.dom.AbstractParentNode.ChildNodes, org.apache.batik.dom.AbstractParentNode.ElementsByTagName, org.apache.batik.dom.AbstractParentNode.ElementsByTagNameNS
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractSubSuper​(java.lang.String qname, org.apache.batik.dom.AbstractDocument odoc)
      Default constructor.
    • Constructor Detail

      • AbstractSubSuper

        public AbstractSubSuper​(java.lang.String qname,
                                org.apache.batik.dom.AbstractDocument odoc)
        Default constructor. Sets MathML Namespace.
        Parameters:
        qname - Qualified name.
        odoc - Owner Document.
    • Method Detail

      • getBase

        public abstract JEuclidElement getBase()
        A MathMLElement representing the base of the script. This is the first child of the element.
        Specified by:
        getBase in interface MathMLScriptElement
        Returns:
        value of the base attribute.
      • getSuperscript

        public abstract JEuclidElement getSuperscript()
        A MathMLElement representing the superscript of the script. This is the second child of a msup or the third child of a msubsup; retrieval must return null for an msub.
        Specified by:
        getSuperscript in interface MathMLScriptElement
        Returns:
        value of the superscript attribute.
      • getSubscript

        public abstract JEuclidElement getSubscript()
        A MathMLElement representing the subscript of the script. This is the second child of a msub or msubsup; retrieval must return null for an msup.
        Specified by:
        getSubscript in interface MathMLScriptElement
        Returns:
        value of the subscript attribute.
      • layoutStageInvariant

        protected void layoutStageInvariant​(LayoutView view,
                                            LayoutInfo info,
                                            LayoutStage stage,
                                            LayoutContext context)
        Layout for elements which are stage independent.

        This function will layout an element which is layed out the same no matter what stage it is in. This is the case for most elements.

        Notable exceptions are mo and tables.

        Overrides:
        layoutStageInvariant in class AbstractJEuclidElement
        Parameters:
        view - View Object for this layout.
        info - An info object which will be filled during layout.
        stage - current layout stage.
        context - current LayoutContext.