Package net.sf.jaxodraw.util
Class JaxoGreek
- java.lang.Object
-
- net.sf.jaxodraw.util.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.
-
-
-
Field Detail
-
ALPHA
public static final char ALPHA
The greek letter alpha.- See Also:
- Constant Field Values
-
BETA
public static final char BETA
The greek letter beta.- See Also:
- Constant Field Values
-
GAMMA
public static final char GAMMA
The greek letter gamma.- See Also:
- Constant Field Values
-
DELTA
public static final char DELTA
The greek letter delta.- See Also:
- Constant Field Values
-
EPSILON
public static final char EPSILON
The greek letter epsilon.- See Also:
- Constant Field Values
-
ZETA
public static final char ZETA
The greek letter zeta.- See Also:
- Constant Field Values
-
ETA
public static final char ETA
The greek letter eta.- See Also:
- Constant Field Values
-
THETA
public static final char THETA
The greek letter theta.- See Also:
- Constant Field Values
-
IOTA
public static final char IOTA
The greek letter iota.- See Also:
- Constant Field Values
-
KAPPA
public static final char KAPPA
The greek letter kappa.- See Also:
- Constant Field Values
-
LAMBDA
public static final char LAMBDA
The greek letter lambda.- See Also:
- Constant Field Values
-
MU
public static final char MU
The greek letter mu.- See Also:
- Constant Field Values
-
NU
public static final char NU
The greek letter nu.- See Also:
- Constant Field Values
-
XI
public static final char XI
The greek letter xi.- See Also:
- Constant Field Values
-
OMIKRON
public static final char OMIKRON
The greek letter omikron.- See Also:
- Constant Field Values
-
PI
public static final char PI
The greek letter pi.- See Also:
- Constant Field Values
-
RHO
public static final char RHO
The greek letter rho.- See Also:
- Constant Field Values
-
VARSIGMA
public static final char VARSIGMA
The greek letter sigma (corresponding to LaTeX's \varsigma).- See Also:
- Constant Field Values
-
SIGMA
public static final char SIGMA
The greek letter sigma.- See Also:
- Constant Field Values
-
TAU
public static final char TAU
The greek letter tau.- See Also:
- Constant Field Values
-
UPSILON
public static final char UPSILON
The greek letter upsilon.- See Also:
- Constant Field Values
-
PHI
public static final char PHI
The greek letter phi.- See Also:
- Constant Field Values
-
CHI
public static final char CHI
The greek letter chi.- See Also:
- Constant Field Values
-
PSI
public static final char PSI
The greek letter psi.- See Also:
- Constant Field Values
-
OMEGA
public static final char OMEGA
The greek letter omega.- See Also:
- Constant Field Values
-
VARTHETA
public static final char VARTHETA
The greek letter theta (corresponding to LaTeX's \vartheta).- See Also:
- Constant Field Values
-
VARPHI
public static final char VARPHI
The greek letter phi (corresponding to LaTeX's \varphi).- See Also:
- Constant Field Values
-
UPPER_GAMMA
public static final char UPPER_GAMMA
The greek upper case letter gamma.- See Also:
- Constant Field Values
-
UPPER_DELTA
public static final char UPPER_DELTA
The greek upper case letter delta.- See Also:
- Constant Field Values
-
UPPER_THETA
public static final char UPPER_THETA
The greek upper case letter theta.- See Also:
- Constant Field Values
-
UPPER_LAMBDA
public static final char UPPER_LAMBDA
The greek upper case letter lambda.- See Also:
- Constant Field Values
-
UPPER_XI
public static final char UPPER_XI
The greek upper case letter xi.- See Also:
- Constant Field Values
-
UPPER_PI
public static final char UPPER_PI
The greek upper case letter pi.- See Also:
- Constant Field Values
-
UPPER_SIGMA
public static final char UPPER_SIGMA
The greek upper case letter sigma.- See Also:
- Constant Field Values
-
UPPER_PHI
public static final char UPPER_PHI
The greek upper case letter phi.- See Also:
- Constant Field Values
-
UPPER_PSI
public static final char UPPER_PSI
The greek upper case letter psi.- See Also:
- Constant Field Values
-
UPPER_OMEGA
public static final char UPPER_OMEGA
The greek upper case letter omega.- See Also:
- Constant Field Values
-
-
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.
-
-