public enum FontCharset extends java.lang.Enum<FontCharset>
Enum Constant and Description |
---|
ANSI
Specifies the English character set.
|
ARABIC
Specifies the Arabic character set.
|
BALTIC
Specifies the Baltic (Northeastern European) character set.
|
CHINESEBIG5
Specifies the "traditional" Chinese character set, used mostly in Taiwan and in the Hong Kong and Macao Special Administrative Regions.
|
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.
|
EASTEUROPE
Specifies a Eastern European character set.
|
GB2312
Specifies the "simplified" Chinese character set for People's Republic of China.
|
GREEK
Specifies the Greek character set.
|
HANGUL
Also spelled "Hangeul".
|
HEBREW
Specifies the Hebrew character set.
|
JOHAB
Also spelled "Johap".
|
MAC
Specifies the Apple Macintosh character set.
|
OEM
Specifies a mapping to one of the OEM code pages, according to the current system locale setting.
|
RUSSIAN
Specifies the Russian Cyrillic character set.
|
SHIFTJIS
Specifies the Japanese character set.
|
SYMBOL
Specifies a character set of symbols.
|
THAI
Specifies the Thai character set.
|
TURKISH
Specifies the Turkish character set.
|
VIETNAMESE
Specifies the Vietnamese character set.
|
Modifier and Type | Method and Description |
---|---|
java.nio.charset.Charset |
getCharset() |
int |
getNativeId() |
static FontCharset |
valueOf(int value) |
static FontCharset |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
(返回具有指定名称的此类型的枚举常量。)
|
static FontCharset[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
(按照声明的顺序返回包含此枚举类型常量的数组。)
|
public static final FontCharset ANSI
public static final FontCharset DEFAULT
public static final FontCharset SYMBOL
public static final FontCharset MAC
public static final FontCharset SHIFTJIS
public static final FontCharset HANGUL
public static final FontCharset JOHAB
public static final FontCharset GB2312
public static final FontCharset CHINESEBIG5
public static final FontCharset GREEK
public static final FontCharset TURKISH
public static final FontCharset VIETNAMESE
public static final FontCharset HEBREW
public static final FontCharset ARABIC
public static final FontCharset BALTIC
public static final FontCharset RUSSIAN
public static final FontCharset THAI
public static final FontCharset EASTEUROPE
public static final FontCharset OEM
public static FontCharset[] values()
for (FontCharset c : FontCharset.values()) System.out.println(c);(按照声明的顺序返回包含此枚举类型常量的数组。此方法可用于迭代常量,如下所示: for (FontCharset c : FontCharset.values()) System.out.println(c);)
public static FontCharset valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
(name - 要返回的枚举常量的名称。)
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
(java.lang.IllegalArgumentException - 如果此枚举类型没有具有指定名称的常量)
java.lang.NullPointerException
- if the argument is null
(java.lang.NullPointerException - 如果参数为空)
public java.nio.charset.Charset getCharset()
null
if there is no matching charset or if the charset is a "default"
(字体的字符集,如果没有匹配的字符集或字符集是“默认”,则为 null)
public int getNativeId()
public static FontCharset valueOf(int value)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.