org.jplot2d.tex
Class TeXMathUtils
- java.lang.Object
-
- org.jplot2d.tex.TeXMathUtils
-
public class TeXMathUtils extends java.lang.ObjectProvide a static parse method to use thread local parser.
-
-
Constructor Summary
Constructors Constructor and Description TeXMathUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static MathElementparseText(java.lang.String text)Parse the given text into a math model.static java.lang.StringtoString(MathElement me)Returns the TeX string to represent the given MathElement.
-
-
-
Method Detail
-
parseText
public static MathElement parseText(java.lang.String text)
Parse the given text into a math model. If the given text is null, then null is returned. if the given text does not represent a math model, such as "", or "$$", then aMathElement.EMPTYis returned.- Parameters:
text-- Returns:
-
toString
public static java.lang.String toString(MathElement me)
Returns the TeX string to represent the given MathElement. Unlike String.valueOf(), this method returns null when the given MathElement is null.- Parameters:
me- the math model- Returns:
- the TeX string
-
-
DMelt 3.0 © DataMelt by jWork.ORG