com.lowagie.text
Class Greek

java.lang.Object
  |
  +--com.lowagie.text.Greek

public class Greek
extends Object

This class contains the symbols that correspond with Greek letters.

When you construct a Phrase (or a derived object) using a String, this String can contain Greek Symbols. These are characters with an int value between 913 and 937 (except 930) and between 945 and 969. With this class the value of the corresponding character of the Font Symbol, can be retrieved.

Author:
Bruno Lowagie, Evelyne De Cordier
See Also:
Phrase

Constructor Summary
Greek()
           
 
Method Summary
static Chunk get(char c, Font font)
          Gets a chunk with a symbol character.
static char getCorrespondingSymbol(char c)
          Looks for the corresponding symbol in the font Symbol.
static int index(String string)
          Returns the first occurrence of a Greek symbol in a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Greek

public Greek()
Method Detail

index

public static int index(String string)
Returns the first occurrence of a Greek symbol in a String.

Parameters:
string - a String
Returns:
an index of -1 if no Greek symbol was found

get

public static Chunk get(char c,
                        Font font)
Gets a chunk with a symbol character.


getCorrespondingSymbol

public static char getCorrespondingSymbol(char c)
Looks for the corresponding symbol in the font Symbol.

Parameters:
c - the original ASCII-char
Returns:
the corresponding symbol in font Symbol