ibm.techexplorer.dom.ext
Interface techexplorerDocument

All Known Implementing Classes:
TEDocument

public abstract interface techexplorerDocument
extends Document

Description

See Also:
techexplorer, org.w3c.dom

Fields inherited from class 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
 
Method Summary
 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.
 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.
 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.
 
Methods inherited from interface org.w3c.dom.Document
createAttribute, createCDATASection, createComment, createDocumentFragment, createElement, createEntityReference, createProcessingInstruction, createTextNode, getDoctype, getDocumentElement, getElementsByTagName, getImplementation
 
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
 

Method Detail

getTexString

public java.lang.String getTexString(Node targetNode)
Converts a Node in a techexplorer Document to a TeX String.
Parameters:
targetNode - The Node to be converted.
Returns:
The TeX String representing the given node.

getMmlString

public java.lang.String getMmlString(Node targetNode)
Converts a Node in a techexplorer Document to a MathML String.
Parameters:
targetNode - The Node to be converted.
Returns:
The MathML String representing the given node.

getXmlString

public java.lang.String getXmlString(Node targetNode)
Converts a Node in a techexplorer Document to an XML String.
Parameters:
targetNode - The Node to be converted.
Returns:
The XML String representing the given node.

createFromTexString

public Node createFromTexString(java.lang.String data)
Creates a techexplorer Node from a TeX input String.
Parameters:
data - The TeX input String.
Returns:
The Node created from the input.

createFromMmlString

public Node createFromMmlString(java.lang.String data)
Creates a techexplorer Node from a MathML input String.
Parameters:
data - The MathML input String.
Returns:
The Node created from the input.

createFromXmlString

public Node createFromXmlString(java.lang.String data)
Creates a techexplorer Node from an XML input String.
Parameters:
data - The XML input String.
Returns:
The Node created from the input.

scrollToNode

public void scrollToNode(Node targetNode)
Scrolls the techexplorer view so that the given Node is visible.
Parameters:
targetNode - The Node to make visible.

invalidate

public void invalidate()
Invalidates the techexplorer view so the current contents will be redrawn.

recomposeAndRedraw

public void recomposeAndRedraw()
Recalculates the layout of the techexplorer document and redraws the contents of the current view.

recomposeAndRedrawNode

public void recomposeAndRedrawNode(Node targetNode)
Recalculates the layout of the techexplorer document and redraws the contents of the current view.