jhplot
Class HLatexEq
- java.lang.Object
-
- jhplot.HLatexEq
-
public class HLatexEq extends java.lang.Object
Create a PNG image of an equation using the Latex syntax.
-
-
Constructor Summary
Constructors Constructor and Description HLatexEq(java.lang.String latex)
Create image with the latex equiation.HLatexEq(java.lang.String latex, int size)
Create image with the latex equiation.HLatexEq(java.lang.String latex, int size, java.awt.Color foreground, java.awt.Color background)
Create image with the latex equiation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
doc()
Show online documentation.void
export()
Export the image into PNG file with the name "equition.png".void
export(java.lang.String filename)
Export the image into PNG file.TeXFormula
getEquation()
Get equation.TeXIcon
getIcon()
Get the icon.
-
-
-
Constructor Detail
-
HLatexEq
public HLatexEq(java.lang.String latex, int size, java.awt.Color foreground, java.awt.Color background)
Create image with the latex equiation.- Parameters:
latex
- Latex equationsize
- font sizeforeground
- foreground colorbackground
- background color
-
HLatexEq
public HLatexEq(java.lang.String latex, int size)
Create image with the latex equiation. Uses the white background.- Parameters:
latex
- Latex equationsize
- font size
-
HLatexEq
public HLatexEq(java.lang.String latex)
Create image with the latex equiation. Uses the white background and the default size 20.- Parameters:
latex
- Latex equation
-
-
Method Detail
-
getEquation
public TeXFormula getEquation()
Get equation.- Returns:
- current equation.
-
getIcon
public TeXIcon getIcon()
Get the icon.- Returns:
- icon Current icon.
-
export
public void export(java.lang.String filename)
Export the image into PNG file.- Parameters:
filename
- output file name (with the extension png).
-
export
public void export()
Export the image into PNG file with the name "equition.png".
-
doc
public void doc()
Show online documentation.
-
-
DMelt 3.0 © DataMelt by jWork.ORG