Package net.sf.jaxodraw.util
Class JaxoGreek
- java.lang.Object
-
- net.sf.jaxodraw.util.JaxoGreek
-
public final class JaxoGreek extends java.lang.ObjectDefines 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 charALPHAThe greek letter alpha.static charBETAThe greek letter beta.static charCHIThe greek letter chi.static charDELTAThe greek letter delta.static charEPSILONThe greek letter epsilon.static charETAThe greek letter eta.static charGAMMAThe greek letter gamma.static charIOTAThe greek letter iota.static charKAPPAThe greek letter kappa.static charLAMBDAThe greek letter lambda.static charMUThe greek letter mu.static charNUThe greek letter nu.static charOMEGAThe greek letter omega.static charOMIKRONThe greek letter omikron.static charPHIThe greek letter phi.static charPIThe greek letter pi.static charPSIThe greek letter psi.static charRHOThe greek letter rho.static charSIGMAThe greek letter sigma.static charTAUThe greek letter tau.static charTHETAThe greek letter theta.static charUPPER_DELTAThe greek upper case letter delta.static charUPPER_GAMMAThe greek upper case letter gamma.static charUPPER_LAMBDAThe greek upper case letter lambda.static charUPPER_OMEGAThe greek upper case letter omega.static charUPPER_PHIThe greek upper case letter phi.static charUPPER_PIThe greek upper case letter pi.static charUPPER_PSIThe greek upper case letter psi.static charUPPER_SIGMAThe greek upper case letter sigma.static charUPPER_THETAThe greek upper case letter theta.static charUPPER_XIThe greek upper case letter xi.static charUPSILONThe greek letter upsilon.static charVARPHIThe greek letter phi (corresponding to LaTeX's \varphi).static charVARSIGMAThe greek letter sigma (corresponding to LaTeX's \varsigma).static charVARTHETAThe greek letter theta (corresponding to LaTeX's \vartheta).static charXIThe greek letter xi.static charZETAThe greek letter zeta.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static chargetCharacter(java.lang.String command)Returns the greek character whose LaTex command is s.static java.lang.StringgetLatexCommand(char a)Gets the LaTeX command for the greek character a.static booleanisGreekCharacter(char a)Tests whether the given character corresponds to one of the greek characters defined in this class.static booleanisLatexCommand(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.
-
-