public final class PrettyMathML
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
WIDTH |
Constructor and Description |
---|
PrettyMathML(org.w3c.dom.Document document)
Create converter that creates DOM nodes in the specified document.
|
PrettyMathML(org.w3c.dom.Document document,
int width)
Create converter that creates DOM nodes in the specified document.
|
Modifier and Type | Method and Description |
---|---|
void |
appendDecl(org.w3c.dom.Node parent,
Declaration object)
Convert declaration to DOM representation of HTML/MathML markup.
|
void |
appendExp(org.w3c.dom.Node parent,
Expression exp)
Convert expression to DOM representation of HTML/MathML markup.
|
void |
appendTypedIdentifier(org.w3c.dom.Node parent,
TypedIdentifier object)
Convert typed identifier to DOM representation of HTML/MathML markup.
|
void |
changeLevel(boolean increase,
fmrisc.ProofNavigator.Communication.PrettyMathML.Parent parent)
Change indentation level.
|
void |
newLine(fmrisc.ProofNavigator.Communication.PrettyMathML.Parent parent)
Start new (non-overflow)line and indent it appropriately.
|
public static final int WIDTH
public PrettyMathML(org.w3c.dom.Document document, int width)
width
- the maximum line width (suggestion, not a hard bound).document
- the document in which to create the DOM nodes.public PrettyMathML(org.w3c.dom.Document document)
document
- the document in which to create the DOM nodes.public void appendDecl(org.w3c.dom.Node parent, Declaration object)
parent
- the node to which the representation is appended.object
- the declaration to be converted.public void appendExp(org.w3c.dom.Node parent, Expression exp)
parent
- the node to which the representation is appended.exp
- the expression to convert.public void appendTypedIdentifier(org.w3c.dom.Node parent, TypedIdentifier object)
parent
- the node to which the representation is appended.object
- the typed identifier to be converted.public void changeLevel(boolean increase, fmrisc.ProofNavigator.Communication.PrettyMathML.Parent parent)
increase
- true if level is increased (decreased otherwise)parent
- the parent nodepublic void newLine(fmrisc.ProofNavigator.Communication.PrettyMathML.Parent parent)
parent
- the parent node.