Class DocumentElement

java.lang.Object
org.apache.batik.dom.AbstractNode
org.apache.batik.dom.AbstractParentNode
org.apache.batik.dom.AbstractDocument
org.apache.batik.dom.GenericDocument
net.sourceforge.jeuclid.elements.generic.DocumentElement
All Implemented Interfaces:
Serializable, JEuclidNode, LayoutableDocument, 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.i18n.Localizable, Document, DocumentEvent, EventTarget, MathMLDocument, Node, DocumentTraversal, DocumentView, XPathEvaluator

public final class DocumentElement extends org.apache.batik.dom.GenericDocument implements MathMLDocument, JEuclidNode, DocumentView, LayoutableDocument
Class for MathML Document Nodes.
Version:
$Revision: 92569cce5dd6 $
See Also:
  • Constructor Details

    • DocumentElement

      public DocumentElement()
      Creates a math element.
    • DocumentElement

      public DocumentElement(DocumentType doctype)
      Creates a MathML compatible document with the given DocumentType.
      Parameters:
      doctype - DocumentType to use. This is currently ignored.
  • Method Details

    • getDomain

      public String getDomain()
      The domain name of the server that served the document, or null if the server cannot be identified by a domain name, or if it is not available. If this is not a stand-alone MathML document (e.g. is embedded in an XHTML document), this may be retrieved from the parent Document if available.
      Specified by:
      getDomain in interface MathMLDocument
      Returns:
      value of the domain attribute.
    • getReferrer

      public String getReferrer()
      The URI of the page that linked to this document, if available. This is null if the user navigated directly to the page. If this is not a stand-alone MathML document (e.g. is embedded in an XHTML document), this may be retrieved from the parent Document if available.
      Specified by:
      getReferrer in interface MathMLDocument
      Returns:
      value of the referrer attribute.
    • getURI

      public String getURI()
      The complete URI of this document. This is null if this is not a stand-alone MathML document.
      Specified by:
      getURI in interface MathMLDocument
      Returns:
      value of the URI attribute.
    • getChildLayoutContext

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

      public JEuclidView getDefaultView()
      Specified by:
      getDefaultView in interface DocumentView
    • getChildrenToLayout

      public List<LayoutableNode> getChildrenToLayout()
      Specified by:
      getChildrenToLayout in interface LayoutableNode
      Returns:
      List of children to Layout. Normally, all children.
    • getChildrenToDraw

      public List<LayoutableNode> getChildrenToDraw()
      Specified by:
      getChildrenToDraw in interface LayoutableNode
      Returns:
      List of children to Draw. Normally, all children.
    • layoutStage1

      public void layoutStage1(LayoutView view, LayoutInfo info, LayoutStage childMinStage, LayoutContext context)
      context insensitive layout.
      Specified by:
      layoutStage1 in interface LayoutableNode
      Parameters:
      view - LayoutView to use.
      info - LayoutInfo to manipulate.
      childMinStage - minimum stage of children. Either STAGE1 or STAGE2.
      context - LayoutContext for this element.
    • layoutStage2

      public void layoutStage2(LayoutView view, LayoutInfo info, LayoutContext context)
      context sensitive layout.
      Specified by:
      layoutStage2 in interface LayoutableNode
      Parameters:
      view - LayoutView to use.
      info - LayoutInfo to manipulate.
      context - LayoutContext for this element.
    • newNode

      protected Node newNode()
      Overrides:
      newNode in class org.apache.batik.dom.GenericDocument
    • createElement

      public Element createElement(String tagName)
      Specified by:
      createElement in interface Document
      Overrides:
      createElement in class org.apache.batik.dom.GenericDocument
    • createElementNS

      public Element createElementNS(String namespaceURI, String qualifiedName)
      Specified by:
      createElementNS in interface Document
      Overrides:
      createElementNS in class org.apache.batik.dom.GenericDocument