public class Formula extends Object
Modifier and Type | Field and Description |
---|---|
private org.jdom2.Element |
html
The markup representation of this formula
default representation of a formula after conversion
|
private int |
id
The id is the sequential position on the document
|
private Path |
imageFilePath
The file path for the image representation of this formula
(only available if output should be images instead of markup)
|
private boolean |
invalid
A FormulaConverter can set this flag to true for removing
this formula from the output markup.
|
private String |
latexCode
The LaTeX source for this formula
|
private String |
mathMl
The intermediate step to converting a formula is its MathML representation
SnuggleTeX generates this MathML
|
Constructor and Description |
---|
Formula(int id) |
Modifier and Type | Method and Description |
---|---|
org.jdom2.Element |
getHtml() |
int |
getId() |
Path |
getImageFilePath() |
String |
getLatexCode() |
String |
getMathMl() |
boolean |
isInvalid() |
void |
setHtml(org.jdom2.Element html) |
void |
setImageFilePath(Path imageFilePath) |
void |
setInvalid(boolean invalid) |
void |
setLatexCode(String latexCode) |
void |
setMathMl(String mathMl) |
private int id
private String latexCode
private Path imageFilePath
ImageFormulaConverter
private org.jdom2.Element html
DOMFormulaConverter
private String mathMl
private boolean invalid
public org.jdom2.Element getHtml()
public void setHtml(org.jdom2.Element html)
public Path getImageFilePath()
public void setImageFilePath(Path imageFilePath)
public String getMathMl()
public void setMathMl(String mathMl)
public String getLatexCode()
public void setLatexCode(String latexCode)
public int getId()
public boolean isInvalid()
public void setInvalid(boolean invalid)
Copyright © 2015 Vienna University of Technology. All rights reserved.