java.lang.Object
org.apache.batik.dom.AbstractNode
org.apache.batik.dom.AbstractParentNode
org.apache.batik.dom.AbstractParentChildNode
org.apache.batik.dom.AbstractElement
org.apache.batik.dom.AbstractElementNS
org.apache.batik.dom.GenericElementNS
All Implemented Interfaces:
Serializable, JEuclidElement, JEuclidNode, LayoutableNode, org.apache.batik.dom.events.NodeEventTarget, org.apache.batik.dom.ExtendedNode, org.apache.batik.dom.xbl.NodeXBL, org.apache.batik.dom.xbl.XBLManagerData, org.apache.batik.w3c.dom.ElementTraversal, Element, EventTarget, MathMLElement, MathMLPresentationElement, MathMLRadicalElement, Node

public final class Mroot extends AbstractRoot
This class presents a mathematical root.
Version:
$Revision: bc1d5fde7b73 $
See Also:
  • Field Details

  • Constructor Details

    • Mroot

      public Mroot(String qname, org.apache.batik.dom.AbstractDocument odoc)
      Default constructor. Sets MathML Namespace.
      Parameters:
      qname - Qualified name.
      odoc - Owner Document.
  • Method Details

    • newNode

      protected Node newNode()
      Overrides:
      newNode in class org.apache.batik.dom.GenericElementNS
    • getContent

      protected List<LayoutableNode> getContent()
      retrieve the content of this radical element.
      Specified by:
      getContent in class AbstractRoot
      Returns:
      A List<MathElement> with the contents for this element.
    • getIndex

      public MathMLElement getIndex()
      The second child MathMLElement of the MathMLRadicalElement; represents the index of the represented radical. This must be null for msqrt elements.
      Returns:
      value of the index attribute.
    • getRadicand

      public MathMLElement getRadicand()
      The first child MathMLElement of the MathMLRadicalElement; represents the base of the represented radical.
      Returns:
      value of the radicand attribute.
    • setIndex

      public void setIndex(MathMLElement index)
      setter for the index attribute.
      Parameters:
      index - new value for index.
      See Also:
    • setRadicand

      public void setRadicand(MathMLElement radicand)
      setter for the radicand attribute.
      Parameters:
      radicand - new value for radicand.
      See Also:
    • getChildLayoutContext

      public LayoutContext getChildLayoutContext(int childNum, LayoutContext context)
      get the layout context for the given child.
      Specified by:
      getChildLayoutContext in interface JEuclidNode
      Overrides:
      getChildLayoutContext in class AbstractJEuclidElement
      Parameters:
      childNum - 0-based number of the child to check.
      context - external context.
      Returns:
      layout context to use.