Class JaxoGreek


  • public final class JaxoGreek
    extends java.lang.Object
    Defines a number of greek letters and some methods to convert them into LaTeX strings and back.
    Since:
    2.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static char ALPHA
      The greek letter alpha.
      static char BETA
      The greek letter beta.
      static char CHI
      The greek letter chi.
      static char DELTA
      The greek letter delta.
      static char EPSILON
      The greek letter epsilon.
      static char ETA
      The greek letter eta.
      static char GAMMA
      The greek letter gamma.
      static char IOTA
      The greek letter iota.
      static char KAPPA
      The greek letter kappa.
      static char LAMBDA
      The greek letter lambda.
      static char MU
      The greek letter mu.
      static char NU
      The greek letter nu.
      static char OMEGA
      The greek letter omega.
      static char OMIKRON
      The greek letter omikron.
      static char PHI
      The greek letter phi.
      static char PI
      The greek letter pi.
      static char PSI
      The greek letter psi.
      static char RHO
      The greek letter rho.
      static char SIGMA
      The greek letter sigma.
      static char TAU
      The greek letter tau.
      static char THETA
      The greek letter theta.
      static char UPPER_DELTA
      The greek upper case letter delta.
      static char UPPER_GAMMA
      The greek upper case letter gamma.
      static char UPPER_LAMBDA
      The greek upper case letter lambda.
      static char UPPER_OMEGA
      The greek upper case letter omega.
      static char UPPER_PHI
      The greek upper case letter phi.
      static char UPPER_PI
      The greek upper case letter pi.
      static char UPPER_PSI
      The greek upper case letter psi.
      static char UPPER_SIGMA
      The greek upper case letter sigma.
      static char UPPER_THETA
      The greek upper case letter theta.
      static char UPPER_XI
      The greek upper case letter xi.
      static char UPSILON
      The greek letter upsilon.
      static char VARPHI
      The greek letter phi (corresponding to LaTeX's \varphi).
      static char VARSIGMA
      The greek letter sigma (corresponding to LaTeX's \varsigma).
      static char VARTHETA
      The greek letter theta (corresponding to LaTeX's \vartheta).
      static char XI
      The greek letter xi.
      static char ZETA
      The greek letter zeta.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static char getCharacter​(java.lang.String command)
      Returns the greek character whose LaTex command is s.
      static java.lang.String getLatexCommand​(char a)
      Gets the LaTeX command for the greek character a.
      static boolean isGreekCharacter​(char a)
      Tests whether the given character corresponds to one of the greek characters defined in this class.
      static boolean isLatexCommand​(java.lang.String command)
      Tests whether the given latex command corresponds to one of the greek characters defined in this class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getLatexCommand

        public static java.lang.String getLatexCommand​(char a)
        Gets the LaTeX command for the greek character a.
        Parameters:
        a - The greek character whose LaTex command is to be returned.
        Returns:
        The LaTeX command of the greek character a or null if a does not correspond to any greek character.
      • getCharacter

        public static char getCharacter​(java.lang.String command)
        Returns the greek character whose LaTex command is s.
        Parameters:
        command - The LaTeX command whose corresponding greek character is to be returned.
        Returns:
        The greek character corresponding to the LaTex command or '' (NUL) if command does not correspond to any greek character.
      • isGreekCharacter

        public static boolean isGreekCharacter​(char a)
        Tests whether the given character corresponds to one of the greek characters defined in this class.
        Parameters:
        a - A character.
        Returns:
        True if a corresponds to one of the greek characters defined in this class, false otherwise.
      • isLatexCommand

        public static boolean isLatexCommand​(java.lang.String command)
        Tests whether the given latex command corresponds to one of the greek characters defined in this class.
        Parameters:
        command - a latex string (\\alpha etc.)
        Returns:
        True if command corresponds to one of the greek characters defined in this class, false otherwise.