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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractDocument
org.apache.batik.dom.AbstractDocument.DocumentConfiguration, org.apache.batik.dom.AbstractDocument.DocumentError, org.apache.batik.dom.AbstractDocument.IdSoftRef, org.apache.batik.dom.AbstractDocument.XPathExpr, org.apache.batik.dom.AbstractDocument.XPathNodeNSResolverNested 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 -
Field Summary
Fields inherited from class org.apache.batik.dom.GenericDocument
ATTR_ID, readonlyFields inherited from class org.apache.batik.dom.AbstractDocument
documentEventSupport, documentURI, domConfig, elementsById, elementsByTagNames, elementsByTagNamesNS, eventsEnabled, implementation, inputEncoding, localizableSupport, RESOURCES, strictErrorChecking, traversalSupport, xblManager, xmlEncoding, xmlStandalone, xmlVersionFields inherited from class org.apache.batik.dom.AbstractParentNode
childNodesFields inherited from class org.apache.batik.dom.AbstractNode
DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, EMPTY_NODE_LIST, eventSupport, managerData, ownerDocument, userData, userDataHandlersFields 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 -
Constructor Summary
ConstructorsConstructorDescriptionCreates a math element.DocumentElement(DocumentType doctype) Creates a MathML compatible document with the given DocumentType. -
Method Summary
Modifier and TypeMethodDescriptioncreateElement(String tagName) createElementNS(String namespaceURI, String qualifiedName) getChildLayoutContext(int childNum, LayoutContext context) get the layout context for the given child.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.The URI of the page that linked to this document, if available.getURI()The complete URI of this document.voidlayoutStage1(LayoutView view, LayoutInfo info, LayoutStage childMinStage, LayoutContext context) context insensitive layout.voidlayoutStage2(LayoutView view, LayoutInfo info, LayoutContext context) context sensitive layout.protected NodenewNode()Methods inherited from class org.apache.batik.dom.GenericDocument
createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createEntityReference, createProcessingInstruction, createTextNode, isId, isReadonly, setReadonlyMethods inherited from class org.apache.batik.dom.AbstractDocument
addIdEntry, adoptNode, adoptNode1, canDispatch, checkChars, checkChildType, checkName, cloneNode, copyInto, createDOMError, createEvent, createExpression, createNodeIterator, createNSResolver, createTreeWalker, createXPathException, deepCopyInto, deepExport, detachNodeIterator, evaluate, export, formatMessage, getChildElementById, getCurrentDocument, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getEventsEnabled, getImplementation, getInputEncoding, getLocale, getNodeName, getNodeType, getRoot, getStrictErrorChecking, getXblBoundElement, getXblChildNodes, getXblDefinitions, getXblFirstChild, getXblFirstElementChild, getXblLastChild, getXblLastElementChild, getXBLManager, getXblNextElementSibling, getXblNextSibling, getXblParentNode, getXblPreviousElementSibling, getXblPreviousSibling, getXblScopedChildNodes, getXblShadowTree, getXmlEncoding, getXmlStandalone, getXmlVersion, importNode, importNode, nodeToBeRemoved, normalizeDocument, normalizeDocument, putElementsByTagName, putElementsByTagNameNS, removeIdEntry, renameNode, setDoctype, setDocumentInputEncoding, setDocumentURI, setDocumentXmlEncoding, setEventsEnabled, setLocale, setStrictErrorChecking, setTextContent, setXBLManager, setXmlStandalone, setXmlVersion, splitCdata, updateIdEntryMethods inherited from class org.apache.batik.dom.AbstractParentNode
appendChild, checkAndRemove, deepExport, fireDOMNodeInsertedEvent, fireDOMNodeInsertedIntoDocumentEvent, fireDOMNodeRemovedEvent, fireDOMNodeRemovedFromDocumentEvent, fireDOMSubtreeModifiedEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, getTextContent, hasChildNodes, insertBefore, nodeAdded, normalize, removeChild, replaceChildMethods inherited from class org.apache.batik.dom.AbstractNode
addEventListener, addEventListenerNS, compareDocumentPosition, compareNamedNodeMaps, compareStrings, createDOMException, dispatchEvent, export, fireDOMCharacterDataModifiedEvent, fireUserDataHandlers, getAttributes, getBaseURI, getBaseURI, getCascadedXMLBase, getEventSupport, getFeature, getLocalName, getManagerData, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getParentNodeEventTarget, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasEventListenerNS, initializeEventSupport, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespacePrefix, lookupNamespaceURI, lookupPrefix, removeEventListener, removeEventListenerNS, setManagerData, setNextSibling, setNodeName, setNodeValue, setOwnerDocument, setParentNode, setPrefix, setPreviousSibling, setSpecified, setUserData, willTriggerNSMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.w3c.dom.Document
adoptNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createEntityReference, createProcessingInstruction, createTextNode, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getImplementation, getInputEncoding, getStrictErrorChecking, getXmlEncoding, getXmlStandalone, getXmlVersion, importNode, normalizeDocument, renameNode, setDocumentURI, setStrictErrorChecking, setXmlStandalone, setXmlVersionMethods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
Constructor Details
-
DocumentElement
public DocumentElement()Creates a math element. -
DocumentElement
Creates a MathML compatible document with the given DocumentType.- Parameters:
doctype- DocumentType to use. This is currently ignored.
-
-
Method Details
-
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:
getDomainin interfaceMathMLDocument- Returns:
- value of the domain attribute.
-
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:
getReferrerin interfaceMathMLDocument- Returns:
- value of the referrer attribute.
-
getURI
The complete URI of this document. This is null if this is not a stand-alone MathML document.- Specified by:
getURIin interfaceMathMLDocument- Returns:
- value of the URI attribute.
-
getChildLayoutContext
get the layout context for the given child.- Specified by:
getChildLayoutContextin interfaceJEuclidNode- Parameters:
childNum- 0-based number of the child to check.context- external context.- Returns:
- layout context to use.
-
getDefaultView
- Specified by:
getDefaultViewin interfaceDocumentView
-
getChildrenToLayout
- Specified by:
getChildrenToLayoutin interfaceLayoutableNode- Returns:
- List of children to Layout. Normally, all children.
-
getChildrenToDraw
- Specified by:
getChildrenToDrawin interfaceLayoutableNode- 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:
layoutStage1in interfaceLayoutableNode- Parameters:
view- LayoutView to use.info- LayoutInfo to manipulate.childMinStage- minimum stage of children. Either STAGE1 or STAGE2.context- LayoutContext for this element.
-
layoutStage2
context sensitive layout.- Specified by:
layoutStage2in interfaceLayoutableNode- Parameters:
view- LayoutView to use.info- LayoutInfo to manipulate.context- LayoutContext for this element.
-
newNode
- Overrides:
newNodein classorg.apache.batik.dom.GenericDocument
-
createElement
- Specified by:
createElementin interfaceDocument- Overrides:
createElementin classorg.apache.batik.dom.GenericDocument
-
createElementNS
- Specified by:
createElementNSin interfaceDocument- Overrides:
createElementNSin classorg.apache.batik.dom.GenericDocument
-