|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.util.FSCharacterTable
public class FSCharacterTable
The FSCharacterTable class provides predefined arrays of characters that can be used with the FSTextConstructor's willDisplay() method to predefine the characters that will be displayed using a given font. Character sets are simply list of characters to use. The names used to identify collections of characters use official character set names, such as iso_8859_1. However they do NOT indicate how the characters are encoded as such (all strings are encoded using UTF-8) they are simply a way of naming a group of characters in a recognized (and standard) way. Other sets that use characters appropriate for a specific country and language also use ISO designations for a specific locale such as en_US or pt_BR.
Field Summary | |
---|---|
static int |
euro
Code identifying a set containing the single character for the euro currency symbol. |
static int |
iso_646
Code identifying formal the characters defined in ISO 646. |
static int |
iso_8859_1
Code identifying formal the characters defined in ISO-8859-1. |
Constructor Summary | |
---|---|
FSCharacterTable()
|
Method Summary | |
---|---|
static char[] |
characterSet(int code)
Return a predefined set of characters. |
static char[] |
characterSetForLocale(java.util.Locale locale)
Return a character set for a given country and language. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int euro
public static final int iso_646
public static final int iso_8859_1
Constructor Detail |
---|
public FSCharacterTable()
Method Detail |
---|
public static final char[] characterSet(int code)
code
- a predefine constant identifying the character set to
return.
public static final char[] characterSetForLocale(java.util.Locale locale)
locale
- a Locale identifying the country and optional language
used to select a character set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |