|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--ibm.techexplorer.dom.TENode
|
+--ibm.techexplorer.dom.TEDocument
techexplorer,
org.w3c.dom| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Constructor Summary | |
TEDocument(techexplorer teobject,
int node)
|
|
| Method Summary | |
java.lang.String |
convertMMLtoTeX(Node targetNode)
|
java.lang.String |
convertTeXtoMML(Node targetNode)
|
Attr |
createAttribute(java.lang.String name)
Creates an Attr of the given name. |
CDATASection |
createCDATASection(java.lang.String data)
Creates a CDATASection node whose value is the specified
string. |
Comment |
createComment(java.lang.String data)
Creates a Comment node given the specified string. |
DocumentFragment |
createDocumentFragment()
Creates an empty DocumentFragment object. |
Element |
createElement(java.lang.String tagName)
Creates an element of the type specified. |
EntityReference |
createEntityReference(java.lang.String name)
Creates an EntityReference object. |
Node |
createFromMmlString(java.lang.String data)
Creates a techexplorer Node from
a MathML input String. |
Node |
createFromTexString(java.lang.String data)
Creates a techexplorer Node from
a TeX input String. |
Node |
createFromXmlString(java.lang.String data)
Creates a techexplorer Node from
an XML input String. |
ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
Creates a ProcessingInstruction node given the specified
name and data strings. |
Text |
createTextNode(java.lang.String data)
Creates a Text node given the specified string. |
DocumentType |
getDoctype()
The Document Type Declaration (see DocumentType) associated
with this document. |
Element |
getDocumentElement()
This is a convenience attribute that allows direct access to the child node that is the root element of the document. |
NodeList |
getElementsByTagName(java.lang.String tagname)
Returns a NodeList of all the Elements with a
given tag name in the order in which they would be encountered in a
preorder traversal of the Document tree. |
DOMImplementation |
getImplementation()
The DOMImplementation object that handles this document. |
java.lang.String |
getMmlString(Node targetNode)
Converts a Node in a techexplorer
Document to a MathML String. |
java.lang.String |
getTexString(Node targetNode)
Converts a Node in a techexplorer
Document to a TeX String. |
java.lang.String |
getXmlString(Node targetNode)
Converts a Node in a techexplorer
Document to an XML String. |
void |
invalidate()
Invalidates the techexplorer view so the current contents will be redrawn. |
java.lang.String |
printMMLInput(Node targetNode)
|
java.lang.String |
printTeXInput(Node targetNode)
|
void |
recomposeAndRedraw()
Recalculates the layout of the techexplorer document and redraws the contents of the current view. |
void |
recomposeAndRedrawNode(Node targetNode)
Recalculates the layout of the techexplorer document and redraws the contents of the current view. |
void |
scrollToNode(Node targetNode)
Scrolls the techexplorer view so that the given Node is visible. |
void |
setMMLVersion(java.lang.String version,
boolean bDeprecated)
Sets the version of MathML being used, and whether or not to allow deprecated features. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, removeChild, replaceChild, setNodeValue |
| Constructor Detail |
public TEDocument(techexplorer teobject,
int node)
| Method Detail |
public DocumentType getDoctype()
DocumentDocumentType) associated
with this document. For HTML documents as well as XML documents without
a document type declaration this returns null. The DOM Level
1 does not support editing the Document Type Declaration, therefore
docType cannot be altered in any way.getDoctype in interface Documentpublic DOMImplementation getImplementation()
DocumentDOMImplementation object that handles this document. A
DOM application may use objects from multiple implementations.getImplementation in interface Documentpublic Element getDocumentElement()
DocumentgetDocumentElement in interface Document
public Element createElement(java.lang.String tagName)
throws DOMException
DocumentcreateElement in interface Documentorg.w3c.dom.DocumenttagName - The name of the element type to instantiate. For XML, this
is case-sensitive. For HTML, the tagName parameter may
be provided in any case, but it must be mapped to the canonical
uppercase form by the DOM implementation.Element object.DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an
invalid character.public DocumentFragment createDocumentFragment()
DocumentDocumentFragment object.createDocumentFragment in interface Documentorg.w3c.dom.DocumentDocumentFragment.public Text createTextNode(java.lang.String data)
DocumentText node given the specified string.createTextNode in interface Documentorg.w3c.dom.Documentdata - The data for the node.Text object.public Comment createComment(java.lang.String data)
DocumentComment node given the specified string.createComment in interface Documentorg.w3c.dom.Documentdata - The data for the node.Comment object.
public CDATASection createCDATASection(java.lang.String data)
throws DOMException
DocumentCDATASection node whose value is the specified
string.createCDATASection in interface Documentorg.w3c.dom.Documentdata - The data for the CDATASection contents.CDATASection object.DOMException - NOT_SUPPORTED_ERR: Raised if this document is an HTML document.
public ProcessingInstruction createProcessingInstruction(java.lang.String target,
java.lang.String data)
throws DOMException
DocumentProcessingInstruction node given the specified
name and data strings.createProcessingInstruction in interface Documentorg.w3c.dom.Documenttarget - The target part of the processing instruction.data - The data for the node.ProcessingInstruction object.DOMException - INVALID_CHARACTER_ERR: Raised if an invalid character is specified.
public Attr createAttribute(java.lang.String name)
throws DOMException
DocumentAttr of the given name. Note that the
Attr instance can then be set on an Element
using the setAttribute method.createAttribute in interface Documentorg.w3c.dom.Documentname - The name of the attribute.Attr object.DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an
invalid character.
public EntityReference createEntityReference(java.lang.String name)
throws DOMException
DocumentcreateEntityReference in interface Documentorg.w3c.dom.Documentname - The name of the entity to reference.EntityReference object.DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an
invalid character.
public NodeList getElementsByTagName(java.lang.String tagname)
DocumentNodeList of all the Elements with a
given tag name in the order in which they would be encountered in a
preorder traversal of the Document tree.getElementsByTagName in interface Documentorg.w3c.dom.Documenttagname - The name of the tag to match on. The special value "*"
matches all tags.NodeList object containing all the matched
Elements.public java.lang.String getTexString(Node targetNode)
techexplorerDocumentNode in a techexplorer
Document to a TeX String.getTexString in interface techexplorerDocumentibm.techexplorer.dom.ext.techexplorerDocumenttargetNode - The Node to be converted.String representing the given node.public java.lang.String getMmlString(Node targetNode)
techexplorerDocumentNode in a techexplorer
Document to a MathML String.getMmlString in interface techexplorerDocumentibm.techexplorer.dom.ext.techexplorerDocumenttargetNode - The Node to be converted.String representing the given node.public java.lang.String getXmlString(Node targetNode)
techexplorerDocumentNode in a techexplorer
Document to an XML String.getXmlString in interface techexplorerDocumentibm.techexplorer.dom.ext.techexplorerDocumenttargetNode - The Node to be converted.String representing the given node.public java.lang.String printTeXInput(Node targetNode)
public java.lang.String printMMLInput(Node targetNode)
public java.lang.String convertTeXtoMML(Node targetNode)
public java.lang.String convertMMLtoTeX(Node targetNode)
public Node createFromTexString(java.lang.String data)
techexplorerDocumentNode from
a TeX input String.createFromTexString in interface techexplorerDocumentibm.techexplorer.dom.ext.techexplorerDocumentdata - The TeX input String.Node created from the input.public Node createFromMmlString(java.lang.String data)
techexplorerDocumentNode from
a MathML input String.createFromMmlString in interface techexplorerDocumentibm.techexplorer.dom.ext.techexplorerDocumentdata - The MathML input String.Node created from the input.public Node createFromXmlString(java.lang.String data)
techexplorerDocumentNode from
an XML input String.createFromXmlString in interface techexplorerDocumentibm.techexplorer.dom.ext.techexplorerDocumentdata - The XML input String.Node created from the input.public void scrollToNode(Node targetNode)
techexplorerDocumentNode is visible.scrollToNode in interface techexplorerDocumentibm.techexplorer.dom.ext.techexplorerDocumenttargetNode - The Node to make visible.public void invalidate()
techexplorerDocumentinvalidate in interface techexplorerDocumentpublic void recomposeAndRedraw()
techexplorerDocumentrecomposeAndRedraw in interface techexplorerDocumentpublic void recomposeAndRedrawNode(Node targetNode)
techexplorerDocumentrecomposeAndRedrawNode in interface techexplorerDocument
public void setMMLVersion(java.lang.String version,
boolean bDeprecated)
techexplorerDocumentsetMMLVersion in interface techexplorerDocument
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||