Documentation of 'jhplot.HLatexEq' Java class.
HLatexEq
jhplot

Class 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 equation
        size - font size
        foreground - foreground color
        background - background color
      • HLatexEq

        public HLatexEq(java.lang.String latex,
                        int size)
        Create image with the latex equiation. Uses the white background.
        Parameters:
        latex - Latex equation
        size - 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