Enum Class FontCharset
- All Implemented Interfaces:
Serializable
,Comparable<FontCharset>
,Constable
Charset represents the basic set of characters associated with a font (that it can display), and
corresponds to the ANSI codepage (8-bit or DBCS) of that character set used by a given language.
- Since:
- POI 3.17-beta2
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies the English character set.Specifies the Arabic character set.Specifies the Baltic (Northeastern European) character set.Specifies the "traditional" Chinese character set, used mostly in Taiwan and in the Hong Kong and Macao Special Administrative Regions.Specifies a character set based on the current system locale; for example, when the system locale is United States English, the default character set is ANSI_CHARSET.Specifies a Eastern European character set.Specifies the "simplified" Chinese character set for People's Republic of China.Specifies the Greek character set.Also spelled "Hangeul".Specifies the Hebrew character set.Also spelled "Johap".Specifies the Apple Macintosh character set.Specifies a mapping to one of the OEM code pages, according to the current system locale setting.Specifies the Russian Cyrillic character set.Specifies the Japanese character set.Specifies a character set of symbols.Specifies the Thai character set.Specifies the Turkish character set.Specifies the Vietnamese character set. -
Method Summary
Modifier and TypeMethodDescriptionint
static FontCharset
valueOf
(int value) Returns the enum constant of this class with the specified name.static FontCharset
Returns the enum constant of this class with the specified name.static FontCharset[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANSI
Specifies the English character set. -
DEFAULT
Specifies a character set based on the current system locale; for example, when the system locale is United States English, the default character set is ANSI_CHARSET. -
SYMBOL
Specifies a character set of symbols. -
MAC
Specifies the Apple Macintosh character set. -
SHIFTJIS
Specifies the Japanese character set. -
HANGUL
Also spelled "Hangeul". Specifies the Hangul Korean character set. -
JOHAB
Also spelled "Johap". Specifies the Johab Korean character set. -
GB2312
Specifies the "simplified" Chinese character set for People's Republic of China. -
CHINESEBIG5
Specifies the "traditional" Chinese character set, used mostly in Taiwan and in the Hong Kong and Macao Special Administrative Regions. -
GREEK
Specifies the Greek character set. -
TURKISH
Specifies the Turkish character set. -
VIETNAMESE
Specifies the Vietnamese character set. -
HEBREW
Specifies the Hebrew character set. -
ARABIC
Specifies the Arabic character set. -
BALTIC
Specifies the Baltic (Northeastern European) character set. -
RUSSIAN
Specifies the Russian Cyrillic character set. -
THAI_
Specifies the Thai character set. -
EASTEUROPE
Specifies a Eastern European character set. -
OEM
Specifies a mapping to one of the OEM code pages, according to the current system locale setting.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getCharset
- Returns:
- charset for the font or
null
if there is no matching charset or if the charset is a "default"
-
getNativeId
public int getNativeId() -
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-