java.lang.Object
org.openpdf.text.factories.GreekAlphabetFactory
This class can produce String combinations representing a number built with Greek letters (from alpha to omega, then
alpha alpha, alpha beta, alpha gamma). We are aware of the fact that the original Greek numbering is different; See
http://www.cogsci.indiana.edu/farg/harry/lan/grknum.htm#ancient but this isn't implemented yet; the main reason being
the fact that we need a font that has the obsolete Greek characters qoppa and sampi.
- Since:
- 2.0.7 (was called GreekNumberFactory in earlier versions)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final StringgetLowerCaseString(int index) Changes an int into a lower case Greek letter combination.static final StringgetString(int index) Changes an int into a lower case Greek letter combination.static final StringgetString(int index, boolean lowercase) Changes an int into a Greek letter combination.static final StringgetUpperCaseString(int index) Changes an int into a upper case Greek letter combination.
-
Constructor Details
-
GreekAlphabetFactory
public GreekAlphabetFactory()
-
-
Method Details
-
getString
Changes an int into a lower case Greek letter combination.- Parameters:
index- the original number- Returns:
- the letter combination
-
getLowerCaseString
Changes an int into a lower case Greek letter combination.- Parameters:
index- the original number- Returns:
- the letter combination
-
getUpperCaseString
Changes an int into a upper case Greek letter combination.- Parameters:
index- the original number- Returns:
- the letter combination
-
getString
Changes an int into a Greek letter combination.- Parameters:
index- the original numberlowercase- true for lowercase, false for uppercase- Returns:
- the letter combination
-